1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-04 12:52:15 +00:00

Use a single program header to fix loading 64-bit kernels on old versions of

U-Boot.
This commit is contained in:
Juli Mallett 2010-09-27 19:45:34 +00:00
parent 1691b62202
commit 9e1bef6f31
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213227

View File

@ -7,24 +7,29 @@ ENTRY(_start)
__DYNAMIC = 0;
PROVIDE (_DYNAMIC = 0);
PHDRS {
text PT_LOAD FLAGS(0x7);
}
SECTIONS {
. = KERNLOADADDR + SIZEOF_HEADERS;
.text . : {
.text : {
*(.text)
*(.dynamic)
etext = .;
_etext = .;
. = ALIGN(0x2000);
}
} : text
.rodata ALIGN(0x2000) : {
. = ALIGN(0x2000);
.rodata : {
_fdata = .;
*(.rodata)
. = ALIGN(32);
}
.data . : {
.data : {
_rwdata = .;
*(.data)
. = ALIGN(32);
@ -33,15 +38,15 @@ SECTIONS {
_gp = (. + 0x8000);
.sdata . : {
.sdata : {
_small_start = .;
*(.sdata)
. = ALIGN(32);
edata = .;
_edata = .;
}
} : text
.sbss . : {
.sbss : {
__bss_start = .;
_fbss = .;
*(.sbss) *(.scommon)
@ -49,7 +54,7 @@ SECTIONS {
. = ALIGN(32);
}
.bss . : {
.bss : {
*(.bss)
*(COMMON)
. = ALIGN(32);