Mercurial > gub
view patches/binutils-2.24-freebsd4.patch @ 6512:ccc20ae889ca default tip guix
mingw::guile-2.0.7 builds.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Thu, 24 Mar 2016 08:03:39 +0100 |
parents | 5f6066327bdf |
children |
line wrap: on
line source
From: H.J. Lu <hjl.tools@gmail.com> Date: Mon, 29 Sep 2014 15:35:49 +0000 (-0700) Subject: Fix build for OLD_FREEBSD_ABI_LABEL X-Git-Url: http://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff_plain;h=cf7363b42b2fdc9fd108bed8d53b35adf4d52ad5 Fix build for OLD_FREEBSD_ABI_LABEL PR ld/17440 * elf32-i386.c (elf_i386_fbsd_post_process_headers): Fix build for OLD_FREEBSD_ABI_LABEL. --- diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index a00d47c..afa21b5 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -5120,8 +5120,11 @@ elf_i386_fbsd_post_process_headers (bfd *abfd, struct bfd_link_info *info) _bfd_elf_post_process_headers (abfd, info); #ifdef OLD_FREEBSD_ABI_LABEL - /* The ABI label supported by FreeBSD <= 4.0 is quite nonstandard. */ - memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8); + { + /* The ABI label supported by FreeBSD <= 4.0 is quite nonstandard. */ + Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd); + memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8); + } #endif }