This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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."
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |