diff options
author | Alan Modra <amodra@gmail.com> | 2007-03-27 08:34:53 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-03-27 08:34:53 +0000 |
commit | f24f8f707cfb237a3522ab51699662954ed9d1b5 (patch) | |
tree | fead916733dd2c9e18d331276a0f986db87c6512 /gas | |
parent | 3f9ce309b7a1423e97f33153a2ccb3862040267a (diff) | |
download | gdb-f24f8f707cfb237a3522ab51699662954ed9d1b5.zip gdb-f24f8f707cfb237a3522ab51699662954ed9d1b5.tar.gz gdb-f24f8f707cfb237a3522ab51699662954ed9d1b5.tar.bz2 |
New test
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/reloc.d | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/reloc.s | 13 |
3 files changed, 30 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 21e7d54..89d04fe 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-03-27 Alan Modra <amodra@bigpond.net.au> + + * gas/ppc/reloc.s: New. + * gas/ppc/reloc.d: New. + 2007-03-26 Julian Brown <julian@codesourcery.com> * gas/arm/neon-const.s: Use FP syntax for 0/-0. diff --git a/gas/testsuite/gas/ppc/reloc.d b/gas/testsuite/gas/ppc/reloc.d new file mode 100644 index 0000000..006604b --- /dev/null +++ b/gas/testsuite/gas/ppc/reloc.d @@ -0,0 +1,12 @@ +#readelf: -r --wide +#name: reloc + +Relocation section '\.rela\.data' at .* contains 2 entries: + Offset Info Type Sym\. Value Symbol's Name \+ Addend +0+08 .* R_PPC_ADDR32 .* y \+ f+fc +0+0c .* R_PPC_ADDR32 .* y \+ 0 + +Relocation section '\.rela\.data\.other' at .* contains 2 entries: + Offset Info Type Sym\. Value Symbol's Name \+ Addend +0+00 .* R_PPC_ADDR32 .* x \+ 0 +0+04 .* R_PPC_ADDR32 .* x \+ f+fc diff --git a/gas/testsuite/gas/ppc/reloc.s b/gas/testsuite/gas/ppc/reloc.s new file mode 100644 index 0000000..19e4355 --- /dev/null +++ b/gas/testsuite/gas/ppc/reloc.s @@ -0,0 +1,13 @@ + .reloc x+8, R_PPC_ADDR32, y-4 + + .data +x: + .long 0,0,0,0 + + .section .data.other,"aw",@progbits +y: + .long 0,0,0,0 + + .reloc 0, R_PPC_ADDR32, x + .reloc y+4, R_PPC_ADDR32, x-4 + .reloc x+12, R_PPC_ADDR32, y |