From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H . J . Lu" To: Vassili Karpov Cc: binutils@sources.redhat.com Subject: Re: ld bug? Date: Tue, 30 Oct 2001 23:33:00 -0000 Message-id: <20011030233309.A22170@lucon.org> References: <20011030013604.06bd2dc2.av1474@comtv.ru> <20011030233013.A22058@lucon.org> X-SW-Source: 2001-10/msg00619.html On Tue, Oct 30, 2001 at 11:30:13PM -0800, H . J . Lu wrote: > On Tue, Oct 30, 2001 at 01:36:04AM +0300, Vassili Karpov wrote: > > LD discards ELF visibility attributes when making relocateable objects. > > > > Example: > > a.s > > == > > .protected symbol > > > > b.s > > == > > dummy: > > --- > > as -o a.o a.s > > as -o b.o b.s > > ld -r -o c.o a.o b.o > > > > a.o: 4: 00000000 0 NOTYPE GLOBAL PROTECTED UND symbol > > c.o: 8: 00000000 0 NOTYPE GLOBAL DEFAULT UND symbol > > -- > > It is ok since symbol is undefined. There is no such a thing as > protected, undefined symbol. I take it back. It is a bug. I will fix it. H.J.