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-mips-elf/mips16-pic-2a.s | |
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-mips-elf/mips16-pic-2a.s')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-mips-elf/mips16-pic-2a.s | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-mips-elf/mips16-pic-2a.s b/binutils-2.21/ld/testsuite/ld-mips-elf/mips16-pic-2a.s new file mode 100644 index 0000000..08a1269 --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-mips-elf/mips16-pic-2a.s @@ -0,0 +1,63 @@ + .abicalls + .set noreorder + .include "mips16-pic-1.inc" + + # Test local stubs that are only used by MIPS16 PIC calls in this file. + lstub unused1,shared + + # Test local stubs that aren't called at all. + lstub unused2,shared + + # Test hidden stubs that are called by MIPS16 PIC calls in this file. + hstub unused3,shared + + # Test hidden stubs that are called by MIPS16 PIC calls in another file. + hstub unused4,shared + + # Test hidden stubs that aren't called at all. + hstub unused5,shared + + + # Test local stubs that are referenced by absolute relocations + # in this file. + lstub used1,shared + + # Test hidden stubs that are referenced by absolute relocations + # in this file. + hstub used2,shared + + # Test hidden stubs that are referenced by absolute relocations + # in another file. + hstub used3,shared + + # Test global stubs that are referenced by absolute relocations + # in this file. + gstub used4,shared + + # Test global stubs that are referenced by absolute relocations + # in another file. + gstub used5,shared + + # Test global stubs that are called by MIPS16 PIC calls in this file. + gstub used6,shared + + # Test global stubs that are called by MIPS16 PIC calls in another file. + gstub used7,shared + + # Test global stubs that aren't referenced at all. + gstub used8,shared + + .set mips16 + .ent foo +foo: + pic_prologue mips16 + pic_call unused1,mips16 + pic_call unused3,mips16 + pic_call used6,mips16 + pic_epilogue + .end foo + + .data + .word used1 + .word used2 + .word used4 |