]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r262484
authorbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 27 Mar 2014 20:21:13 +0000 (20:21 +0000)
committerbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 27 Mar 2014 20:21:13 +0000 (20:21 +0000)
commitdbb96ebbe53a984644ed362129155a7a0edd9473
tree64fc0eae1cb45765177508983977ce6274c03dca
parent4ab6d6872969a3f215a78766b81c3767cc6f8a7d
MFC: r262484

In puthdr(), start the ELF .data section on a new page, as this is
what btxldr expects (.set MEM_DATA,start+0x1000 in btxldr.S).

This makes resulting ELF binaries bootable with grub, gptboot and boot2.

PR:             153801
Submitted by:   Gleb Kurtsou <gleb.kurtsou at gmail.com>
Tested by:      Ruben Kerkhof <ruben at rubenkerkhof.com>
Glanced at by:  jhb, peter

git-svn-id: svn://svn.freebsd.org/base/stable/8@263837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/btxld/btxld.c