mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
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:
parent
675800364b
commit
bbd2d6bf2d
@ -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
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user