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

            Bug ID: 45901
           Summary: clang shall not pass --hash-style to the linker
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

I compile binutils with ./configure --enable-default-hash-style=gnu .  I
compile gcc with ./configure --with-linker-hash-style=gnu.  So when I call gcc,
or just ld.bfd, or ld.gold I get no sysv hashes.

When I call `clang -v` I see that it passes to the linker --hash-style=both . 
During the configuration (before the build) of clang I see no option to set the
default hash style.

• Add a CMAKE option to set the default hash style, when calling the linker,
with default of not sending --hash-style=  to the linker

• Do not pass -hash-style= when calling the linker, unless explicitly told to
do so.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to