1SCRIPT_NAME=elf64hppa 2ELFSIZE=64 3OUTPUT_FORMAT="elf64-hppa" 4NO_REL_RELOCS=yes 5TEXT_START_ADDR=0x4000000000001000 6DATA_ADDR=0x8000000000001000 7TARGET_PAGE_SIZE=4096 8MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" 9LIB_PATH="=/usr/lib/pa20_64:=/opt/langtools/lib/pa20_64" 10 11# The HP dynamic linker actually requires you set the start of text and 12# data to some reasonable value. Of course nobody knows what reasoanble 13# really is, so we just use the same values that HP's linker uses. 14SHLIB_TEXT_START_ADDR=0x4000000000001000 15SHLIB_DATA_ADDR=0x8000000000001000 16 17ARCH=hppa 18MACHINE=hppa2.0w 19ENTRY="main" 20TEMPLATE_NAME=elf32 21GENERATE_SHLIB_SCRIPT=yes 22 23# We really want multiple .stub sections, one for each input .text section, 24# but for now this is good enough. 25OTHER_READONLY_SECTIONS=" 26 .PARISC.unwind ${RELOCATING-0} : { *(.PARISC.unwind) }" 27 28# The PA64 ELF port treats .plt sections differently than most. We also have 29# to create a .opd section. What most systems call the .got, we call the .dlt 30OTHER_READWRITE_SECTIONS=" 31 .PARISC.pfa_count ${RELOCATING-0} : { *(.PARISC.pfa_count) } 32 .PARISC.global ${RELOCATING-0} : { *(.PARISC.global) } 33 .opd ${RELOCATING-0} : { *(.opd) } 34 ${RELOCATING+PROVIDE (__gp = .);} 35 .plt ${RELOCATING-0} : { *(.plt) } 36 .dlt ${RELOCATING-0} : { *(.dlt) }" 37 38# The PA64 ELF port has an additional huge bss section. 39OTHER_BSS_SECTIONS=" 40 .PARISC.ansi.common ${RELOCATING-0} : { *(.PARISC.ansi.common) } 41 .PARISC.huge.common ${RELOCATING-0} : { *(.PARISC.huge.common) } 42 .hbss ${RELOCATING-0} : { *(.hbss) } 43 .tbss ${RELOCATING-0} : { *(.tbss) }" 44 45#OTHER_SYMBOLS='PROVIDE (__TLS_SIZE = SIZEOF (.tbss));' 46OTHER_SYMBOLS=' 47 PROVIDE (__TLS_SIZE = 0); 48 PROVIDE (__TLS_INIT_SIZE = 0); 49 PROVIDE (__TLS_INIT_START = 0); 50 PROVIDE (__TLS_INIT_A = 0); 51 PROVIDE (__TLS_PREALLOC_DTV_A = 0);' 52 53# HPs use .dlt where systems use .got. Sigh. 54OTHER_GOT_RELOC_SECTIONS=" 55 .rela.dlt ${RELOCATING-0} : { *(.rela.dlt) } 56 .rela.opd ${RELOCATING-0} : { *(.rela.opd) }" 57 58# We're not actually providing a symbol anymore (due to the inability to be 59# safe in regards to shared libraries). So we just allocate the hunk of space 60# unconditionally, but do not mess around with the symbol table. 61DATA_START_SYMBOLS='. += 16;' 62 63DATA_PLT= 64PLT_BEFORE_GOT= 65 66# .dynamic should be at the start of the .text segment. 67TEXT_DYNAMIC= 68 69# The linker is required to define these two symbols. 70EXECUTABLE_SYMBOLS='PROVIDE (__SYSTEM_ID = 0x214); PROVIDE (_FPU_STATUS = 0x0);' 71# The PA64 ELF port needs two additional initializer sections and also wants 72# a start/end symbol pair for the .init and .fini sections. 73INIT_START='KEEP (*(.HP.init)); PROVIDE (__preinit_start = .); KEEP (*(.preinit)); PROVIDE (__preinit_end = .); PROVIDE (__init_start = .);' 74INIT_END='PROVIDE (__init_end = .);' 75FINI_START='PROVIDE (__fini_start = .);' 76FINI_END='PROVIDE (__fini_end = .);' 77