* emulparams/elf32bmipn32.sh (OTHER_RELOCATING_SECTIONS): Add
[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
44 OTHER_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 '