Add support to GDB for the Renesas rl78 architecture.
[external/binutils.git] / ld / emulparams / hppalinux.sh
index e82315f..d7d87e2 100644 (file)
@@ -1,10 +1,25 @@
+# If you change this file, please also look at files which source this one:
+# hppanbsd.sh
+
 SCRIPT_NAME=elf
-OUTPUT_FORMAT="elf32-hppa"
-TEXT_START_ADDR=0x1000
-TARGET_PAGE_SIZE=0x1000
-MAXPAGESIZE=0x1000
+ELFSIZE=32
+OUTPUT_FORMAT="elf32-hppa-linux"
+NO_REL_RELOCS=yes
+TEXT_START_ADDR=0x10000
+TARGET_PAGE_SIZE=0x10000
+MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+DATA_ADDR="ALIGN(${MAXPAGESIZE})"
+SHLIB_DATA_ADDR="ALIGN(${MAXPAGESIZE})"
 ARCH=hppa
+MACHINE=hppa1.1    # We use 1.1 specific features.
 NOP=0x08000240
 START="_start"
-TEMPLATE_NAME=hppaelf
-DATA_START_SYMBOLS='$global$ = .;'
+OTHER_READONLY_SECTIONS="
+  .PARISC.unwind ${RELOCATING-0} : { *(.PARISC.unwind) }"
+DATA_START_SYMBOLS='PROVIDE ($global$ = .);'
+DATA_PLT=
+PLT_BEFORE_GOT=
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+TEMPLATE_NAME=elf32
+EXTRA_EM_FILE=hppaelf