[Bug c/45286] kact.sa_restorer = &restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64
--- Comment #12 from zorry at ume dot nu 2010-08-15 21:31 --- (In reply to comment #11) > It works for me with -fPIC -fPIE using gcc 4.4.4 on > Fedora 13. I got > > movq__restore...@gotpcrel(%rip), %rax > movq%rax, 56(%rsp) > > in assembly output. It is correct. Please make sure that > you use the current Linux binutils. > what do you get only with -fPIE? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45286
[Bug c/45286] kact.sa_restorer = &restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64
--- Comment #2 from zorry at ume dot nu 2010-08-15 01:04 --- Created an attachment (id=21478) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21478&action=view) compile with -fPIC -DSHARED file compiled with -fPIC -DSHARED -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45286
[Bug c/45286] kact.sa_restorer = &restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64
--- Comment #1 from zorry at ume dot nu 2010-08-15 01:02 --- Created an attachment (id=21477) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21477&action=view) compile with -fPIE This file is compile with -fPIE -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45286
[Bug c/45286] New: kact.sa_restorer = &restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64
http://bugs.gentoo.org/show_bug.cgi?id=283470 kact.sa_restorer = &restore_rt; get miss compile with -fPIE with -fPIC the code get 48 8d 05 2e ff ff fflea-0xd2(%rip),%rax # 10 <__restore_rt> and with -fPIE it get 48 8b 05 2e ff ff ffmov-0xd2(%rip),%rax # 10 <__restore_rt> Later on when we try to use the function in some code it segfault. so it would seem gcc is miscompiling the x86_64 sigaction.c code. specifically, this bit of sysdeps/unix/sysv/linux/x86_64/sigaction.c -- Summary: kact.sa_restorer = &restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64 Product: gcc Version: 4.4.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zorry at ume dot nu GCC target triplet: x86_64 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45286
[Bug testsuite/39537] overhaul printf formats and type casts in testsuite
--- Comment #7 from zorry at ume dot nu 2009-06-14 13:32 --- Gentoo's >=gcc-4.3.3 is build with -Wformat and -Wformat-security enable to. -- zorry at ume dot nu changed: What|Removed |Added CC| |zorry at ume dot nu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39537
[Bug target/39013] [4.3 Regression] Missing @PLT when -fpie is used
--- Comment #20 from zorry at ume dot nu 2009-03-31 02:37 --- Created an attachment (id=17565) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17565&action=view) Got ICE when compile some code with the old patch. See http://bugs.gentoo.org/show_bug.cgi?id=262567 for ICE when compiling. -- zorry at ume dot nu changed: What|Removed |Added Attachment #17218|0 |1 is obsolete|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013
[Bug target/39013] [4.3 Regression] Missing @PLT when -fpie is used
--- Comment #19 from zorry at ume dot nu 2009-01-30 22:59 --- Created an attachment (id=17218) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17218&action=view) fixed for gcc 4.3.3 Thanx for the help The patch fix the error i have. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013
[Bug target/39013] [4.3/4.4 Regression] Missing @PLT when -fpie is used
--- Comment #15 from zorry at ume dot nu 2009-01-29 18:23 --- We have this in the shared library that is compile with -fPIC inline u_int32_t libnet_getgre_length(u_int16_t fv) { code } And the app have code len = libnet_getgre_length(gre_flags); size += len; code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013
[Bug target/39013] Missing @PLT when -fpie is used
--- Comment #11 from zorry at ume dot nu 2009-01-29 15:03 --- I don't get the link error with gcc 4.2.4 on the code in comment #7 -- zorry at ume dot nu changed: What|Removed |Added Component|c |target http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013
[Bug target/39013] Compiler miss to add @PLT to symbols when object is compile with -fPIE -pie
--- Comment #1 from zorry at ume dot nu 2009-01-28 22:16 --- Created an attachment (id=17205) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17205&action=view) gre compile with gcc 4.3 and -fPIE -save-temps gre.i The .i file of gre thats compile with gcc 4.3.2 and CFLAGS -fPIE LDFLAGS -pie -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013
[Bug c/39013] New: Compiler miss to add @PLT to symbols when object is compile with -fPIE -pie
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_e54...@_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