]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r262484
authorbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 27 Mar 2014 20:19:11 +0000 (20:19 +0000)
committerbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 27 Mar 2014 20:19:11 +0000 (20:19 +0000)
commit470ae6d7d430d65eb0b18c2e988d84c6a65c866f
tree39e7b66176a31a0625392647d223360aae6d0ef0
parent8fe714b32adc67af10c6780a3407dbae50f36d5c
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/10@263835 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/btxld/btxld.c