binutils-gdb/ld/testsuite/ld-powerpc/tocopt3.s
Alan Modra 2843fdaab1 * ld-powerpc/tocopt2.s, * ld-powerpc/tocopt2.out,
* ld-powerpc/tocopt2.d: New test.
	* ld-powerpc/tocopt3.s, * ld-powerpc/tocopt3.d: New test.
	* ld-powerpc/powerpc.exp (ppc64elftests) Run them.
2011-07-11 12:03:55 +00:00

10 lines
102 B
ArmAsm

.section .toc,"aw"
0:
.quad x
.globl _start
.text
_start:
addis 9,2,0b@toc@ha
ld 9,0b@toc@l(9)