diff options
author | Nick Clifton <nickc@redhat.com> | 2013-03-27 13:21:38 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-03-27 13:21:38 +0000 |
commit | 18ab9dcb730d7310000f42feb8853d973ee46312 (patch) | |
tree | 62d65122cb22d43553bcc225347ae204d01351a9 /ld/scripttempl/avr.sc | |
parent | 8a54e66d0f339fe82666023ae527f811eb6e2a60 (diff) | |
download | binutils-redhat-18ab9dcb730d7310000f42feb8853d973ee46312.tar.gz |
PR ld/13812
* scripttempl/avr.sc: Place trampolines before .progmem section.
Diffstat (limited to 'ld/scripttempl/avr.sc')
-rw-r--r-- | ld/scripttempl/avr.sc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ld/scripttempl/avr.sc b/ld/scripttempl/avr.sc index 10ac27f71b..bdbec6ecc9 100644 --- a/ld/scripttempl/avr.sc +++ b/ld/scripttempl/avr.sc @@ -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) |