2010-03-05 23:03:20 +00:00
|
|
|
/* $FreeBSD$ */
|
|
|
|
|
2009-11-23 07:11:10 +00:00
|
|
|
TARGET(elf64-tradbigmips)
|
|
|
|
OUTPUT_FORMAT("elf64-tradbigmips", "elf64-tradbigmips", "elf64-tradlittlemips")
|
|
|
|
OUTPUT_ARCH(mips)
|
|
|
|
ENTRY(_start)
|
2010-03-05 23:03:20 +00:00
|
|
|
__DYNAMIC = 0;
|
2009-11-23 07:11:10 +00:00
|
|
|
PROVIDE (_DYNAMIC = 0);
|
|
|
|
|
|
|
|
SECTIONS {
|
2010-03-05 23:03:20 +00:00
|
|
|
. = KERNLOADADDR + SIZEOF_HEADERS;
|
2009-11-23 07:11:10 +00:00
|
|
|
|
2010-03-05 23:03:20 +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-03-05 23:03:20 +00:00
|
|
|
}
|
2009-11-23 07:11:10 +00:00
|
|
|
|
|
|
|
.rodata ALIGN(0x2000) : {
|
|
|
|
_fdata = .;
|
|
|
|
*(.rodata)
|
|
|
|
. = ALIGN(32);
|
|
|
|
}
|
|
|
|
|
|
|
|
.data . : {
|
|
|
|
_rwdata = .;
|
|
|
|
*(.data)
|
|
|
|
. = ALIGN(32);
|
|
|
|
CONSTRUCTORS;
|
|
|
|
}
|
|
|
|
|
|
|
|
_gp = (. + 0x8000);
|
|
|
|
|
|
|
|
.sdata . : {
|
|
|
|
_small_start = .;
|
|
|
|
*(.sdata)
|
|
|
|
. = ALIGN(32);
|
|
|
|
edata = .;
|
|
|
|
_edata = .;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sbss . : {
|
|
|
|
__bss_start = .;
|
|
|
|
_fbss = .;
|
|
|
|
*(.sbss) *(.scommon)
|
|
|
|
_small_end = .;
|
|
|
|
. = ALIGN(32);
|
|
|
|
}
|
|
|
|
|
|
|
|
.bss . : {
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(32);
|
|
|
|
_end = .;
|
|
|
|
end = .;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|