[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.
- [Bug ld/26018] New: Make --dynamic-list* override -Bsymbolic and -Bsymbolic-functions, i at maskray dot me, 2020/05/20
- [Bug ld/26018] Make --dynamic-list* override -Bsymbolic and -Bsymbolic-functions, hjl.tools at gmail dot com, 2020/05/22
- [Bug ld/26018] Make --dynamic-list* override -Bsymbolic and -Bsymbolic-functions, hjl.tools at gmail dot com, 2020/05/23
- [Bug ld/26018] Make --dynamic-list* override -Bsymbolic and -Bsymbolic-functions,
i at maskray dot me <=
- [Bug ld/26018] Make --dynamic-list* override -Bsymbolic and -Bsymbolic-functions, hjl.tools at gmail dot com, 2020/05/23
- [Bug ld/26018] --dynamic-list* doesn't work before -Bsymbolic and -Bsymbolic-functions, hjl.tools at gmail dot com, 2020/05/23
- [Bug ld/26018] --dynamic-list* doesn't work before -Bsymbolic and -Bsymbolic-functions, cvs-commit at gcc dot gnu.org, 2020/05/23
- [Bug ld/26018] --dynamic-list* doesn't work before -Bsymbolic and -Bsymbolic-functions, cvs-commit at gcc dot gnu.org, 2020/05/24
- [Bug ld/26018] --dynamic-list* doesn't work before -Bsymbolic and -Bsymbolic-functions, hjl.tools at gmail dot com, 2020/05/24