diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-12-09 17:57:18 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2014-12-09 19:50:14 +0800 |
commit | 5e8c1cf25beccac1d22d10dc866912394f42771b (patch) | |
tree | ee16b70f804484dc8e434e647e699ab50da2620f /binutils-2.25/ld/testsuite/ld-nios2/relax_call26_boundary.s | |
parent | 8eebd7953384e6662ca926b003f2cdda8ccd3ee5 (diff) | |
download | toolchain_binutils-5e8c1cf25beccac1d22d10dc866912394f42771b.zip toolchain_binutils-5e8c1cf25beccac1d22d10dc866912394f42771b.tar.gz toolchain_binutils-5e8c1cf25beccac1d22d10dc866912394f42771b.tar.bz2 |
[2.25] sync to a30720e3e633f275250e26f85ccae5dbdddfb6c6
local patches will be re-applied later
commit a30720e3e633f275250e26f85ccae5dbdddfb6c6
Author: Alan Modra <amodra@gmail.com>
Date: Wed Nov 19 10:30:16 2014 +1030
daily update
Change-Id: Ieb2a3f4dd2ecb289ac5305ff08d428b2847494ab
Diffstat (limited to 'binutils-2.25/ld/testsuite/ld-nios2/relax_call26_boundary.s')
-rw-r--r-- | binutils-2.25/ld/testsuite/ld-nios2/relax_call26_boundary.s | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/binutils-2.25/ld/testsuite/ld-nios2/relax_call26_boundary.s b/binutils-2.25/ld/testsuite/ld-nios2/relax_call26_boundary.s new file mode 100644 index 0000000..ce79ebd --- /dev/null +++ b/binutils-2.25/ld/testsuite/ld-nios2/relax_call26_boundary.s @@ -0,0 +1,29 @@ +# Test for call26 relaxation via linker stubs. +# This .s file is used with several different linker scripts that vary the +# placement of the sections in the output. +# Section text0 is 32 bytes long and requires at least 2 linker stubs +# (12 bytes each) to reach the call destinations in text2. Another stub +# may be required to reach func0 if the section is laid out so that it crosses +# a 256MB memory segment boundary. + +.globl text0 +.section text0, "ax", @progbits + call func0 # in same section + call func2a # in distant section + nop + nop + nop + nop + jmpi func2b # in distant section + +func0: + ret + +.section text2, "ax", @progbits +func2a: + nop + nop + nop + ret +func2b: + nop |