]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/binutils/ld/emulparams/elf32bmip.sh
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / binutils / ld / emulparams / elf32bmip.sh
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 # elf32ebmipvxworks.sh elf32elmipvxworks.sh
4
5 SCRIPT_NAME=elf
6 OUTPUT_FORMAT="elf32-bigmips"
7 BIG_OUTPUT_FORMAT="elf32-bigmips"
8 LITTLE_OUTPUT_FORMAT="elf32-littlemips"
9 TEXT_START_ADDR=0x0400000
10 test -n "${EMBEDDED}" || DATA_ADDR=0x10000000
11 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
12 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
13 NONPAGED_TEXT_START_ADDR=0x0400000
14 SHLIB_TEXT_START_ADDR=0x5ffe0000
15 TEXT_DYNAMIC=
16 INITIAL_READONLY_SECTIONS=
17 if test -z "${CREATE_SHLIB}"; then
18   INITIAL_READONLY_SECTIONS=".interp       ${RELOCATING-0} : { *(.interp) }"
19 fi
20 INITIAL_READONLY_SECTIONS="${INITIAL_READONLY_SECTIONS}
21   .reginfo      ${RELOCATING-0} : { *(.reginfo) }
22 "
23 OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
24 # Unlike most targets, the MIPS backend puts all dynamic relocations
25 # in a single dynobj section, which it also calls ".rel.dyn".  It does
26 # this so that it can easily sort all dynamic relocations before the
27 # output section has been populated.
28 OTHER_GOT_RELOC_SECTIONS="
29   .rel.dyn      ${RELOCATING-0} : { *(.rel.dyn) }
30 "
31 # If the output has a GOT section, there must be exactly 0x7ff0 bytes
32 # between .got and _gp.  The ". = ." below stops the orphan code from
33 # inserting other sections between the assignment to _gp and the start
34 # of .got.
35 OTHER_GOT_SYMBOLS='
36   . = .;
37   _gp = ALIGN(16) + 0x7ff0;
38 '
39 OTHER_SDATA_SECTIONS="
40   .lit8         ${RELOCATING-0} : { *(.lit8) }
41   .lit4         ${RELOCATING-0} : { *(.lit4) }
42 "
43 TEXT_START_SYMBOLS='_ftext = . ;'
44 DATA_START_SYMBOLS='_fdata = . ;'
45 OTHER_BSS_SYMBOLS='_fbss = .;'
46 OTHER_SECTIONS='
47   .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
48   .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
49   .mdebug.abi32 : { KEEP(*(.mdebug.abi32)) }
50   .mdebug.abiN32 : { KEEP(*(.mdebug.abiN32)) }
51   .mdebug.abi64 : { KEEP(*(.mdebug.abi64)) }
52   .mdebug.abiO64 : { KEEP(*(.mdebug.abiO64)) }
53   .mdebug.eabi32 : { KEEP(*(.mdebug.eabi32)) }
54   .mdebug.eabi64 : { KEEP(*(.mdebug.eabi64)) }
55   .gcc_compiled_long32 : { KEEP(*(.gcc_compiled_long32)) }
56   .gcc_compiled_long64 : { KEEP(*(.gcc_compiled_long64)) }
57 '
58 ARCH=mips
59 MACHINE=
60 TEMPLATE_NAME=elf32
61 EXTRA_EM_FILE=mipself
62 GENERATE_SHLIB_SCRIPT=yes
63 GENERATE_PIE_SCRIPT=yes