This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld, --defsym, and local symbols
Sorry about re-asking this question in my last post...
Ian Lance Taylor <ian@airs.com> writes:
> > 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.
Nuts. Why?
> There is no guarantee that all relocations relevant to that symbol are
> even available in the object file.
I don't understand -- doesn't the object file contain a list of all
relocations? Can't you just scan that list for relocations using the
desired symbol?
Thanks for answering all my questions, by the way...
- a