This is the mail archive of the libc-ports@sources.redhat.com 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"


Dave,

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.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/hppa-linux-gnu/4.6/lto-wrapper
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
--target=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
carlos@magnum:~/src/glibc/elf$

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.
https://bugs.gentoo.org/show_bug.cgi?id=405161

Comments?

Cheers,
Carlos.

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]