Merge from projects/mips to head by hand:

special ld script for 64-bit octeon link.
This commit is contained in:
Warner Losh 2010-01-10 03:46:08 +00:00
commit 27773babce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201972

View File

@ -0,0 +1,61 @@
TARGET(elf64-tradbigmips)
OUTPUT_FORMAT("elf64-tradbigmips", "elf64-tradbigmips", "elf64-tradlittlemips")
OUTPUT_ARCH(mips)
ENTRY(_start)
/* __DYNAMIC = 0;
PROVIDE (_DYNAMIC = 0);
*/
PHDRS {
text PT_LOAD FLAGS ( 5 ) ;
}
SECTIONS {
.text _start : {
*(.text)
/*(.dynamic)*/
etext = .;
_etext = .;
. = ALIGN(0x2000);
} : text
.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 = .;
}
}