This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld, --defsym, and local symbols
- From: Ian Lance Taylor <ian at airs dot com>
- To: Adam Megacz <adam at megacz dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 29 Jan 2002 21:43:37 -0800
- Subject: Re: ld, --defsym, and local symbols
- References: <867kq0rfrq.fsf@megacz.com>
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