From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1461 invoked by alias); 28 Jan 2009 22:11:42 -0000 Received: (qmail 1419 invoked by uid 48); 28 Jan 2009 22:11:28 -0000 Date: Wed, 28 Jan 2009 22:11:00 -0000 Subject: [Bug c/39013] New: Compiler miss to add @PLT to symbols when object is compile with -fPIE -pie X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "zorry at ume dot nu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-01/txt/msg03163.txt.bz2 http://bugs.gentoo.org/show_bug.cgi?id=254355 We are using patched gcc but it fail on gentoo's default compiler's to. It works fine with GCC 4.2.4 and lower. The fail file is part of libnet the symbol that miss the @PLT is libnet_getgre_length it sould have @PLT as the rest of the symbols If i compile the fail file with -pic instead i compiles fine. and have @PLT added gcc version 4.3.3 Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.3.3-r1/work/gcc-4.3.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --disable-libgcj --enable-languages=c,c++,treelang --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix glibc-2.8_p20080602-r1 Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz binutils: 2.18 it add relro as default The file is compile with CFLAGS -fPIE and LDFLAGS -pie -z now -- Summary: Compiler miss to add @PLT to symbols when object is compile with -fPIE -pie Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zorry at ume dot nu GCC build triplet: x_86_64 GCC host triplet: x86_64 GCC target triplet: x86_86 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013