This is the mail archive of the mailing list for the libc-ports 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]

hppa: glibc and gcc 4.6, "error: _rtld_global_ro causes a section type conflict"


When compiling glibc on magnum with gcc-4.6 I get an odd failure about
section type conflicts.

The following is the reduced test case:

carlos@magnum:~/build/glibc$ gcc -v
Using built-in specs.
Target: hppa-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
4.6.3-1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --disable-libssp
--enable-plugin --enable-objc-gc --disable-libstdcxx-pch
--enable-checking=release --build=hppa-linux-gnu --host=hppa-linux-gnu
Thread model: posix
gcc version 4.6.3 (Debian 4.6.3-1)

carlos@magnum:~/src/glibc/elf$ hppa-linux-gnu-gcc rtld.i -c -std=gnu99
-fgnu89-inline -O2 -U_FORTIFY_SOURCE -Wall -Winline -Wwrite-strings
-fmerge-all-constants -fno-stack-protector -g -Wstrict-prototypes
-fPIC -mdisable-fpregs
rtld.c: In function âdl_mainâ:
rtld.c:937:3: warning: implicit declaration of function
â__canonicalize_funcptr_for_compareâ [-Wimplicit-function-declaration]
rtld.c: At top level:
rtld.c:150:23: error: _rtld_global_ro causes a section type conflict

Attached is the original unreduced file as rtld.tar.bz2 (modified
slightly to work standalone because glibc uses `-include' on the
command line).

Attached is the multi-delta reduced file as rtld-reduced.i.

Have you seen this before with gcc 4.6?

I'll be poking at this later, but I thought you might have seen this
so I'm posting to the list.

I know that Gentoo/hppa has already seen this issue, but not posted a solution.



Attachment: rtld.tar.bz2
Description: BZip2 compressed data

Attachment: rtld-reduced.i
Description: Binary data

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