diff options
author | Jing Yu <jingyu@google.com> | 2011-12-20 10:27:58 -0800 |
---|---|---|
committer | Jing Yu <jingyu@google.com> | 2011-12-20 10:27:58 -0800 |
commit | cf3cdbf8b3cda61a619299e7966a83df66244036 (patch) | |
tree | 201e2bcfc955f16802d3257112d29736cb3a3ce8 /binutils-2.21/ld/testsuite/ld-sh/shared-1.d | |
parent | e4df3e0a5bb640ccfa2f30ee67fe9b3146b152d6 (diff) | |
download | toolchain_binutils-cf3cdbf8b3cda61a619299e7966a83df66244036.zip toolchain_binutils-cf3cdbf8b3cda61a619299e7966a83df66244036.tar.gz toolchain_binutils-cf3cdbf8b3cda61a619299e7966a83df66244036.tar.bz2 |
Add binutils-2.21.
Use --enable-gold=default for dual linker support.
Change-Id: Id1a744c7db58a0b5e7a3be174cdfa875f2f86e49
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-sh/shared-1.d')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-sh/shared-1.d | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-sh/shared-1.d b/binutils-2.21/ld/testsuite/ld-sh/shared-1.d new file mode 100644 index 0000000..940195d --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-sh/shared-1.d @@ -0,0 +1,23 @@ +#source: ldr1.s +#source: ldr2.s +#as: -little +#ld: -shared -EL -z nocombreloc +#readelf: -r -x4 -x5 +#target: sh*-*-elf + +# Make sure relocations against global and local symbols with relative and +# absolute 32-bit relocs don't come out wrong after ld -r. Remember that +# SH uses partial_inplace (sort-of REL within RELA) with related confusion +# about how, when, where and which addends to use. A DSO must have the +# same value in the addend as in the data, so either can be used. + +Relocation section '\.rela\.text' at offset 0x[0-9a-f]+ contains 1 entries: +.* +0000019c +[0-9a-f]+ R_SH_RELATIVE +000001a0 + +Hex dump of section '\.rela\.text': + 0x00000188 9c010000 a5000000 a0010000 .* + +Hex dump of section '\.text': +.* + 0x00000194 09000900 09000900 a0010000 .* |