[llvm-bugs] [Bug 41196] New: Set OS/ABI version to ELFOSABI_GNU if object contains GNU symbols

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 22 03:24:16 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41196

            Bug ID: 41196
           Summary: Set OS/ABI version to ELFOSABI_GNU if object contains
                    GNU symbols
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-objcopy/strip
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: alexander.v.shaposhnikov at gmail.com,
                    jake.h.ehrlich at gmail.com,
                    jh7370.2008 at my.bristol.ac.uk,
                    llvm-bugs at lists.llvm.org, rupprecht at google.com

According to the GNU objcopy source, the tool sets the OSABI member to
ELFOSABI_GNU, if it would otherwise be ELFOSABI_NONE and there are GNU symbols
present in the output (i.e. STT_GNU_IFUNC or STB_GNU_UNIQUE symbols) (see
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=bfd/elf.c;h=73fb86971f3dcc0461ba17d5d24d3cf7add41761;hb=HEAD#l12055).
We should consider doing this, though we should also be wary of significantly
slowing down most runs of llvm-objcopy.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190322/b1d2aee3/attachment-0001.html>


More information about the llvm-bugs mailing list