ld: fix ld-elf/linux-x86.exp for r/o source tree
authorJan Beulich <jbeulich@suse.com>
Wed, 3 Jun 2020 09:54:11 +0000 (11:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 3 Jun 2020 09:54:11 +0000 (11:54 +0200)
Since the copying ofthe individual files gets done more than once, make
sure the destinations can be copied to on subsequent copying attempts.

ld/ChangeLog
ld/testsuite/ld-elf/linux-x86.exp

index 28999bc49b69b3b5be772be47a47c8b974b25d7f..023c934bad971585f644a9ab9a9783ca7c555607 100644 (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
index 180674deacddf6877ce57304d829ec0430f61389..fef788ff235419178cd6404ab221c5afa99baeb7 100644 (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"]
This page took 0.02606 seconds and 4 git commands to generate.