* elf-hppa.h (elf_hppa_final_link_relocate): Get the right
[deliverable/binutils-gdb.git] / ld / emulparams / elf64hppa.sh
CommitLineData
4b69d4ad 1SCRIPT_NAME=elf
040266ab 2ELFSIZE=64
4b69d4ad 3OUTPUT_FORMAT="elf64-hppa"
7e4d694e
JL
4TEXT_START_ADDR=0x4000000000001000
5DATA_ADDR=0x8000000000001000
4b69d4ad
JL
6TARGET_PAGE_SIZE=4096
7MAXPAGESIZE=4096
8ARCH=hppa
9MACHINE=hppa2.0w
040266ab 10ENTRY="main"
4b69d4ad
JL
11TEMPLATE_NAME=elf32
12GENERATE_SHLIB_SCRIPT=yes
904ecb2d
JL
13# We really want multiple .stub sections, one for each input .text section,
14# but for now this is good enough.
15OTHER_READONLY_SECTIONS='.PARISC.unwind : { *(.PARISC.unwind) } .stubs : { *(.stubs) }'
16
17# The PA64 ELF port treats .plt sections differently than most. We also have
18# to create a .opd section. Combine the .opd, .plt and .dlt together into a
19# single .dlt section in the output file.
040266ab 20OTHER_READWRITE_SECTIONS='.dlt : { *(.opd) *(.plt) *(.dlt) }'
904ecb2d
JL
21
22# The PA64 ELF port has two additional bss sections. huge bss and thread bss.
23# Make sure they end up in the appropriate location. We also have to set
24# __TLS_SIZE to the size of the thread bss section.
25OTHER_BSS_SECTIONS='.hbss : { *(.hbss) } .tbss : { *(.tbss) } __TLS_SIZE = SIZEOF(.tbss);'
26
27# The linker is required to define these two symbols.
28EXECUTABLE_SYMBOLS='__SYSTEM_ID = 0x214; _FPU_STATUS = 0x0;'
4b69d4ad 29DATA_PLT=
904ecb2d
JL
30
31# The PA64 ELF port needs two additional initializer sections and also wants
32# a start/end symbol pair for the .init and .fini sections.
33INIT_START='KEEP (*(.HP.init)); __preinit_start = .; KEEP (*(.preinit)); __preinit_end = .;__init_start = .;'
34INIT_END='__init_end = .;'
35FINI_START='__fini_start = .;'
36FINI_END='__fini_end = .;'
This page took 0.03618 seconds and 4 git commands to generate.