binutils-gdb/ld/testsuite/ld-arm/ifunc-4.rd
Christophe Lyon 2b70b1b838 Fix PR18841 ifunc relocation ordering
In order to get the ifunc relocs properly sorted the correct class
needs to be returned.  The code mimics what has been done for AArch64.

Fixes:
FAIL: Run pr18841 with libpr18841b.so
FAIL: Run pr18841 with libpr18841c.so
FAIL: Run pr18841 with libpr18841bn.so (-z now)
FAIL: Run pr18841 with libpr18841cn.so (-z now)

	bfd/
	PR ld/18841
	* elf32-arm.c (elf32_arm_reloc_type_class): Return
	reloc_class_ifunc for ifunc symbols.

	ld/testsuite/
	* ld-arm/ifunc-12.rd: Update relocations order.
	* ld-arm/ifunc-3.rd: Likewise.
	* ld-arm/ifunc-4.rd: Likewise.
2023-01-09 16:51:53 +01:00

75 lines
3.3 KiB
R

Relocation section '\.rel\.dyn' at offset 0x8000 contains 62 entries:
Offset Info Type Sym\.Value Sym\. Name
0001106c ......17 R_ARM_RELATIVE
00011070 ......17 R_ARM_RELATIVE
00010004 ......a0 R_ARM_IRELATIVE
0001000c ......a0 R_ARM_IRELATIVE
00010014 ......a0 R_ARM_IRELATIVE
0001001c ......a0 R_ARM_IRELATIVE
00010024 ......a0 R_ARM_IRELATIVE
0001002c ......a0 R_ARM_IRELATIVE
00010064 ......a0 R_ARM_IRELATIVE
0001006c ......a0 R_ARM_IRELATIVE
00010074 ......a0 R_ARM_IRELATIVE
0001007c ......a0 R_ARM_IRELATIVE
00010084 ......a0 R_ARM_IRELATIVE
0001008c ......a0 R_ARM_IRELATIVE
00011024 ......a0 R_ARM_IRELATIVE
00011028 ......a0 R_ARM_IRELATIVE
0001102c ......a0 R_ARM_IRELATIVE
00011030 ......a0 R_ARM_IRELATIVE
00011034 ......a0 R_ARM_IRELATIVE
00011038 ......a0 R_ARM_IRELATIVE
0001103c ......a0 R_ARM_IRELATIVE
00011040 ......a0 R_ARM_IRELATIVE
00011044 ......a0 R_ARM_IRELATIVE
00011048 ......a0 R_ARM_IRELATIVE
0001104c ......a0 R_ARM_IRELATIVE
00011050 ......a0 R_ARM_IRELATIVE
00011054 ......a0 R_ARM_IRELATIVE
00011058 ......a0 R_ARM_IRELATIVE
0001105c ......a0 R_ARM_IRELATIVE
00011060 ......a0 R_ARM_IRELATIVE
00011064 ......a0 R_ARM_IRELATIVE
00011068 ......a0 R_ARM_IRELATIVE
00010034 ......02 R_ARM_ABS32 aaf2\(\) aaf2
00010038 ......03 R_ARM_REL32 aaf2\(\) aaf2
00011088 ......15 R_ARM_GLOB_DAT aaf2\(\) aaf2
0001003c ......02 R_ARM_ABS32 atf2\(\) atf2
00010040 ......03 R_ARM_REL32 atf2\(\) atf2
00011074 ......15 R_ARM_GLOB_DAT atf2\(\) atf2
00010044 ......02 R_ARM_ABS32 abf2\(\) abf2
00010048 ......03 R_ARM_REL32 abf2\(\) abf2
000110a0 ......15 R_ARM_GLOB_DAT abf2\(\) abf2
0001004c ......02 R_ARM_ABS32 taf2\(\) taf2
00010050 ......03 R_ARM_REL32 taf2\(\) taf2
00011084 ......15 R_ARM_GLOB_DAT taf2\(\) taf2
00010054 ......02 R_ARM_ABS32 ttf2\(\) ttf2
00010058 ......03 R_ARM_REL32 ttf2\(\) ttf2
0001107c ......15 R_ARM_GLOB_DAT ttf2\(\) ttf2
0001005c ......02 R_ARM_ABS32 tbf2\(\) tbf2
00010060 ......03 R_ARM_REL32 tbf2\(\) tbf2
00011080 ......15 R_ARM_GLOB_DAT tbf2\(\) tbf2
00010094 ......02 R_ARM_ABS32 aaf4\(\) aaf4
00011078 ......15 R_ARM_GLOB_DAT aaf4\(\) aaf4
0001009c ......02 R_ARM_ABS32 atf4\(\) atf4
00011098 ......15 R_ARM_GLOB_DAT atf4\(\) atf4
000100a4 ......02 R_ARM_ABS32 abf4\(\) abf4
0001108c ......15 R_ARM_GLOB_DAT abf4\(\) abf4
000100ac ......02 R_ARM_ABS32 taf4\(\) taf4
0001109c ......15 R_ARM_GLOB_DAT taf4\(\) taf4
000100b4 ......02 R_ARM_ABS32 ttf4\(\) ttf4
00011094 ......15 R_ARM_GLOB_DAT ttf4\(\) ttf4
000100bc ......02 R_ARM_ABS32 tbf4\(\) tbf4
00011090 ......15 R_ARM_GLOB_DAT tbf4\(\) tbf4
Relocation section '\.rel\.plt' at offset 0x81f0 contains 6 entries:
Offset Info Type Sym\.Value Sym\. Name
0001100c ......16 R_ARM_JUMP_SLOT atf2\(\) atf2
00011010 ......16 R_ARM_JUMP_SLOT ttf2\(\) ttf2
00011014 ......16 R_ARM_JUMP_SLOT tbf2\(\) tbf2
00011018 ......16 R_ARM_JUMP_SLOT taf2\(\) taf2
0001101c ......16 R_ARM_JUMP_SLOT aaf2\(\) aaf2
00011020 ......16 R_ARM_JUMP_SLOT abf2\(\) abf2