[PATCH] - objcopy --extract-symbol clears e_flags ELF header field
Ronald Hoogenboom
hoogenboom30@zonnet.nl
Tue Oct 13 17:52:00 GMT 2015
The --extract-symbol option for objcopy sets the e_flags field in the ELF header to zero.
This is later a problem in ARM if you want to link with this symbols-only object: the linker
ld will reject the object because of the incompatible EABI version, which is part of the e_flags field in ARM.
he attached patch uses bfd_copy_private_bfd_data when the --extract-symbol flag is used and
bfd_copy_private_header_data like it used to when it isn't.
This seems to address the described problem of EABI versions for ARM.
The patch is for the arm-none-eabi-binutils-cs-2014.05.28-3 version used in fedora 21. It may probably just apply
with some fuzz.
Refer to bugzilla bug 19090.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: objcopy-extract-sym.patch
Type: text/x-patch
Size: 1377 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20151013/f0d2d303/attachment.bin>
More information about the Binutils
mailing list