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.
This commit is contained in:
Jan Beulich 2020-06-03 11:54:11 +02:00
parent 675800364b
commit bbd2d6bf2d
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2020-06-03 Jan Beulich <jbeulich@suse.com>
* testsuite/ld-elf/linux-x86.exp: Make copied source files
writeable.
2020-05-28 Nick Clifton <nickc@redhat.com>
PR 26047

View File

@ -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"]