binutils-gdb/ld/testsuite/ld-elf/pr30791c.s
H.J. Lu 68a2d9bf87 elf: Don't merge sections with different SHF_LINK_ORDER
For relocatable link, don't merge 2 SHF_LINK_ORDER sections if output
sections of their linked to sections are different.

	* ldelf.c (elf_orphan_compatible): Don't merge sections with
	different SHF_LINK_ORDER.
	* testsuite/ld-elf/pr30791a.d: New file.
	* testsuite/ld-elf/pr30791a.s: Likewise.
	* testsuite/ld-elf/pr30791b.d: Likewise.
	* testsuite/ld-elf/pr30791b.s: Likewise.
	* testsuite/ld-elf/pr30791c.s: Likewise.
	* testsuite/ld-elf/pr30791d.s: Likewise.
2023-08-30 17:17:31 -07:00

21 lines
294 B
ArmAsm

.text
.globl a
.type a, %function
a:
.LFB0:
.section __patchable_function_entries,"awo",%progbits,.LPFE0
.dc.a .LPFE0
.text
.LPFE0:
.byte 0
.text
.globl b
.type b, %function
b:
.LFB1:
.section __patchable_function_entries,"awo",%progbits,.LPFE1
.dc.a .LPFE1
.text
.LPFE1:
.byte 0