1 # This is an ELF platform.
4 # Handle both big- and little-ended 32-bit MIPS objects.
6 OUTPUT_FORMAT
="elf32-bigmips"
7 BIG_OUTPUT_FORMAT
="elf32-bigmips"
8 LITTLE_OUTPUT_FORMAT
="elf32-littlemips"
12 TEXT_START_ADDR
=0x10000000
16 # GOT-related settings.
18 _gp = ALIGN(16) + 0x7ff0;
23 .srdata : { *(.srdata) }
27 TEXT_START_SYMBOLS
='_ftext = . ;'
28 DATA_START_SYMBOLS
='_fdata = . ;'
29 OTHER_BSS_SYMBOLS
='_fbss = .;'
30 # IRIX6 defines these symbols. 0x34 is the size of the ELF header.
32 __dso_displacement = 0;
33 __elf_header = ${TEXT_START_ADDR};
34 __program_header_table = ${TEXT_START_ADDR} + 0x34;
37 # There are often dynamic relocations against the .rodata section.
38 # Setting DT_TEXTREL in the .dynamic section does not convince the
39 # IRIX6 linker to permit relocations against the text segment.
40 # Following the IRIX linker, we simply put .rodata in the data
44 OTHER_RELOCATING_SECTIONS
='
48 *(.MIPS.events.gnu.linkonce.t*)
53 *(.MIPS.content.gnu.linkonce.t*)
58 *(.MIPS.events.gnu.linkonce.d*)
63 *(.MIPS.content.gnu.linkonce.d*)
67 *(.MIPS.events.rodata)
68 *(.MIPS.events.gnu.linkonce.r*)
70 .MIPS.content.rodata :
72 *(.MIPS.content.rodata)
73 *(.MIPS.content.gnu.linkonce.r*)