diff options
author | Nick Clifton <nickc@redhat.com> | 2024-06-13 15:10:15 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2024-06-13 15:10:15 +0100 |
commit | e8e10743f7b207b21a1efb0cc9e42487080db013 (patch) | |
tree | daeed5b3fb3bdadce5bc0b6297cca0c96aee37a7 /ld/testsuite/ld-elf/pr30907-1.d | |
parent | 888ff82e77d9ab8f04893a68cd6b4f518d6b50d9 (diff) | |
download | fsf-binutils-gdb-e8e10743f7b207b21a1efb0cc9e42487080db013.zip fsf-binutils-gdb-e8e10743f7b207b21a1efb0cc9e42487080db013.tar.gz fsf-binutils-gdb-e8e10743f7b207b21a1efb0cc9e42487080db013.tar.bz2 |
Add --rosegment option to BFD linker to stop the '-z separate-code' from generating two read-only segments.
PR 30907
Diffstat (limited to 'ld/testsuite/ld-elf/pr30907-1.d')
-rw-r--r-- | ld/testsuite/ld-elf/pr30907-1.d | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr30907-1.d b/ld/testsuite/ld-elf/pr30907-1.d new file mode 100644 index 0000000..ee72bf8 --- /dev/null +++ b/ld/testsuite/ld-elf/pr30907-1.d @@ -0,0 +1,14 @@ +#name: --rosegment (pr30907-1) (does not have two read-only segments) +#source: pr22393-1.s +#ld: -shared -z separate-code -z relro --rosegment +#readelf: -l --wide +#target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: ![check_shared_lib_support] +#xfail: ![check_relro_support] + +#failif +#... +[ ]+LOAD[ ]+0x[0-9a-f x]+R[ ]+0x.* +#... +[ ]+LOAD[ ]+0x[0-9a-f x]+R[ ]+0x.* +#... |