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

Stephen Kell <srk31 at srcf dot ucam.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |srk31 at srcf dot ucam.org

--- Comment #16 from Stephen Kell <srk31 at srcf dot ucam.org> ---
I've been affected by this bug. The rationale for not fixing it seems a bit
leaky to me, for at least the following two reasons.

- Using a version script for this purpose is not always viable. Only one
version script may be given per invocation. If the version script is
autogenerated, adding exceptions for specific symbols can become very
difficult. By contrast, multiple copies of these other options can be given on
the command line.

- In respect of '--export-dynamic-symbol', H.J.'s "same dynamic symbol table"
observation only applies to shared objects, not to executables. For
executables, '--export-dynamic-symbol' does change the contents of the dynamic
symbol table. 

(The only place where I've seen these semantics documented accurately is the
lld manual page. But I believe it describes what BFD and gold linkers do too.
https://github.com/llvm/llvm-project/blob/5d972c582a076768885e6d33df8f5d3860594e43/lld/docs/ld.lld.1#L259)

As Cary mentioned, the documentation's use of "automatic" suggests a manual
way, which currently there isn't on the command line.

Note that selectively undoing '--exclude-libs' still makes sense for
executables, e.g. when using it in combination with '--export-dynamic'. Though
I would favour semantics that are uniform w.r.t. executables and shared
libraries.

Please could the WONTFIX be reconsidered?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to