* Makefile.am (ALL_EMULATIONS): Add eelf32bmipn32.o.
[external/binutils.git] / ld / emulparams / elf32bmipn32.sh
1 # This is an ELF platform.
2 SCRIPT_NAME=elf
3
4 # Handle both big- and little-ended 32-bit MIPS objects.
5 ARCH=mips
6 OUTPUT_FORMAT="elf32-bigmips"
7 BIG_OUTPUT_FORMAT="elf32-bigmips"
8 LITTLE_OUTPUT_FORMAT="elf32-littlemips"
9
10 TEMPLATE_NAME=elf32
11
12 TEXT_START_ADDR=0x10000000
13 MAXPAGESIZE=0x100000
14 ENTRY=__start
15
16 # GOT-related settings.  
17 OTHER_GOT_SYMBOLS='
18   _gp = ALIGN(16) + 0x7ff0;
19 '
20 OTHER_GOT_SECTIONS='
21   .lit8 : { *(.lit8) }
22   .lit4 : { *(.lit4) }
23   .srdata : { *(.srdata) }
24 '
25
26 # Magic symbols.
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.
31 EXECUTABLE_SYMBOLS="
32   __dso_displacement = 0;
33   __elf_header = ${TEXT_START_ADDR};
34   __program_header_table = ${TEXT_START_ADDR} + 0x34;
35 "
36
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
41 # segment.
42 WRITABLE_RODATA=
43