This is the mail archive of the glibc-bugs@sourceware.org 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]

[Bug libc/20662] New: checking whether x86_64-pc-linux-gnu-gcc implicitly enables -fstack-protector no (32bit gcc 6.2.0 pie and ssp enable)


https://sourceware.org/bugzilla/show_bug.cgi?id=20662

            Bug ID: 20662
           Summary: checking whether x86_64-pc-linux-gnu-gcc implicitly
                    enables -fstack-protector no (32bit gcc 6.2.0 pie and
                    ssp enable)
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: zorry at gentoo dot org
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

The test
checking whether x86_64-pc-linux-gnu-gcc -m32 -Wl,-O1 -Wl,--as-needed
implicitly enables -fstack-protector... no
fail to detect if the compiler enable -fstack-protector as default if
Gcc 6.2 have --enable-default-pie and fail later in the build with
/var/tmp/portage/sys-libs/glibc-2.23-r2/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/librtld.os:
In function `lookup_doit':
rtld.c:(.text+0x115): undefined reference to `__stack_chk_fail_local'
/var/tmp/portage/sys-libs/glibc-2.23-r2/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/librtld.os:
In function `process_dl_debug':
rtld.c:(.text+0x55e): undefined reference to `__stack_chk_fail_local'
/var/tmp/portage/sys-libs/glibc-2.23-r2/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/librtld.os:
In function `print_statistics':
rtld.c:(.text+0xb43): undefined reference to `__stack_chk_fail_local'
/var/tmp/portage/sys-libs/glibc-2.23-r2/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/librtld.os:
In function `.L247':
rtld.c:(.text+0x2c3b): undefined reference to `__stack_chk_fail_local'
/var/tmp/portage/sys-libs/glibc-2.23-r2/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/librtld.os:
In function `.L1176':
rtld.c:(.text+0x461b): undefined reference to `__stack_chk_fail_local'
/var/tmp/portage/sys-libs/glibc-2.23-r2/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/librtld.os:dl-load.c:(.text+0x4877):
more undefined references to `__stack_chk_fail_local' follow
/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/var/tmp/portage/sys-libs/glibc-2.23-r2/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld.so.new:
hidden symbol `__stack_chk_fail_local' isn't defined
/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../x86_64-pc-linux-gnu/bin/ld:
final link failed: Bad value
collect2: error: ld returned 1 exit status
The compiler have both --enable-default-pie and --enable-default-ssp on

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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