package/grub: fix stage2 link with recent binutils
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 12 Feb 2012 18:40:18 +0000 (18:40 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 12 Feb 2012 18:40:18 +0000 (18:40 +0000)
commit444f3dd7f1b19aed7ff57781fc9f02ac9b501c47
tree86388c4eb7167961e342866340eeee7116773391
parent71da0d95347974f3967d41aded377a521177ef24
package/grub: fix stage2 link with recent binutils

We want the `_start's symbols to be at the very beginning of the `stage2'
binary's `.text' section. However, nothing enforces this requirement. With
recent binutils (ie. post 2.19.1), this results in a corrupt binary, as ld(1)
puts another symbol (eg. `journal_init') at the beginning of the section.

Fix this by providing a stripped down version of the default linker script
where we enforces the position of `_start' in the `.text' section.

Patch by Arnaud Lacombe (#10444)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30484 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/grub/patches/030-add-stage2-ldscripts.patch [new file with mode: 0644]
This page took 0.026399 seconds and 4 git commands to generate.