bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/19090] New: objcopy --extract-symbol clears e_flags ELF he


From: rhoogenboom at irdeto dot com
Subject: [Bug binutils/19090] New: objcopy --extract-symbol clears e_flags ELF header field
Date: Thu, 08 Oct 2015 15:43:40 +0000

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]