diff options
author | Kaylee Blake <klkblake@gmail.com> | 2020-03-05 13:42:31 +1030 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2023-06-29 10:29:47 -0700 |
commit | 0a06ea7a767579aade45ff779170f2fa81dfcb11 (patch) | |
tree | efb7294f1d4997f7c6a1c613783fcda6290df9de /ld | |
parent | 46675b6b8160e97485583522852ad86507bd9072 (diff) | |
download | binutils-0a06ea7a767579aade45ff779170f2fa81dfcb11.zip binutils-0a06ea7a767579aade45ff779170f2fa81dfcb11.tar.gz binutils-0a06ea7a767579aade45ff779170f2fa81dfcb11.tar.bz2 |
ld: Add simple tests for -z nosectionheader
2020-06-06 Kaylee Blake <klkblake@gmail.com>
H.J. Lu <hongjiu.lu@intel.com>
PR ld/25617
* testsuite/ld-elf/nosectionheader-1.d: New file.
* testsuite/ld-elf/nosectionheader-2.d: Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-elf/nosectionheader-1.d | 14 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/nosectionheader-2.d | 4 |
2 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/nosectionheader-1.d b/ld/testsuite/ld-elf/nosectionheader-1.d new file mode 100644 index 0000000..cbaea66 --- /dev/null +++ b/ld/testsuite/ld-elf/nosectionheader-1.d @@ -0,0 +1,14 @@ +#source: start.s +#ld: -z nosectionheader +#readelf: -h -S +#xfail: [uses_genelf] +# These targets don't support -z. + +#... + Start of section headers:[ \t]+0 \(bytes into file\) +#... + Size of section headers:[ \t]+0 \(bytes\) + Number of section headers:[ \t]+0 + Section header string table index:[ \t]+0 + +There are no sections in this file. diff --git a/ld/testsuite/ld-elf/nosectionheader-2.d b/ld/testsuite/ld-elf/nosectionheader-2.d new file mode 100644 index 0000000..38c344a --- /dev/null +++ b/ld/testsuite/ld-elf/nosectionheader-2.d @@ -0,0 +1,4 @@ +#source: start.s +#ld: -r -z nosectionheader +#error: -r and -z nosectionheader may not be used together +#xfail: [uses_genelf] |