X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-mips-elf%2Fmips16-pic-2a.s;fp=ld%2Ftestsuite%2Fld-mips-elf%2Fmips16-pic-2a.s;h=08a1269c56af4061bafb48b3fa722b7cf31ad151;hp=0000000000000000000000000000000000000000;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/ld/testsuite/ld-mips-elf/mips16-pic-2a.s b/ld/testsuite/ld-mips-elf/mips16-pic-2a.s new file mode 100644 index 0000000..08a1269 --- /dev/null +++ b/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