* callback.h: Remove ANSI_PROTOTYPES conditional code.
[binutils.git] / ld / emulparams / hppa64linux.sh
blob6874c4578c3adce2b85dd29ef51ce3a8d0616dcf
1 # If you change this file, please also look at files which source this one:
2 # elf64hppa.sh
4 SCRIPT_NAME=elf
5 ELFSIZE=64
6 # FIXME: this output format is for hpux.
7 OUTPUT_FORMAT="elf64-hppa-linux"
8 TEXT_START_ADDR=0x10000
9 TARGET_PAGE_SIZE=0x10000
10 MAXPAGESIZE=0x10000
11 ARCH=hppa
12 MACHINE=hppa2.0w
13 ENTRY="main"
14 TEMPLATE_NAME=elf32
15 GENERATE_SHLIB_SCRIPT=yes
17 # We really want multiple .stub sections, one for each input .text section,
18 # but for now this is good enough.
19 OTHER_READONLY_SECTIONS="
20 .PARISC.unwind ${RELOCATING-0} : { *(.PARISC.unwind) }"
22 # The PA64 ELF port treats .plt sections differently than most. We also have
23 # to create a .opd section. What most systems call the .got, we call the .dlt
24 OTHER_READWRITE_SECTIONS="
25 .opd ${RELOCATING-0} : { *(.opd) }
26 ${RELOCATING+PROVIDE (__gp = .);}
27 .plt ${RELOCATING-0} : { *(.plt) }
28 .dlt ${RELOCATING-0} : { *(.dlt) }"
30 # The PA64 ELF port has two additional bss sections. huge bss and thread bss.
31 # Make sure they end up in the appropriate location. We also have to set
32 # __TLS_SIZE to the size of the thread bss section.
33 OTHER_BSS_SECTIONS="
34 .hbss ${RELOCATING-0} : { *(.hbss) }
35 .tbss ${RELOCATING-0} : { *(.tbss) }
37 #OTHER_BSS_END_SYMBOLS='PROVIDE (__TLS_SIZE = SIZEOF (.tbss));'
38 OTHER_BSS_END_SYMBOLS='
39 PROVIDE (__TLS_SIZE = 0);
40 PROVIDE (__TLS_INIT_SIZE = 0);
41 PROVIDE (__TLS_INIT_START = 0);
42 PROVIDE (__TLS_INIT_A = 0);
43 PROVIDE (__TLS_PREALLOC_DTV_A = 0);'
45 # HPs use .dlt where systems use .got. Sigh.
46 OTHER_GOT_RELOC_SECTIONS="
47 .rela.dlt ${RELOCATING-0} : { *(.rela.dlt) }
48 .rela.opd ${RELOCATING-0} : { *(.rela.opd) }"
50 # We're not actually providing a symbol anymore (due to the inability to be
51 # safe in regards to shared libraries). So we just allocate the hunk of space
52 # unconditionally, but do not mess around with the symbol table.
53 DATA_START_SYMBOLS='. += 16;'
55 DATA_PLT=
56 PLT_BEFORE_GOT=
58 # .dynamic should be at the start of the .text segment.
59 TEXT_DYNAMIC=