gas: Pass -mx86-used-note=no to assembler
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 31 Aug 2018 11:42:51 +0000 (04:42 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 31 Aug 2018 11:43:06 +0000 (04:43 -0700)
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.

gas/ChangeLog
gas/testsuite/gas/elf/elf.exp

index 41d826c28a89839110ebfa9b1d8a5a03af600b1b..d4ec42ba4171a5edb17514441200d4ec0d1a7a3a 100644 (file)
@@ -1,3 +1,8 @@
+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
index ee4aa57c247c1b32553c1d25b7ee4491e8fe5581..44f26c345d309a7ebf9a54a1ee001fad7c9596d9 100644 (file)
@@ -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"
This page took 0.026959 seconds and 4 git commands to generate.