bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/26551] A definition referenced by an unneeded (--as-needed) shar


From: i at maskray dot me
Subject: [Bug ld/26551] A definition referenced by an unneeded (--as-needed) shared object should be exported
Date: Tue, 01 Sep 2020 04:29:58 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26551

--- Comment #5 from Fangrui Song <i at maskray dot me> ---
ld.bfd a.o --as-needed b.so

Let a.o define a function which will be called by b.so via dlopen. In this
case, ld should export the function. This justification may look weak but I
think it is moving toward the right direction if we consider that GNU ld from
binutils 2.22 defaulted to --no-copy-dt-needed-entries (doing less shared
object traversal for more proper dependency tracking and avoiding unneeded
work).

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