[llvm-bugs] [Bug 34712] New: --hash-style=both by default (like recent ld.bfd and ld.gold)

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Sep 23 13:52:54 PDT 2017


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

            Bug ID: 34712
           Summary: --hash-style=both by default (like recent ld.bfd and
                    ld.gold)
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: romain.geissler at amadeus.com
                CC: llvm-bugs at lists.llvm.org

Hi,

Recently ld.bfd and ld.gold were updated so that the default --hash-style is
now "both" instead of "sysv". See this commit:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=2760f24c4942853eac7b921e4b8843d57a602654
Note: it is right now conditionally enabled, just for GNU targets, and
explicitly disabled for MIPS, see here:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=ld/configure.ac;h=02b23e17db4c04f0c8606bb1604c36de1e28b0e5;hb=b4a7c699688bd88313893cbb59ee0df5b8cd009b#l192
This will be released next year with binutils 2.30.

Looking at the lld source code, it looks like the default is still "sysv", as
shown here: https://github.com/llvm-mirror/lld/blob/master/ELF/Driver.cpp#L552

Do you think it would make sense to switch as well the default in ldd to
"--hash-style=both" (conditionally, not for MIPS target for example, since that
would be an ABI breakage on these targets).

Cheers,
ROmain

-- 
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/20170923/2ebed046/attachment.html>


More information about the llvm-bugs mailing list