This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: behavior of "strip -N"
Adam Megacz <adam@megacz.com> writes:
> Ian Lance Taylor <ian@airs.com> writes:
> > > Is there any way to get the first behavior (0x0) when stripping
> > > file-local symbols?
>
> > What happens when you do this is processor and object file format
> > dependent.
>
> Bummer. Is there any way to redefine a file-local symbol via binutils?
> I suppose I could redefine the symbol to ABSOLUTE(0x0).
Do you mean in the linker? The answer is no.
I think you have some sort of misconception about file-local symbols.
>From the linker's point of view, a file-local symbol has no name. The
only names the linker deals with are globally visible. There is no
way in the linker to refer to a name which is specific to a particular
object file.
Ian