From: Kaylee Blake Date: Thu, 5 Mar 2020 03:12:31 +0000 (+1030) Subject: ld: Add simple tests for -z nosectionheader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a06ea7a767579aade45ff779170f2fa81dfcb11;p=binutils-gdb.git ld: Add simple tests for -z nosectionheader 2020-06-06 Kaylee Blake H.J. Lu PR ld/25617 * testsuite/ld-elf/nosectionheader-1.d: New file. * testsuite/ld-elf/nosectionheader-2.d: Likewise. --- diff --git a/ld/testsuite/ld-elf/nosectionheader-1.d b/ld/testsuite/ld-elf/nosectionheader-1.d new file mode 100644 index 00000000000..cbaea669b9a --- /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 00000000000..38c344ad697 --- /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]