binutils-gdb/ld/scripttempl
John David Anglin 58411086ac hppa64: Initial relro support for Linux
This also fixes the alignment of the data segment on Linux target.
It must be page aligned to avoid inequivalent aliases.

2026-04-04  John David Anglin  <danglin@gcc.gnu.org>

	PR ld/12376

bfd/ChangeLog:

	* elf64-hppa.c (elf_backend_modify_segment_map): Don't
	use HP-UX specific routine on Linux.
	(elf_backend_want_dynrelro): Define to 1 on Linux.

ld/ChangeLog:

	* emulparams/hppa64linux.sh (COMMONPAGESIZE): Define.
	(DATA_SEGMENT_ALIGN, DATA_SEGMENT_END,
	DATA_SEGMENT_RELRO_END): Define if $LD_FLAG != "N".
	(DATA_SECTION_ALIGNMENT): Define.
	* scripttempl/elf64hppa.sc: Revise handling of data
	segment.
	* testsuite/ld-elf/orphan-region.d: Remove xfail on
	Linux.
2026-04-04 14:47:44 -04:00
..
aix.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
alpha.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
alphavms.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
aout.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
arclinux.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
avr.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
crisaout.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
dlx.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
DWARF.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elf.sc elf/x86: Place code after read-only data for --rosegment 2026-03-30 11:46:35 -07:00
elf32cr16.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elf32crx.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elf32msp430.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elf64bpf.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elf64hppa.sc hppa64: Initial relro support for Linux 2026-04-04 14:47:44 -04:00
elfarc.sc Revert "arc: Add new linker emulation and scripts for ARCv3 ISA." 2023-09-25 17:02:55 +03:00
elfarcv2.sc arc: Update elfarcv2 script template 2023-08-31 08:13:53 +03:00
elfd10v.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elfd30v.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elfm9s12z.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elfm68hc11.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elfm68hc12.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elfmicroblaze.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elfxgate.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
elfxtensa.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
epiphany_4x4.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
ft32.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
hppaelf.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
i386beos.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
i386go32.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
i386msdos.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
ia64vms.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
ip2k.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
iq2000.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
mcorepe.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
mep.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
mips.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
misc-sections.sc ld: fold .note.GNU-stack during relocatable linking 2026-02-06 08:52:02 +01:00
mmo.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
moxie.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
nds32elf.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
pdp11.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
pe.sc PE-COFF: Fix link failure of C++ code with debug info after partial linking 2026-03-30 19:12:46 +02:00
pep.sc PE-COFF: Fix link failure of C++ code with debug info after partial linking 2026-03-30 19:12:46 +02:00
pj.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
pru.sc ld: pru: Place exception-handling sections correctly 2023-05-04 12:41:55 +01:00
README Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
sh.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
tic4xcoff.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
tic30coff.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
tic54xcoff.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
v850.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
v850_rh850.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
vanilla.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
visium.sc ld/Visium: use misc-sections.sc 2026-02-06 08:51:04 +01:00
xstormy16.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
z80.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
z8000.sc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

The files in this directory are linker script templates.
genscripts.sh sets some shell variables, then sources
EMULATION.sc, to generate EMULATION.{x,xr,xu,xn,xbn} -- the script
files for default, -r, -Ur, -n, -N.

Copyright (C) 2012-2026 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.