From: Jan Beulich Date: Wed, 3 Jun 2020 09:54:11 +0000 (+0200) Subject: ld: fix ld-elf/linux-x86.exp for r/o source tree X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=bbd2d6bf2d6627f64569a03ef290965c06e60b27;p=deliverable%2Fbinutils-gdb.git ld: fix ld-elf/linux-x86.exp for r/o source tree Since the copying ofthe individual files gets done more than once, make sure the destinations can be copied to on subsequent copying attempts. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 28999bc49b..023c934bad 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2020-06-03 Jan Beulich + + * testsuite/ld-elf/linux-x86.exp: Make copied source files + writeable. + 2020-05-28 Nick Clifton PR 26047 diff --git a/ld/testsuite/ld-elf/linux-x86.exp b/ld/testsuite/ld-elf/linux-x86.exp index 180674deac..fef788ff23 100644 --- a/ld/testsuite/ld-elf/linux-x86.exp +++ b/ld/testsuite/ld-elf/linux-x86.exp @@ -134,6 +134,7 @@ proc check_pr25749a {testname srcfilea srcfileb cflags ldflags lderror} { } exec cp $srcdir/$subdir/$srcfilea $srcfilea + exec chmod +w $srcfilea set pr25749_bin "$objcopy -B $output_arch -I binary -O $output_target $srcfilea tmpdir/pr25749-bin.o" send_log "$pr25749_bin\n" set got [remote_exec host "$pr25749_bin"] @@ -237,6 +238,7 @@ proc check_pr25749b {testname srcfilea srcfileb cflags ldflags dsoldflags} { } exec cp $srcdir/$subdir/$srcfilea $srcfilea + exec chmod +w $srcfilea set pr25749_bin "$objcopy -B $output_arch -I binary -O $output_target $srcfilea tmpdir/pr25749-bin.o" send_log "$pr25749_bin\n" set got [remote_exec host "$pr25749_bin"]