mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
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.
This commit is contained in:
parent
d98b0e2bf6
commit
cf7363b42b
@ -1,3 +1,9 @@
|
||||
2014-09-29 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/17440
|
||||
* elf32-i386.c (elf_i386_fbsd_post_process_headers): Fix build
|
||||
for OLD_FREEBSD_ABI_LABEL.
|
||||
|
||||
2014-09-24 Markus Trippelsdorf <markus@trippelsdorf.de>
|
||||
|
||||
PR 17422
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user