You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A hidden symbol contained in a relocatable object must be either removed or converted to STB_LOCAL binding by the link-editor when the relocatable object is included in an executable file or shared object.
lld converts hidden symbols to STB_LOCAL when producing an EXE/DSO. GNU ld and gold don't do this.
(gold seems inconsistent. It creates STB_LOCAL STV_HIDDEN _GLOBAL_OFFSET_TABLE_)
MaskRay
added
the
question
A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
label
May 15, 2024
lds:
main.c
Command like:
And the symbol info like:
without
-r
the output like:And
ld
alwaysLOCAL
w/wo-r
gold
isGLOBAL
with-r
.I'm not found the standard about this (about the bindind of symbol defined in linker script).
The text was updated successfully, but these errors were encountered: