diff --git a/ld/ChangeLog b/ld/ChangeLog index b92a82bb0d..0bc18760b5 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2017-06-27 Maciej W. Rozycki + + * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination): + Use `readelf -h' rather than `readelf --headers'. + 2017-06-26 Maciej W. Rozycki * testsuite/ld-mips-elf/lsi-4010-isa.d: New test. diff --git a/ld/testsuite/ld-mips-elf/mips-elf-flags.exp b/ld/testsuite/ld-mips-elf/mips-elf-flags.exp index dd84c9c18b..cea2774b52 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf-flags.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf-flags.exp @@ -56,7 +56,7 @@ proc assemble_for_flags {arglist} { } # Assemble a file using each set of arguments in ARGLIST. Check that -# the objects can be linked together and that the readelf output +# the objects can be linked together and that the `readelf -h' output # includes each flag named in FLAGS. proc good_combination {arglist flags} { global ld ldemul READELF @@ -70,7 +70,7 @@ proc good_combination {arglist flags} { } elseif {![ld_link "$ld $ldemul" $finalobj "-r $objs"]} { fail $testname } else { - catch "exec $READELF --headers $finalobj" output + catch "exec $READELF -h $finalobj" output if {![regexp "Flags: *(\[^\n\]*)" $output full gotflags]} { unresolved $testname } else {