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]

section .init_array not working on ppc32


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;
nectarine:~# ld -v
GNU ld version 2.13.90 20030312
nectarine:~# gcc -v
Reading specs from /usr/lib/gcc-lib/powerpc-suse-linux/3.3/specs
Configured with: /usr/src/packages/BUILD/gcc-3.3-20030311/gcc-3.3-20030311/configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit powerpc-suse-linux
Thread model: posix
gcc version 3.3 20030312 (prerelease) (SuSE Linux)

That conftest does also segfault with gcc3.2.2 

-- 
A: No.
Q: Should I include quotations after my reply?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]