bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/12549] --as-needed should ignore weak references


From: hjl.tools at gmail dot com
Subject: [Bug binutils/12549] --as-needed should ignore weak references
Date: Mon, 14 Jan 2013 15:40:37 +0000

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

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> 2013-01-14 15:40:37 
UTC ---
(In reply to comment #4)
> Created attachment 6809 [details]
> test case
> 
> Simple test case.
> 
> liba.so has a weak reference to libb.so and is linked using --as-needed. This
> should not result in a NEEDED entry in liba.so.

I believe the linker behavior is correct. Adding --as-needed
shouldn't change if libb.so is added to the NEEDED entry in liba.so
since linking with libb.so changes the behavior of liba.so.  The
reason Linux doesn't have your problem is Linux uses GNU_EH_FRAME.

-- 
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]