Difference between revisions of "Board:gigabyte/m57sli"

From coreboot
Jump to navigation Jump to search
(→‎Building LinuxBIOS: add note about no-stack-protector)
Line 127: Line 127:
and updating all the lines that start with 'payload'. There are 2 occurrences, one for the normal image, and one for the fallback image.
and updating all the lines that start with 'payload'. There are 2 occurrences, one for the normal image, and one for the fallback image.


If you are on a recent distribution (e.g. Ubuntu Feisty Fawn), you may need to disable the stack protector that is now enabled by default in the version of GCC shipped. You can do this by changing the CC line in  
You may need to disable the stack protector that is now enabled by default in the version of GCC shipped with some distros (e.g. Ubuntu Feisty Fawn). You can do this by changing the CC line in  


   targets/gigabyte/m57sli/Options.lb
   targets/gigabyte/m57sli/Options.lb
Line 134: Line 134:


   default CC="$(CROSS_COMPILE)gcc -m32 -fno-stack-protector"
   default CC="$(CROSS_COMPILE)gcc -m32 -fno-stack-protector"
This is only necessary if compilation fails with errors like:
  vtxprintf.c:(.text+0x4eb2): undefined reference to `__stack_chk_fail'


Then build a target directory:
Then build a target directory:

Revision as of 18:33, 21 May 2007