binutils-gdb/ld/testsuite/ld-powerpc/vxworks-relax-2.rd
Alan Modra 53df40a43c Sort relocs output by ld -r
bfd/
	PR 17666
	* elflink.c: Include bfd_stdint.h.
	(cmp_ext32l_r_offset, cmp_ext32b_r_offset,
	cmp_ext64l_r_offset, cmp_ext64b_r_offset): New functions.
	(elf_link_adjust_relocs): Sort relocs.  Free reloc hashes after
	sorting invalidates.
ld/testsuite/
	* ld-powerpc/vxworks-relax.rd: Update for reloc sorting.
	* ld-powerpc/vxworks-relax-2.rd: Likewise.
	* ld-sh/sh64/reldl32.rd: Likewise.
	* ld-sh/sh64/reldl64.rd: Likewise.
2014-12-04 17:37:58 +10:30

12 lines
553 B
R

Relocation section '.rela.text' at offset 0x[0-9a-f]+ contains 8 entries:
Offset +Info +Type +Sym.Value +Sym. Name \+ Addend
0+6 +[0-9a-f]+ R_PPC_ADDR16_HA +0+ +.text \+ 4000034
0+a +[0-9a-f]+ R_PPC_ADDR16_LO +0+ +.text \+ 4000034
0+16 +[0-9a-f]+ R_PPC_ADDR16_HA +0+ +.text \+ 4000034
0+1a +[0-9a-f]+ R_PPC_ADDR16_LO +0+ +.text \+ 4000034
0+26 +[0-9a-f]+ R_PPC_ADDR16_HA +0+ +undefined \+ 0
0+2a +[0-9a-f]+ R_PPC_ADDR16_LO +0+ +undefined \+ 0
0+400003e +[0-9a-f]+ R_PPC_ADDR16_HA +0+ +_start \+ 0
0+4000042 +[0-9a-f]+ R_PPC_ADDR16_LO +0+ +_start \+ 0