This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
.data.rel.so brokenness
- From: Richard Henderson <rth at twiddle dot net>
- To: libc-alpha at gcc dot gnu dot org
- Date: Wed, 14 Jan 2004 20:47:05 -0800
- Subject: .data.rel.so brokenness
Alpha won't link at present because __libc_enable_secure
and __libc_stack_end are declared as
extern void *foo;
and defined as
extern void *foo __attribute__((section(...)));
Because of the declaration, the compiler thinks __libc_stack_end
is defined in .sdata, and so generates a 16-bit relocation. Because
of the definition, the 16-bit reloc won't reach.
Put the attribute on the decl too and the compiler will DTRT.
r~