mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-18 14:53:32 +08:00
fb9bbfd7f2
Add testcases to verify that all SHT_NOTE sections with the same section alignment are placed in a single PT_NOTE segment. PR ld/23658 * testsuite/ld-elf/pr23658-1.d: New file. * testsuite/ld-elf/pr23658-1a.s: Likewise. * testsuite/ld-elf/pr23658-1b.s: Likewise. * testsuite/ld-elf/pr23658-1c.s: Likewise. * testsuite/ld-elf/pr23658-1d.s: Likewise. * testsuite/ld-elf/pr23658-2.rd: Likewise. * testsuite/ld-elf/pr23658-3.d: Likewise. * testsuite/ld-elf/pr23658-3.s: Likewise. * testsuite/ld-elf/pr23658-3.t: Likewise. * testsuite/ld-elf/shared.exp: Run PR ld/23658 tests.
17 lines
305 B
ArmAsm
17 lines
305 B
ArmAsm
.section ".note.1", "a"
|
|
.p2align 3
|
|
.long .L1 - .L0 /* name length. */
|
|
.long .L3 - .L1 /* data length. */
|
|
.long 12345 /* note type. */
|
|
.L0:
|
|
.asciz "GNU" /* vendor name. */
|
|
.L1:
|
|
.p2align 3
|
|
.long 0 /* pr_type. */
|
|
.long .L5 - .L4 /* pr_datasz. */
|
|
.L4:
|
|
.zero 0x10
|
|
.L5:
|
|
.p2align 3
|
|
.L3:
|