1SCRIPT_NAME=elf
2ELFSIZE=64
3TEMPLATE_NAME=elf32
4OUTPUT_FORMAT="elf64-hppa"
5MAXPAGESIZE=0x10000
6ARCH=hppa
7MACHINE=hppa2.0w
8DATA_PLT=
9DATA_NONEXEC_PLT=
10ENTRY="__start"
11PLT_BEFORE_GOT=
12GENERATE_SHLIB_SCRIPT=yes
13
14TEXT_START_ADDR=0x10000
15
16# We really want multiple .stub sections, one for each input .text section,
17# but for now this is good enough.
18OTHER_READONLY_SECTIONS="
19  .PARISC.unwind ${RELOCATING-0} : { *(.PARISC.unwind) }"
20
21# The PA64 ELF port treats .plt sections differently than most.  We also have
22# to create a .opd section.  What most systems call the .got, we call the .dlt
23OTHER_READWRITE_SECTIONS="
24  .opd          ${RELOCATING-0} : { *(.opd) }
25  ${RELOCATING+PROVIDE (__gp = .);}
26  .plt          ${RELOCATING-0} : { *(.plt) }
27  .dlt          ${RELOCATING-0} : { *(.dlt) }"
28
29# The PA64 ELF port has two additional bss sections. huge bss and thread bss.
30# Make sure they end up in the appropriate location.
31OTHER_BSS_SECTIONS="
32  .hbss         ${RELOCATING-0} : { *(.hbss) }
33  .tbss         ${RELOCATING-0} : { *(.tbss) }
34"
35
36# HPs use .dlt where systems use .got.  Sigh.
37OTHER_GOT_RELOC_SECTIONS="
38  .rela.dlt     ${RELOCATING-0} : { *(.rela.dlt) }
39  .rela.opd     ${RELOCATING-0} : { *(.rela.opd) }"
40
41# .dynamic should be at the start of the .text segment.
42TEXT_DYNAMIC=
43
44. ${srcdir}/emulparams/elf_obsd.sh
45