diff options
author | Jan Beulich <jbeulich@suse.com> | 2020-06-03 11:54:11 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2020-06-03 11:54:11 +0200 |
commit | bbd2d6bf2d6627f64569a03ef290965c06e60b27 (patch) | |
tree | 30b874f2e43ace84bf09632bdc8460ea5a034dd9 | |
parent | 675800364bfdbc29ee034681339e4b4a137bb2f5 (diff) | |
download | gdb-bbd2d6bf2d6627f64569a03ef290965c06e60b27.zip gdb-bbd2d6bf2d6627f64569a03ef290965c06e60b27.tar.gz gdb-bbd2d6bf2d6627f64569a03ef290965c06e60b27.tar.bz2 |
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.
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/linux-x86.exp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 28999bc..023c934 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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 diff --git a/ld/testsuite/ld-elf/linux-x86.exp b/ld/testsuite/ld-elf/linux-x86.exp index 180674d..fef788f 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"] |