ld, --defsym, and local symbols

Adam Megacz adam@megacz.com
Wed Jan 30 22:26:00 GMT 2002


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



More information about the Binutils mailing list