binutils-gdb/ld/scripttempl
Georg-Johann Lay d51cd0f64c PR31177: Let region text start at __TEXT_REGION_ORIGIN___
The start of MEMORY region text currently starts hard-coded at 0.

The linker can produce more exact diagnostics when it knows the exact placements of the memory regions.

For some old devices, program memory starts at 0x8000, so allow to specify program memory start at __TEXT_REGION_ORIGIN__ similar to how the data region is described.

If ok, please apply to master.
This one is also fine to back-port.

Johann

--

AVR: Use __TEXT_REGION_ORIGIN__ as start for MEMORY region text.

ld/
	PR 31177
	* scripttempl/avr.sc (__TEXT_REGION_ORIGIN__): New symbol.
	(MEMORY): Use as start address for the text region.
2023-12-18 09:50:51 +00:00
..
aix.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
alpha.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
alphavms.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
aout.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
arclinux.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
avr.sc PR31177: Let region text start at __TEXT_REGION_ORIGIN___ 2023-12-18 09:50:51 +00:00
crisaout.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
dlx.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
DWARF.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf32cr16.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
elf32crx.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
elf32msp430.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
elf64bpf.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
elf64hppa.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
elf_chaos.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
elf.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01: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 Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
elfd30v.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
elfm9s12z.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
elfm68hc11.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
elfm68hc12.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
elfmicroblaze.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
elfxgate.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
elfxtensa.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
epiphany_4x4.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
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 2023-01-01 21:50:11 +10:30
i386beos.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
i386go32.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
i386msdos.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ia64vms.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
ip2k.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
iq2000.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
mcorepe.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mep.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
mips.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mipsbsd.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
misc-sections.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
mmo.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
moxie.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
nds32elf.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
pdp11.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pe.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pep.sc Avoid unaligned pointer reads in PEP .idata section 2023-01-04 03:47:09 +00:00
pj.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +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 2023-01-01 21:50:11 +10:30
sh.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
tic4xcoff.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
tic30coff.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
tic54xcoff.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
v850_rh850.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
v850.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
vanilla.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
visium.sc Re: Add --enable-linker-verssion 2023-03-16 17:30:28 +10:30
xstormy16.sc Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
z80.sc Another source_sh 2023-03-17 21:10:05 +10:30
z8000.sc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +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-2023 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.