mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
9865bd0da6
When we check consistency for merge ELF sections, we should not only check EI_CLASS, but also compatible e_machine. bfd/ PR ld/19013 * elflink.c (_bfd_elf_merge_sections): Only merge input bfds that have the compatible ELF machine code with the output bfd. ld/testsuite/ PR ld/19013 * ld-x86-64/pr19013-nacl.d: New file. * ld-x86-64/pr19013-x32.d: Likewise. * ld-x86-64/pr19013.d: Likewise. * ld-x86-64/pr19013.s: Likewise. * ld-x86-64/x86-64.exp: Run PR ld/19013 tests.
6 lines
116 B
ArmAsm
6 lines
116 B
ArmAsm
.section .rodata.str1.1,"aMS",@progbits,1
|
|
.globl _start
|
|
_start:
|
|
.byte 0x0, 0x0, 0x2, 0x3, 0x0
|
|
.string "ABCD"
|