X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=gas%2Ftestsuite%2Fgas%2Fcr16%2Fpic2.s;fp=gas%2Ftestsuite%2Fgas%2Fcr16%2Fpic2.s;h=45b64034ca5d324df6503ce3923e46a1b2ac529d;hp=0000000000000000000000000000000000000000;hb=88750007d7869f178f0ba528f41efd3b74c424cf;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/gas/testsuite/gas/cr16/pic2.s b/gas/testsuite/gas/cr16/pic2.s new file mode 100644 index 0000000..45b6403 --- /dev/null +++ b/gas/testsuite/gas/cr16/pic2.s @@ -0,0 +1,23 @@ + .section .text + .globl _text_pointer + .section .data.rel + .type _text_pointer, @object +_text_pointer: + .long _text_address@c + .section .text + .globl _main + .type _main, @function +_main: + ###################### + # Data symbol with GOT + ###################### + loadd _text_pointer@GOT(r12), (r1,r0) + ###################### + # Code symbol with cGOT + ###################### + loadd _text_address_1@cGOT(r12), (r1,r0) + + .globl _text_address_1 + .type _text_address_1, @function +_text_address_1: + jump (ra)