- Code: Select all
LD vmlinux
ld: vmlinux: section `.init.text' can't be allocated in segment 0
ld: final link failed: Bad value
make[1]: *** [vmlinux] Erreur 1
This happens only with PaX enabled.
LD vmlinux
ld: vmlinux: section `.init.text' can't be allocated in segment 0
ld: final link failed: Bad value
make[1]: *** [vmlinux] Erreur 1
what's the ld version? if you're not at 2.17 already, you should try that at least.linkfanel wrote:ld fails with the last grsecurity-2.1.10-2.6.21-200705041939.patch:
- Code: Select all
LD vmlinux
ld: vmlinux: section `.init.text' can't be allocated in segment 0
ld: final link failed: Bad value
make[1]: *** [vmlinux] Erreur 1
This happens only with PaX enabled.
it's under PaX options/Non-executable pages/Enforce non-executable kernel pagesIronwalker wrote:Sorry to be a nuciance,but,where exactly is the "KERNEXEC" option in config?
Which config exactly?
all those !options mean that you must disable them if you want to use KERNEXEC. i'm guessing that it's a 2.4 kernel so you have to disable modules and chose direct PCI access at least.select PAX_KERNEXEC if (!X86_64 && !MODULES && !HOTPLUG_PCI_COMPAQ_NVRAM && !PCI_BIOS)
So am I being spectacularly naive here or is this the option in which case how do I turn it off ? Sometimes,I think so much and figure out the hard and intricate but totally miss the obvious right in front of my eyes.
which error? the linker failure? i don't know what causes it yet, but i know that ld 2.17 links any kernel fine, with or without KERNEXEC. also, if you can't even select KERNEXEC in your config, how can it cause any problem?The test kernel I am building gives me the error above but do not see where to change or turn off select KERNEXEC
if you can reproduce this with the latest PaX test version, try to capture the full oops report (even a digital camera will do) and post it here.specs wrote:Kernel panic - not syncing : Attemped to kill init!
BUG : unable to handle kernel paging request at virtual address c02a701c
printing eip:
c012cc34
*pgd = 345063
*pmd = 345063
*pte = 2a7161