binutils-gdb/ld/testsuite/ld-elf/pr30791a.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
368 B
ArmAsm

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