ld, --defsym, and local symbols
Ian Lance Taylor
ian@airs.com
Tue Jan 29 23:45:00 GMT 2002
Adam Megacz <adam@megacz.com> writes:
> Hrm, when I use --defsym to try to redefine a local symbol, it ends up
> creating a global symbol and leaving the local symbol in place.
>
> Is there any way to redefine a file-local symbol? Linker scripts,
> perhaps?
There is no reliable way to redefine a file-local symbol at link time.
There is no guarantee that all relocations relevant to that symbol are
even available in the object file.
Ian
More information about the Binutils
mailing list