grsecurity-2.1.14-2.6.31-200909112301 wont compile

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

Re: grsecurity-2.1.14-2.6.31-200909112301 wont compile

Postby ngsupb » Sat Sep 19, 2009 7:03 am

PaX Team wrote:
ngsupb wrote:sure it is: http://vetala.org.ua/config
2.19 linked this fine but that can be due to other reasons as well. in any case, could you stick a
Code: Select all
. = ALIGN(16);
just before the .init.data section in arch/x86/kernel/vmlinux.lds.S (similar to how .init.setup has one already) and see if it helps?


I have added as suggested.
. = ALIGN(16);
.init.data : AT(ADDR(.init.data) - LOAD_OFFSET) {


Unfortunately the same error:

LD vmlinux
ld: section .init.data [0000000001843860 -> 0000000001876c46] overlaps section .exit.text [0000000001841ee0 -> 0000000001843861]
make: *** [vmlinux] Error 1

I would compile with 2.19, but can't find an rpm to update on centos5. I used your repo to update to 2.18.50 before.
ngsupb
 
Posts: 8
Joined: Wed Sep 09, 2009 6:34 am

Re: grsecurity-2.1.14-2.6.31-200909112301 wont compile

Postby bopic » Sun Sep 20, 2009 6:02 am

I have this problem too

GNU ld (GNU Binutils for Debian) 2.18.0.20080103
grsecurity-2.1.14-2.6.31-200909171758.patch

same output as other posts "ld: vmlinux: section .text lma 0x40001100 overlaps previous sections"
bopic
 
Posts: 1
Joined: Sun Sep 20, 2009 5:51 am

Re: grsecurity-2.1.14-2.6.31-200909112301 wont compile

Postby spender » Sun Sep 20, 2009 4:15 pm

The problem should be resolved in the latest patch. Let us know if you're still experiencing the same issue.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: grsecurity-2.1.14-2.6.31-200909112301 wont compile

Postby ngsupb » Sun Sep 20, 2009 6:34 pm

thank you. it worked!
ngsupb
 
Posts: 8
Joined: Wed Sep 09, 2009 6:34 am

Re: grsecurity-2.1.14-2.6.31-200909112301 wont compile

Postby specs » Wed Sep 23, 2009 2:39 pm

I ran into the same problem as bopic.

Currently I have tried 2 different pc's with debian/stable/i386 (a VIA C3 and an Intel Atom).
Version: grsecurity-2.1.14-2.6.31-200909201605.patch
LD-version: GNU ld (GNU Binutils for Debian) 2.18.0.20080103
Code: Select all
linux-2.6.31$ make bzImage
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
make[1]: [grsecurity/grsec_hidesym.o] Error 1 (ignored)
make[1]: [grsecurity/grsec_hidesym.o] Error 1 (ignored)
  grsec: protected kernel image paths
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      vmlinux
ld: vmlinux: section .text lma 0x40001100 overlaps previous sections
ld: vmlinux: section `.text' can't be allocated in segment 0
ld: final link failed: Bad value
make: *** [vmlinux] Error 1


I thought both pc's had exact the same error message (not checked).

So far I tried compiling a vanilla kernel (success), installing the debian/testing version of binutils (i cancelled it since it looked like entering a dependency hell).
Currently my debian/unstable installations are not available for testing due to lack of drive space. Have to make some space later.
Upgrading all my pc's to testing or unstable is not really an option (both have ld 2.19 installed).

I also look at the small patch mentioned by Paxteam, but that is a different problem.
specs
 
Posts: 190
Joined: Sun Mar 26, 2006 7:00 am

Re: grsecurity-2.1.14-2.6.31-200909112301 wont compile

Postby PaX Team » Wed Sep 23, 2009 6:42 pm

specs wrote:
Code: Select all
linux-2.6.31$ make bzImage
  LD      vmlinux
ld: vmlinux: section .text lma 0x40001100 overlaps previous sections
ld: vmlinux: section `.text' can't be allocated in segment 0
ld: final link failed: Bad value
make: *** [vmlinux] Error 1
this linker error too should be fixed in the latest patch now.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: grsecurity-2.1.14-2.6.31-200909112301 wont compile

Postby specs » Thu Sep 24, 2009 12:02 pm

Thanks, the new patch works.
specs
 
Posts: 190
Joined: Sun Mar 26, 2006 7:00 am

Previous

Return to grsecurity support

cron