This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: section .init_array not working on ppc32
- From: Andreas Schwab <schwab at suse dot de>
- To: Olaf Hering <olh at suse dot de>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 13 Mar 2003 12:13:22 +0100
- Subject: Re: section .init_array not working on ppc32
- References: <20030313110100.A10160@suse.de>
Olaf Hering <olh at suse dot de> writes:
|> Hi,
|>
|> I'm not sure if that is a binutils or gcc bug, testcase is from glibc
|> configure:
|>
|> nectarine:~# gcc -o conftest conftest.c -static -nostartfiles -nostdlib
|> nectarine:~# ./conftest
|> Segmentation fault
|> nectarine:~# cat conftest.c
|> int _start (void) { return 0; }
|> int __start (void) { return 0; }
|> int foo (void) { return 1; }
|> int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
I think this needs support from the crtstuff, and ia64-linux* and
hppa64-hpux* are the only targets that do.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."