1source_sh ${srcdir}/emulparams/elf32bmipn32-defs.sh
2OUTPUT_FORMAT="elf32-nbigmips"
3BIG_OUTPUT_FORMAT="elf32-nbigmips"
4LITTLE_OUTPUT_FORMAT="elf32-nlittlemips"
5SHLIB_TEXT_START_ADDR=0x5ffe0000
6COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
7
8# IRIX6 defines these symbols.  0x34 is the size of the ELF header.
9OTHER_SYMBOLS="
10  __dso_displacement = 0;
11  ${CREATE_SHLIB-${CREATE_PIE-__elf_header = ${TEXT_START_ADDR};}}
12  ${CREATE_SHLIB+__elf_header = ${SHLIB_TEXT_START_ADDR};}
13  ${CREATE_PIE+__elf_header = ${SHLIB_TEXT_START_ADDR};}
14  __program_header_table = __elf_header + 0x34;
15"
16
17# There are often dynamic relocations against the .rodata section.
18# Setting DT_TEXTREL in the .dynamic section does not convince the
19# IRIX6 linker to permit relocations against the text segment.
20# Following the IRIX linker, we simply put .rodata in the data
21# segment.
22WRITABLE_RODATA=
23
24EXTRA_EM_FILE=irix
25