grsec and gcc 4.6 problem

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

grsec and gcc 4.6 problem

Postby arekm » 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
arekm
 
Posts: 23
Joined: Mon Mar 30, 2009 5:30 am

Re: grsec and gcc 4.6 problem

Postby PaX Team » Fri May 20, 2011 3:04 am

arekm wrote:Looks like -Wl,--no-undefined is not enough with gcc 4.6, still fails with "arch/x86/vdso/vdso.so.dbg: undefined symbols found"
it'd help me a lot if you could tell me what those undefined symbols are ;).
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: grsec and gcc 4.6 problem

Postby arekm » Thu May 26, 2011 9:22 am

make -f /home/users/arekm/rpm/BUILD/kernel-2.6.38.7/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.7/linux-2.6.38/arch/x86/vdso/checkundef.sh 'nm' 'arch/x86/vdso/vdso.so.dbg'
U _GLOBAL_OFFSET_TABLE_
arch/x86/vdso/vdso.so.dbg: undefined symbols found
make[4]: *** [arch/x86/vdso/vdso.so.dbg] Blad 1



so U _GLOBAL_OFFSET_TABLE_ and it looks like this happens only with gold as linker (when ld.bfd is used then there is no such problem)

binutils 2.21.51.0.9
arekm
 
Posts: 23
Joined: Mon Mar 30, 2009 5:30 am

Re: grsec and gcc 4.6 problem

Postby PaX Team » Thu May 26, 2011 6:11 pm

arekm wrote:so U _GLOBAL_OFFSET_TABLE_ and it looks like this happens only with gold as linker (when ld.bfd is used then there is no such problem)

binutils 2.21.51.0.9
can you email me arch/x86/vdso/vdso.so.dbg? also does this happen with vanilla linux too?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm


Return to grsecurity support