[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25910] Support --export-dynamic-symbol $symbol
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/25910] Support --export-dynamic-symbol $symbol |
Date: |
Sun, 03 May 2020 12:25:59 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25910
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Fangrui Song from comment #1)
> https://sourceware.org/pipermail/binutils/2020-May/110930.html [PATCH] ld:
> Add --export-dynamic-symbol
>
> Note, in gold and lld, --export-dynamic-symbol foo does not add foo to
> .symtab if foo does not exist. I prefer the semantics, but (I don't know hot
When foo is undefined,
1. If foo isn't referenced, --export-dynamic-symbol foo should be NOP since
there is nothing to export.
2. If foo is referenced, --export-dynamic-symbol foo should be NOP since foo
should be dynamic.
> to implement the semantics) my patch behaves like regular -u: there is an
> undefined symbol in .symtab . This difference does not really in practice,
> though.
--
You are receiving this mail because:
You are on the CC list for the bug.