* scripttempl/elf.sc: Move non-text .dynamic section before
[deliverable/binutils-gdb.git] / ld / emulparams / hppa64linux.sh
1 SCRIPT_NAME=elf
2 ELFSIZE=64
3 OUTPUT_FORMAT="elf64-hppa-linux"
4 TEXT_START_ADDR=0x10000
5 TARGET_PAGE_SIZE=0x10000
6 MAXPAGESIZE=0x10000
7 ARCH=hppa
8 MACHINE=hppa2.0w
9 ENTRY="main"
10 TEMPLATE_NAME=elf32
11 GENERATE_SHLIB_SCRIPT=yes
12
13 # We really want multiple .stub sections, one for each input .text section,
14 # but for now this is good enough.
15 OTHER_READONLY_SECTIONS='.PARISC.unwind : { *(.PARISC.unwind) } '
16
17 # The PA64 ELF port treats .plt sections differently than most. We also have
18 # to create a .opd section. What most systems call the .got, we call the .dlt
19 OTHER_READWRITE_SECTIONS='.opd : { *(.opd) } PROVIDE (__gp = .); .plt : { *(.plt) } .dlt : { *(.dlt) }'
20
21 # The PA64 ELF port has two additional bss sections. huge bss and thread bss.
22 # Make sure they end up in the appropriate location. We also have to set
23 # __TLS_SIZE to the size of the thread bss section.
24 OTHER_BSS_SECTIONS='.hbss : { *(.hbss) } .tbss : { *(.tbss) }'
25 #OTHER_BSS_END_SYMBOLS='PROVIDE (__TLS_SIZE = SIZEOF (.tbss));'
26 OTHER_BSS_END_SYMBOLS='PROVIDE (__TLS_SIZE = 0);'
27
28 # HPs use .dlt where systems use .got. Sigh.
29 OTHER_GOT_RELOC_SECTIONS='.rela.dlt : { *(.rela.dlt) }'
30
31 # We're not actually providing a symbol anymore (due to the inability to be
32 # safe in regards to shared libraries). So we just allocate the hunk of space
33 # unconditionally, but do not mess around with the symbol table.
34 DATA_START_SYMBOLS='. += 16;'
35
36 DATA_PLT=
37
38 # .dynamic should be at the start of the .text segment.
39 TEXT_DYNAMIC=
This page took 0.033432 seconds and 4 git commands to generate.