bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/13182] New: -flto and -Wl,--as-needed combination removes needed


From: krisztian.kocsis at optimaster dot eu
Subject: [Bug ld/13182] New: -flto and -Wl,--as-needed combination removes needed libraries
Date: Mon, 12 Sep 2011 18:37:34 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13182

             Bug #: 13182
           Summary: -flto and -Wl,--as-needed combination removes needed
                    libraries
           Product: binutils
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


Created attachment 5929
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5929
Verbose linker output.

When I try to build udev with gcc-4.6.1 and binutils-2.21.1, the accelerometer
module fails to link because of undefined references to sqrt, atan, etc.
Unfortunately -lm is explicitly specified. If I remove -flto or
-Wl,--as-needed, the module links successfully.

Verbose linker output is attached.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]