bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/26018] Make --dynamic-list* override -Bsymbolic and -Bsymbolic-f


From: i at maskray dot me
Subject: [Bug ld/26018] Make --dynamic-list* override -Bsymbolic and -Bsymbolic-functions
Date: Sat, 23 May 2020 16:10:26 +0000

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

--- Comment #3 from Fangrui Song <i at maskray dot me> ---
I don't agree with the resolution. Copying my reply
https://sourceware.org/pipermail/binutils/2020-May/111223.html here

IIRC, currently -Bsymbolic --dynamic-list a.list != --dynamic-list a.list
 -Bsymbolic

This order dependency is error-prone. It is still fixable because I don't think
any project makes uses of the combination. Order dependency also makes it
unclear how --dynamic-list associates with other symbol exporting options.


--dynamic-list* work for both executables and shared libraries.
For an executable, export some symbols.
For a shared library, specify preemptible symbols.


--dynamic-list* have function overlay
with -Bsymbolic. When two options overlap in functionality, many users
expect the more fine-grained option to win, thus it is preferable for 
--dynamic-list* to override -Bsymbolic and -Bsymbolic-functions.

We could also emit a warning and say -Bsymbolic is ignored, if that matters.

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