diff options
author | Alan Modra <amodra@gmail.com> | 2020-02-07 00:42:45 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-02-10 15:28:23 +1030 |
commit | 33176d912add7680277ad5e18af0e6303d9a7af8 (patch) | |
tree | 1b621ee091460c29d5c0989cd621ad1dc658e4b6 /gas/testsuite | |
parent | 821948744f578be38aade35ae6db7deecb4ee7be (diff) | |
download | gdb-33176d912add7680277ad5e18af0e6303d9a7af8.zip gdb-33176d912add7680277ad5e18af0e6303d9a7af8.tar.gz gdb-33176d912add7680277ad5e18af0e6303d9a7af8.tar.bz2 |
gas: error for section type, attr, or entsize change
* config/obj-elf.c (obj_elf_change_section): Error for section
type, attr or entsize changes in assembly.
* testsuite/gas/elf/elf.exp: Pass -Z to gas for section5 test.
* testsuite/gas/elf/section5.l: Update.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/elf/elf.exp | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/section5.l | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp index 0f9b267..b0522af 100644 --- a/gas/testsuite/gas/elf/elf.exp +++ b/gas/testsuite/gas/elf/elf.exp @@ -202,7 +202,7 @@ if { [is_elf_format] } then { # new sections created without atrributes. # The RX port does not complain about changing the attributes of the # .data and .bss sections since it does not use those names. - run_elf_list_test "section5" "" "-al" "-SW" "| grep \" \\\\.test\\\[0-9\\\]\"" + run_elf_list_test "section5" "" "-al -Z" "-SW" "| grep \" \\\\.test\\\[0-9\\\]\"" } run_dump_test "struct" if { ![istarget "alpha*-*-*"] } then { diff --git a/gas/testsuite/gas/elf/section5.l b/gas/testsuite/gas/elf/section5.l index 31b87e60..00a1456 100644 --- a/gas/testsuite/gas/elf/section5.l +++ b/gas/testsuite/gas/elf/section5.l @@ -1,12 +1,13 @@ .*: Assembler messages: -.*:7: Warning: .* -.*:7: Warning: .* -.*:10: Warning: .* -.*:16: Warning: .* +.*:7: Error: .* +.*:7: Error: .* +.*:10: Error: .* +.*:16: Error: .* .*:18: Warning: .* .*:20: Warning: .* .*:22: Warning: .* .*:24: Warning: .* +4 errors, 4 warnings, generating bad object file .*GAS.* |