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: unassignedb...@nondot.org
          Reporter: jh7370.2...@my.bristol.ac.uk
                CC: alexander.v.shaposhni...@gmail.com,
                    jake.h.ehrl...@gmail.com,
                    jh7370.2...@my.bristol.ac.uk,
                    llvm-bugs@lists.llvm.org, ruppre...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to