[Bug binutils/19090] objcopy --extract-symbol clears e_flags ELF header field

2015-10-14 Thread rhoogenboom at irdeto dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19090 --- Comment #3 from Ronald Hoogenboom --- Created attachment 8717 --> https://sourceware.org/bugzilla/attachment.cgi?id=8717&action=edit simplified patch Simplified the patch after suggestion from Alan Modra. Not guaranteed to work for any

[Bug binutils/19090] objcopy --extract-symbol clears e_flags ELF header field

2015-10-12 Thread rhoogenboom at irdeto dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19090 --- Comment #2 from Ronald Hoogenboom --- Created attachment 8707 --> https://sourceware.org/bugzilla/attachment.cgi?id=8707&action=edit fix the --extract-symbol function The attached patch uses bfd_copy_private_bfd_data when the --extract-

[Bug binutils/19090] objcopy --extract-symbol clears e_flags ELF header field

2015-10-10 Thread rhoogenboom at irdeto dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19090 --- Comment #1 from Ronald Hoogenboom --- This is probably because the condition ' if (!extract_symbol)' on line objcopy.c:1828 skips the 'setup_bfd_headers (ibfd, obfd);'. In case extract_symbols, some limited 'setup-copying' needs to be