GRUB invaders: Difference between revisions

From coreboot
Jump to navigation Jump to search
No edit summary
m (Markup code (unfortunately there does not seem to be a way in Wikitext to markup certain words in a sentence as monospace/code))
Line 12: Line 12:


When attempting to compile on Trisquel 6 I got this error:
When attempting to compile on Trisquel 6 I got this error:
video.c:(.text+0x277): undefined reference to `__stack_chk_fail'


Modify compile.sh, find the line that says:
video.c:(.text+0x277): undefined reference to `__stack_chk_fail'


CFLAGS="-fno-builtin -nostdinc -O2 -I. -Wall -Werror"
Modify '''compile.sh''', find the line that says:
 
CFLAGS="-fno-builtin -nostdinc -O2 -I. -Wall -Werror"


Change it to say:
Change it to say:


CFLAGS="-fno-builtin -nostdinc -O2 -I. -Wall -Werror -fno-stack-protector"
CFLAGS="-fno-builtin -nostdinc -O2 -I. -Wall -Werror -fno-stack-protector"


This made it compile for me.
This made it compile for me.

Revision as of 10:20, 15 December 2013

GRUB invaders as payload.

GRUB invaders is a multi-boot compliant space invaders game. It can either be started from within GRUB (as a "kernel"), or it can be used as a coreboot payload.

GRUB invaders 1.0.0 has 3 problems which are triggered by newer gcc+binutils. A mail with a patch is available here and the patch is here.

---

User comment (compiling in Trisquel 6):

I applied the patch above.

When attempting to compile on Trisquel 6 I got this error:

video.c:(.text+0x277): undefined reference to `__stack_chk_fail'

Modify compile.sh, find the line that says:

CFLAGS="-fno-builtin -nostdinc -O2 -I. -Wall -Werror"

Change it to say:

CFLAGS="-fno-builtin -nostdinc -O2 -I. -Wall -Werror -fno-stack-protector"

This made it compile for me.

---

Public domain I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.