https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78532

--- Comment #3 from Maxim Ostapenko <m.ostapenko at samsung dot com> ---
(In reply to Matthias Klose from comment #2)
> glibc 2.24 and linux 4.8.7.

Could you also share how you configure Glibc? Do you use native or cross build?
I'm asking because Glibc 2.24 fails to build for me with:

sparc64-linux-gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs
-Wl,-dynamic-linker=/opt/cross/sparc//sparc64-linux/lib/ld-linux.so.2 
-B/home/max/build/sparc/glibc/csu/ 
-Wl,--version-script=/home/max/build/sparc/glibc/libresolv.map
-Wl,-soname=libresolv.so.2 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both 
-L/home/max/build/sparc/glibc -L/home/max/build/sparc/glibc/math
-L/home/max/build/sparc/glibc/elf -L/home/max/build/sparc/glibc/dlfcn
-L/home/max/build/sparc/glibc/nss -L/home/max/build/sparc/glibc/nis
-L/home/max/build/sparc/glibc/rt -L/home/max/build/sparc/glibc/resolv
-L/home/max/build/sparc/glibc/crypt -L/home/max/build/sparc/glibc/mathvec
-L/home/max/build/sparc/glibc/nptl
-Wl,-rpath-link=/home/max/build/sparc/glibc:/home/max/build/sparc/glibc/math:/home/max/build/sparc/glibc/elf:/home/max/build/sparc/glibc/dlfcn:/home/max/build/sparc/glibc/nss:/home/max/build/sparc/glibc/nis:/home/max/build/sparc/glibc/rt:/home/max/build/sparc/glibc/resolv:/home/max/build/sparc/glibc/crypt:/home/max/build/sparc/glibc/mathvec:/home/max/build/sparc/glibc/nptl
-o /home/max/build/sparc/glibc/resolv/libresolv.so -T
/home/max/build/sparc/glibc/shlib.lds
/home/max/build/sparc/glibc/csu/abi-note.o -Wl,--whole-archive
/home/max/build/sparc/glibc/resolv/libresolv_pic.a -Wl,--no-whole-archive 
-Wl,--start-group /home/max/build/sparc/glibc/libc.so
/home/max/build/sparc/glibc/libc_nonshared.a -Wl,--as-needed
/home/max/build/sparc/glibc/elf/ld.so -Wl,--no-as-needed -Wl,--end-group
/home/max/build/sparc/glibc/resolv/libresolv_pic.a(ns_print.os): In function
`__GI_ns_sprintrrf':
/home/max/src/glibc/resolv/ns_print.c:99: undefined reference to
`__stack_chk_guard'
/home/max/src/glibc/resolv/ns_print.c:99: undefined reference to
`__stack_chk_guard'
/home/max/src/glibc/resolv/ns_print.c:99: undefined reference to
`__stack_chk_guard'
/home/max/src/glibc/resolv/ns_print.c:728: undefined reference to
`__stack_chk_guard'
/home/max/src/glibc/resolv/ns_print.c:728: undefined reference to
`__stack_chk_guard'

Reply via email to