This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ld bug?
- To: <binutils at sources dot redhat dot com>
- Subject: ld bug?
- From: Vassili Karpov <av1474 at comtv dot ru>
- Date: Tue, 30 Oct 2001 01:36:04 +0300
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
--
mailto:malc@pulsesoft.com