[llvm-bugs] [Bug 19745] '--no-add-needed' is added to the linker flags for all versions of RHEL

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 11 23:48:50 PDT 2019


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

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |i at maskray.me
         Resolution|---                         |FIXED

--- Comment #3 from Fangrui Song <i at maskray.me> ---
> '--no-add-needed' is the default only since RHEL7

gcc doesn't add the option. I think it is just that before binutils 2.22,
--add-needed was the default.

Just deleted 

  if (Distro.IsRedhat() && Distro != Distro::RHEL5 && Distro != Distro::RHEL6)
    ExtraOpts.push_back("--no-add-needed");

in r365877

-- 
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/20190712/4e58fe32/attachment.html>


More information about the llvm-bugs mailing list