mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
68a2d9bf87
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.
21 lines
368 B
ArmAsm
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
|