https://sourceware.org/bugzilla/show_bug.cgi?id=19090
Bug ID: 19090
Summary: objcopy --extract-symbol clears e_flags ELF header
field
Product: binutils
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: rhoogenboom at irdeto dot com
Target Milestone: ---
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.
In order to use the object, the EABI version needs to be patched with a binary
patch tool like xxd. Another workaround is to use the -R option for ld.
It would be better if the --extract-symbol option would preserve the EABI
version.
(GNU objcopy (GNU Tools for ARM Embedded Processors) 2.23.2.20140228)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils