This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld, --defsym, and local symbols


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]