aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-08-31 04:42:51 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-08-31 04:43:06 -0700
commit5e8a54c6c4c753b6bbd447c74f5df8707bb0a06c (patch)
treea12fc2356a6f3cd68494b71781dae5b1dbe6988e /gas
parent2550e95256ed7bbb1a4579ec4bd379417ad59b23 (diff)
downloadgdb-5e8a54c6c4c753b6bbd447c74f5df8707bb0a06c.zip
gdb-5e8a54c6c4c753b6bbd447c74f5df8707bb0a06c.tar.gz
gdb-5e8a54c6c4c753b6bbd447c74f5df8707bb0a06c.tar.bz2
gas: Pass -mx86-used-note=no to assembler
Since x86 assembler may generate .note.gnu.property section, pass -mx86-used-note=no to assembler for section2 test on ELF/x86 targets to avoid .note.gnu.property section. * testsuite/gas/elf/elf.exp: Pass -mx86-used-note=no to assembler for section2 test on ELF/x86 targets.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/testsuite/gas/elf/elf.exp6
2 files changed, 10 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 41d826c..d4ec42b 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
+ * testsuite/gas/elf/elf.exp: Pass -mx86-used-note=no to
+ assembler for section2 test on ELF/x86 targets.
+
+2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
+
* testsuite/gas/cfi/cfi-label.d: Pass -mx86-used-note=no to
assembler.
diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp
index ee4aa57..44f26c3 100644
--- a/gas/testsuite/gas/elf/elf.exp
+++ b/gas/testsuite/gas/elf/elf.exp
@@ -170,7 +170,11 @@ if { [is_elf_format] } then {
if {! [istarget "h8300-*-*"]} then {
# The h8300 port issues a warning message for
# new sections created without atrributes.
- run_elf_list_test "section2" "$target_machine" "-al" "-s" ""
+ if { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then {
+ run_elf_list_test "section2" "$target_machine" "-al -mx86-used-note=no" "-s" ""
+ } {
+ run_elf_list_test "section2" "$target_machine" "-al" "-s" ""
+ }
}
run_dump_test "section3"
run_dump_test "section4"