* emulparams/elf32bmipn32.sh (OTHER_RELOCATING_SECTIONS): Add
[deliverable/binutils-gdb.git] / ld / emulparams / elf32bmipn32.sh
CommitLineData
dc831978
MM
1# This is an ELF platform.
2SCRIPT_NAME=elf
3
4# Handle both big- and little-ended 32-bit MIPS objects.
5ARCH=mips
6OUTPUT_FORMAT="elf32-bigmips"
7BIG_OUTPUT_FORMAT="elf32-bigmips"
8LITTLE_OUTPUT_FORMAT="elf32-littlemips"
9
10TEMPLATE_NAME=elf32
11
12TEXT_START_ADDR=0x10000000
13MAXPAGESIZE=0x100000
14ENTRY=__start
15
16# GOT-related settings.
17OTHER_GOT_SYMBOLS='
18 _gp = ALIGN(16) + 0x7ff0;
19'
20OTHER_GOT_SECTIONS='
21 .lit8 : { *(.lit8) }
22 .lit4 : { *(.lit4) }
23 .srdata : { *(.srdata) }
24'
25
26# Magic symbols.
27TEXT_START_SYMBOLS='_ftext = . ;'
28DATA_START_SYMBOLS='_fdata = . ;'
29OTHER_BSS_SYMBOLS='_fbss = .;'
30# IRIX6 defines these symbols. 0x34 is the size of the ELF header.
31EXECUTABLE_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.
42WRITABLE_RODATA=
43
0ca63823
MM
44OTHER_RELOCATING_SECTIONS='
45 .MIPS.events.text :
46 {
47 *(.MIPS.events.text)
48 *(.MIPS.events.gnu.linkonce.t*)
49 }
50 .MIPS.content.text :
51 {
52 *(.MIPS.content.text)
53 *(.MIPS.content.gnu.linkonce.t*)
54 }
55 .MIPS.events.data :
56 {
57 *(.MIPS.events.data)
58 *(.MIPS.events.gnu.linkonce.d*)
59 }
60 .MIPS.content.data :
61 {
62 *(.MIPS.content.data)
63 *(.MIPS.content.gnu.linkonce.d*)
64 }
65 .MIPS.events.rodata :
66 {
67 *(.MIPS.events.rodata)
68 *(.MIPS.events.gnu.linkonce.r*)
69 }
70 .MIPS.content.rodata :
71 {
72 *(.MIPS.content.rodata)
73 *(.MIPS.content.gnu.linkonce.r*)
74 }
75'
This page took 0.026407 seconds and 4 git commands to generate.