2010-03-05 23:03:20 +00:00
|
|
|
/* $FreeBSD$ */
|
|
|
|
|
2009-11-23 07:11:10 +00:00
|
|
|
ENTRY(_start)
|
|
|
|
|
2010-09-27 19:45:34 +00:00
|
|
|
PHDRS {
|
|
|
|
text PT_LOAD FLAGS(0x7);
|
|
|
|
}
|
|
|
|
|
2009-11-23 07:11:10 +00:00
|
|
|
SECTIONS {
|
2010-03-05 23:03:20 +00:00
|
|
|
. = KERNLOADADDR + SIZEOF_HEADERS;
|
2009-11-23 07:11:10 +00:00
|
|
|
|
2010-09-27 19:45:34 +00:00
|
|
|
.text : {
|
2009-11-23 07:11:10 +00:00
|
|
|
*(.text)
|
2010-03-05 23:03:20 +00:00
|
|
|
*(.dynamic)
|
2009-11-23 07:11:10 +00:00
|
|
|
etext = .;
|
|
|
|
_etext = .;
|
|
|
|
. = ALIGN(0x2000);
|
2010-09-27 19:45:34 +00:00
|
|
|
} : text
|
2009-11-23 07:11:10 +00:00
|
|
|
|
2010-09-27 19:45:34 +00:00
|
|
|
. = ALIGN(0x2000);
|
|
|
|
.rodata : {
|
2009-11-23 07:11:10 +00:00
|
|
|
_fdata = .;
|
|
|
|
*(.rodata)
|
|
|
|
. = ALIGN(32);
|
|
|
|
}
|
|
|
|
|
2010-09-27 19:45:34 +00:00
|
|
|
.data : {
|
2009-11-23 07:11:10 +00:00
|
|
|
_rwdata = .;
|
|
|
|
*(.data)
|
|
|
|
. = ALIGN(32);
|
|
|
|
}
|
|
|
|
|
|
|
|
_gp = (. + 0x8000);
|
|
|
|
|
2010-09-27 19:45:34 +00:00
|
|
|
.sdata : {
|
2009-11-23 07:11:10 +00:00
|
|
|
_small_start = .;
|
|
|
|
*(.sdata)
|
|
|
|
. = ALIGN(32);
|
|
|
|
edata = .;
|
|
|
|
_edata = .;
|
2010-09-27 19:45:34 +00:00
|
|
|
} : text
|
2009-11-23 07:11:10 +00:00
|
|
|
|
2010-09-27 19:45:34 +00:00
|
|
|
.sbss : {
|
2009-11-23 07:11:10 +00:00
|
|
|
__bss_start = .;
|
|
|
|
_fbss = .;
|
|
|
|
*(.sbss) *(.scommon)
|
|
|
|
_small_end = .;
|
|
|
|
. = ALIGN(32);
|
|
|
|
}
|
|
|
|
|
2010-09-27 19:45:34 +00:00
|
|
|
.bss : {
|
2009-11-23 07:11:10 +00:00
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(32);
|
|
|
|
_end = .;
|
|
|
|
end = .;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|