Add a sanity check of files include by .incbin.
authorNick Clifton <nickc@redhat.com>
Tue, 9 Feb 2021 14:22:23 +0000 (14:22 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 9 Feb 2021 14:22:23 +0000 (14:22 +0000)
commit284beb431f44cf0b4b1567ebf9dfe44a24ccfe2e
treea1dfa0a789a75941c4c37cde324e779b37b5828e
parent9b87f84a3513c852eca395e3aa47081ef2f12e60
Add a sanity check of files include by .incbin.

PR 27381
* read.c (s_incbin): Check that the file to be included is a
regular, non-directory file.
* testsuite/gas/all/pr27381.s: New test source file.
* testsuite/gas/all/pr27381.d: New test control file.
* testsuite/gas/all/pr27381.err: Expected error output for the new test.
* testsuite/gas/all/gas.exp: Run the new test.
gas/ChangeLog
gas/read.c
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/all/pr27381.d [new file with mode: 0644]
gas/testsuite/gas/all/pr27381.err [new file with mode: 0644]
gas/testsuite/gas/all/pr27381.s [new file with mode: 0644]