]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/testsuite/ld-powerpc/aix-glink-2c.s
Imported binutils-2.20
[msp430-binutils.git] / ld / testsuite / ld-powerpc / aix-glink-2c.s
diff --git a/ld/testsuite/ld-powerpc/aix-glink-2c.s b/ld/testsuite/ld-powerpc/aix-glink-2c.s
new file mode 100644 (file)
index 0000000..7dd6dad
--- /dev/null
@@ -0,0 +1,33 @@
+       .toc
+
+       .macro  defabs,type,name,value
+       \type   \name
+       \name   = \value
+       .endm
+
+       .macro  deffun,type,name
+       \type   \name
+       .csect  \name\()[DS]
+\name\():
+       .long   \name\()[PR],TOC[TC0],0
+
+       .globl  .\name
+       .csect  .\name\()[PR]
+.\name\():
+       nop
+       .endm
+
+       .macro  defdata,type,name,contents
+       \type   \name
+       .csect  \name\()[RW]
+\name\():
+       .long   \contents
+       .endm
+
+       defabs  .globl,a1,0xf400
+       deffun  .globl,a2
+       defdata .globl,a3,0x4400
+
+       defabs  .globl,c1,0xf500
+       deffun  .globl,c2
+       defdata .globl,c3,0x5500