Fix problem with going to automake 2.14
[deliverable/binutils-gdb.git] / ld / emulparams / elf64hppa.sh
CommitLineData
4b69d4ad 1SCRIPT_NAME=elf
040266ab 2ELFSIZE=64
4b69d4ad 3OUTPUT_FORMAT="elf64-hppa"
e5b08bf0 4LIB_PATH=/usr/lib/pa20_64:/opt/langtools/lib/pa20_64
7e4d694e
JL
5TEXT_START_ADDR=0x4000000000001000
6DATA_ADDR=0x8000000000001000
4b69d4ad
JL
7TARGET_PAGE_SIZE=4096
8MAXPAGESIZE=4096
9ARCH=hppa
10MACHINE=hppa2.0w
040266ab 11ENTRY="main"
4b69d4ad
JL
12TEMPLATE_NAME=elf32
13GENERATE_SHLIB_SCRIPT=yes
904ecb2d
JL
14# We really want multiple .stub sections, one for each input .text section,
15# but for now this is good enough.
16OTHER_READONLY_SECTIONS='.PARISC.unwind : { *(.PARISC.unwind) } .stubs : { *(.stubs) }'
17
18# The PA64 ELF port treats .plt sections differently than most. We also have
19# to create a .opd section. Combine the .opd, .plt and .dlt together into a
20# single .dlt section in the output file.
9169713a
JL
21#
22# We have temporarily moved the .plt input section to the front of the
23# .dlt output section. This was __gp will be near .plt, regardless of the
24# size of .opd.
25#
26# In the near future the code to compute __gp will be improved and we can
27# move .opd to the start of the .dlt again.
28#
29#
30OTHER_READWRITE_SECTIONS='.dlt : { *(.plt) *(.dlt) *(.opd) }'
904ecb2d
JL
31
32# The PA64 ELF port has two additional bss sections. huge bss and thread bss.
33# Make sure they end up in the appropriate location. We also have to set
34# __TLS_SIZE to the size of the thread bss section.
35OTHER_BSS_SECTIONS='.hbss : { *(.hbss) } .tbss : { *(.tbss) } __TLS_SIZE = SIZEOF(.tbss);'
36
2491f110
JL
37# HPs use .dlt where systems use .got. Sigh.
38OTHER_GOT_RELOC_SECTIONS='.rela.dlt : { *(.rela.dlt) }'
39
904ecb2d
JL
40# The linker is required to define these two symbols.
41EXECUTABLE_SYMBOLS='__SYSTEM_ID = 0x214; _FPU_STATUS = 0x0;'
4b69d4ad 42DATA_PLT=
904ecb2d
JL
43
44# The PA64 ELF port needs two additional initializer sections and also wants
45# a start/end symbol pair for the .init and .fini sections.
46INIT_START='KEEP (*(.HP.init)); __preinit_start = .; KEEP (*(.preinit)); __preinit_end = .;__init_start = .;'
47INIT_END='__init_end = .;'
48FINI_START='__fini_start = .;'
49FINI_END='__fini_end = .;'
This page took 0.026499 seconds and 4 git commands to generate.