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.
This commit is contained in:
parent
46675b6b81
commit
0a06ea7a76
2 changed files with 18 additions and 0 deletions
14
ld/testsuite/ld-elf/nosectionheader-1.d
Normal file
14
ld/testsuite/ld-elf/nosectionheader-1.d
Normal file
|
@ -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.
|
4
ld/testsuite/ld-elf/nosectionheader-2.d
Normal file
4
ld/testsuite/ld-elf/nosectionheader-2.d
Normal file
|
@ -0,0 +1,4 @@
|
|||
#source: start.s
|
||||
#ld: -r -z nosectionheader
|
||||
#error: -r and -z nosectionheader may not be used together
|
||||
#xfail: [uses_genelf]
|
Loading…
Add table
Reference in a new issue