PR ld/13812

* scripttempl/avr.sc: Place trampolines before .progmem section.
This commit is contained in:
Nick Clifton 2013-03-27 13:21:38 +00:00
parent 840a9a1f86
commit 861319c9dd
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-03-27 Georg-Johann Lay <gjl@gcc.gnu.org>
PR ld/13812
* scripttempl/avr.sc: Place trampolines before .progmem section.
2013-03-25 Kai Tietz <ktietz@redhat.com>
* ld.texinfo (--disable-runtime-pseudo-reloc): Adjust default.

View File

@ -82,15 +82,18 @@ SECTIONS
/* For data that needs to reside in the lower 64k of progmem. */
*(.progmem.gcc*)
*(.progmem*)
${RELOCATING+. = ALIGN(2);}
/* PR 13812: Placing the trampolines here gives a better chance
that they will be in range of the code that uses them. */
${RELOCATING+. = ALIGN(2);}
${CONSTRUCTING+ __trampolines_start = . ; }
/* The jump trampolines for the 16-bit limited relocs will reside here. */
*(.trampolines)
*(.trampolines*)
${CONSTRUCTING+ __trampolines_end = . ; }
*(.progmem*)
/* For future tablejump instruction arrays for 3 byte pc devices.
We don't relax jump/call instructions within these sections. */
*(.jumptables)