2006-10-18 Roy Marples <uberlord@gentoo.org>
[deliverable/binutils-gdb.git] / ld / emulparams / elf32bmip.sh
CommitLineData
465bc359
AM
1# If you change this file, please also look at files which source this one:
2# elf32b4300.sh elf32bsmip.sh elf32btsmip.sh elf32ebmip.sh elf32lmip.sh
3
252b5132
RH
4SCRIPT_NAME=elf
5OUTPUT_FORMAT="elf32-bigmips"
6BIG_OUTPUT_FORMAT="elf32-bigmips"
7LITTLE_OUTPUT_FORMAT="elf32-littlemips"
8TEXT_START_ADDR=0x0400000
465bc359 9test -n "${EMBEDDED}" || DATA_ADDR=0x10000000
24718e3b
L
10MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
11COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
252b5132
RH
12NONPAGED_TEXT_START_ADDR=0x0400000
13SHLIB_TEXT_START_ADDR=0x5ffe0000
161f49a3 14TEXT_DYNAMIC=
5a8e7be2
AM
15INITIAL_READONLY_SECTIONS=
16if test -z "${CREATE_SHLIB}"; then
17 INITIAL_READONLY_SECTIONS=".interp ${RELOCATING-0} : { *(.interp) }"
18fi
19INITIAL_READONLY_SECTIONS="${INITIAL_READONLY_SECTIONS}
465bc359
AM
20 .reginfo ${RELOCATING-0} : { *(.reginfo) }
21"
252b5132 22OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
4e25343c
RS
23# If the output has a GOT section, there must be exactly 0x7ff0 bytes
24# between .got and _gp. The ". = ." below stops the orphan code from
25# inserting other sections between the assignment to _gp and the start
26# of .got.
252b5132 27OTHER_GOT_SYMBOLS='
4e25343c 28 . = .;
252b5132
RH
29 _gp = ALIGN(16) + 0x7ff0;
30'
465bc359
AM
31OTHER_SDATA_SECTIONS="
32 .lit8 ${RELOCATING-0} : { *(.lit8) }
33 .lit4 ${RELOCATING-0} : { *(.lit4) }
34"
252b5132
RH
35TEXT_START_SYMBOLS='_ftext = . ;'
36DATA_START_SYMBOLS='_fdata = . ;'
37OTHER_BSS_SYMBOLS='_fbss = .;'
38OTHER_SECTIONS='
39 .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
40 .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
ce28273f
FF
41 .mdebug.abi32 : { KEEP(*(.mdebug.abi32)) }
42 .mdebug.abiN32 : { KEEP(*(.mdebug.abiN32)) }
43 .mdebug.abi64 : { KEEP(*(.mdebug.abi64)) }
44 .mdebug.abiO64 : { KEEP(*(.mdebug.abiO64)) }
45 .mdebug.eabi32 : { KEEP(*(.mdebug.eabi32)) }
46 .mdebug.eabi64 : { KEEP(*(.mdebug.eabi64)) }
47 .gcc_compiled_long32 : { KEEP(*(.gcc_compiled_long32)) }
48 .gcc_compiled_long64 : { KEEP(*(.gcc_compiled_long64)) }
252b5132
RH
49'
50ARCH=mips
51MACHINE=
52TEMPLATE_NAME=elf32
73934d31 53EXTRA_EM_FILE=mipself
252b5132 54GENERATE_SHLIB_SCRIPT=yes
35eb9fb6 55GENERATE_PIE_SCRIPT=yes
This page took 0.28251 seconds and 4 git commands to generate.