mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
d346bb277c
Verify that -z separate-code works and -z noseparate-code doesn't disable -z relro. PR ld/22393 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code. * testsuite/ld-elf/pr22393-1.s: New file. * testsuite/ld-elf/pr22393-1a.d: Likewise. * testsuite/ld-elf/pr22393-1b.d: Likewise. * testsuite/ld-elf/pr22393-1c.d: Likewise. * testsuite/ld-elf/pr22393-1d.d: Likewise. * testsuite/ld-elf/pr22393-1e.d: Likewise. * testsuite/ld-elf/pr22393-1f.d: Likewise. * testsuite/ld-elf/pr22393-2a.c: Likewise. * testsuite/ld-elf/pr22393-2a.rd: Likewise. * testsuite/ld-elf/pr22393-2b.c: Likewise. * testsuite/ld-elf/pr22393-2b.rd: Likewise. * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
22 lines
330 B
ArmAsm
22 lines
330 B
ArmAsm
.section .rodata,"a",%progbits
|
|
.globl fx1
|
|
.type fx1, %object
|
|
fx1:
|
|
.zero 20
|
|
.section .data.rel.ro,"aw",%progbits
|
|
.globl px1
|
|
.type px1, %object
|
|
px1:
|
|
.dc.a fx1
|
|
|
|
.text
|
|
.global start /* Used by SH targets. */
|
|
start:
|
|
.global _start
|
|
_start:
|
|
.global __start
|
|
__start:
|
|
.global main /* Used by HPPA targets. */
|
|
main:
|
|
.dc.a 0
|