ATMEL AVR microcontroller support.
[binutils.git] / ld / emulparams / elf32bmipn32.sh
blob56f42a9b2964773a61eb5e1514fa6910f9241d3f
1 # This is an ELF platform.
2 SCRIPT_NAME=elf
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"
10 TEMPLATE_NAME=elf32
12 TEXT_START_ADDR=0x10000000
13 MAXPAGESIZE=0x100000
14 ENTRY=__start
16 # GOT-related settings.
17 OTHER_GOT_SYMBOLS='
18 _gp = ALIGN(16) + 0x7ff0;
20 OTHER_GOT_SECTIONS='
21 .lit8 : { *(.lit8) }
22 .lit4 : { *(.lit4) }
23 .srdata : { *(.srdata) }
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;
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=
44 OTHER_RELOCATING_SECTIONS='
45 .MIPS.events.text :
47 *(.MIPS.events.text)
48 *(.MIPS.events.gnu.linkonce.t*)
50 .MIPS.content.text :
52 *(.MIPS.content.text)
53 *(.MIPS.content.gnu.linkonce.t*)
55 .MIPS.events.data :
57 *(.MIPS.events.data)
58 *(.MIPS.events.gnu.linkonce.d*)
60 .MIPS.content.data :
62 *(.MIPS.content.data)
63 *(.MIPS.content.gnu.linkonce.d*)
65 .MIPS.events.rodata :
67 *(.MIPS.events.rodata)
68 *(.MIPS.events.gnu.linkonce.r*)
70 .MIPS.content.rodata :
72 *(.MIPS.content.rodata)
73 *(.MIPS.content.gnu.linkonce.r*)