This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

V2 [PATCH 5/7] 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/ld-elf/elf.exp: Pass -mx86-used-note=no to
	assembler for section2 test on ELF/x86 targets.
---
 gas/testsuite/gas/elf/elf.exp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp
index a7c793b0b0..f0ce8faad8 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"
-- 
2.17.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]