This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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]

Re: HAVE_INITFINI_ARRAY check broken?


 On Thu, Mar 13, Olaf Hering wrote:

> The configure gcc run prints only a warning with gcc3.2.2, and succeeds
> silently with gcc-3.3, the resulting conftest segfaults.
> The string is there anyway:

This is the gcc-3.2.2 result with older binutils:

> mandarine:~ #     cat > conftest.c <<EOF
> int _start (void) { return 0; }
> int __start (void) { return 0; }
> int foo (void) { return 1; }
> int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
> EOF
mandarine:~ # gcc -o conftest conftest.c -static -nostartfiles -nostdlib
/tmp/ccdiHXYT.s: Assembler messages:
/tmp/ccdiHXYT.s:49: Warning: ignoring incorrect section type for .init_array
mandarine:~ # readelf -S conftest | fgrep INIT_ARRAY
  [ 3] .init_array       INIT_ARRAY      100100e0 0000e0 000004 00  WA  0   0  4
mandarine:~ # gcc -v ; ld -v
Reading specs from /usr/lib/gcc-lib/powerpc-suse-linux/3.2.2/specs
Configured with: /usr/src/packages/BUILD/gcc-3.2.2/gcc-3.2.2/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 --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.2.2 20030227 (prerelease) (SuSE Linux)
GNU ld version 2.13.90.0.18 20030121


-- 
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]