This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Striping indirect symbols
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Ian Dall <ian at beware dot dropbear dot id dot au>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 7 Aug 2002 16:24:13 +0930
- Subject: Re: Striping indirect symbols
- References: <15694.43966.137543.835565@sibyl.beware.dropbear.id.au>
On Tue, Aug 06, 2002 at 02:15:50AM +0930, Ian Dall wrote:
> How should indirect symbols behave with the "ld -x -r" option (a.out)?
>
> With the following code:
>
> .stabs "_daylight",10,0,0,0
> .stabs "__daylight",1,0,0,0
>
>
> sibyl:-libc $ pc532-netbsd-as -o _daylight.o _daylight.s
> sibyl:-libc $ pc532-netbsd-nm -a _daylight.o
> 00000000 I _daylight
> U __daylight
>
> So far so good. But if I now run ld -r -x on it there are no symbols left at
> all. The object file has nothing except the header.
Well, they are local syms, so I suppose you get what you asked for
with -x.
--
Alan Modra
IBM OzLabs - Linux Technology Centre