grsec and gcc 4.6 problem
Posted: Thu May 19, 2011 8:23 am
Looks like -Wl,--no-undefined is not enough with gcc 4.6, still fails with "arch/x86/vdso/vdso.so.dbg: undefined symbols found"
ch/x86/platform/mrst/modules.order; cat arch/x86/platform/olpc/modules.order; cat arch/x86/platform/scx200/modules.order; cat arch/x86/platform/sfi/modules.order; cat arch/x86/platform/visws/modules.order; cat arch/x86/platform/uv/modules.order;) > arch/x86/platform/modules.order
make -f /home/users/arekm/rpm/BUILD/kernel-2.6.38.6/linux-2.6.38/scripts/Makefile.build obj=arch/x86/vdso
gcc -nostdlib -o arch/x86/vdso/vdso.so.dbg -fPIC -shared -Wl,--no-undefined -Wl,--hash-style=sysv -m64 -Wl,-soname=linux-vdso.so.1 -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 -Wl,-T,arch/x86/vdso/vdso.lds arch/x86/vdso/vdso-note.o arch/x86/vdso/vclock_gettime.o arch/x86/vdso/vgetcpu.o arch/x86/vdso/vvar.o && sh /home/users/arekm/rpm/BUILD/kernel-2.6.38.6/linux-2.6.38/arch/x86/vdso/checkundef.sh 'nm' 'arch/x86/vdso/vdso.so.dbg'
arch/x86/vdso/vdso.so.dbg: undefined symbols found
make[4]: *** [arch/x86/vdso/vdso.so.dbg] Error 1
ch/x86/platform/mrst/modules.order; cat arch/x86/platform/olpc/modules.order; cat arch/x86/platform/scx200/modules.order; cat arch/x86/platform/sfi/modules.order; cat arch/x86/platform/visws/modules.order; cat arch/x86/platform/uv/modules.order;) > arch/x86/platform/modules.order
make -f /home/users/arekm/rpm/BUILD/kernel-2.6.38.6/linux-2.6.38/scripts/Makefile.build obj=arch/x86/vdso
gcc -nostdlib -o arch/x86/vdso/vdso.so.dbg -fPIC -shared -Wl,--no-undefined -Wl,--hash-style=sysv -m64 -Wl,-soname=linux-vdso.so.1 -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 -Wl,-T,arch/x86/vdso/vdso.lds arch/x86/vdso/vdso-note.o arch/x86/vdso/vclock_gettime.o arch/x86/vdso/vgetcpu.o arch/x86/vdso/vvar.o && sh /home/users/arekm/rpm/BUILD/kernel-2.6.38.6/linux-2.6.38/arch/x86/vdso/checkundef.sh 'nm' 'arch/x86/vdso/vdso.so.dbg'
arch/x86/vdso/vdso.so.dbg: undefined symbols found
make[4]: *** [arch/x86/vdso/vdso.so.dbg] Error 1