]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld/ELF: correct tidying of sec64k object files
authorJan Beulich <jbeulich@suse.com>
Fri, 12 Dec 2025 07:02:33 +0000 (08:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 12 Dec 2025 07:02:33 +0000 (08:02 +0100)
These consume quite a bit of space (especially noticeable during batch
testing), but are rather mechanical to (re)create. In 2.28, when the
object file names used were changed (from dump<N>.o to names derived from
source file names), the tidying code wasn't updated (and hence lost its
effect).

ld/testsuite/ld-elf/sec64k.exp

index deb46d3281da8c0b37fea09b1a31bd723b2788d7..56926eca14e6195549f7c8ac635085996b1a6787 100644 (file)
@@ -243,6 +243,6 @@ if { ![istarget "d10v-*-*"]
 }
 
 # Tidy up.
-for { set i 1 } { $i < $max_sec / $secs_per_file } { incr i } {
-    catch "exec rm -f tmpdir/dump$i.o" status
+for { set i 0 } { $i < $max_sec / $secs_per_file } { incr i } {
+    catch "exec rm -f tmpdir/sec64-$i.o" status
 }