aboutsummaryrefslogtreecommitdiffhomepage
path: root/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf.c')
-rw-r--r--elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf.c b/elf.c
index d754800..be83118 100644
--- a/elf.c
+++ b/elf.c
@@ -362,7 +362,7 @@ elffini(struct wbuf *out)
memcpy(shstrs + shnam_reldata + 4, ".data\0", 6);
}
- symtab.p[1].name = str2idx(getfilename(0));
+ symtab.p[1].name = str2idx(objout.infile);
qsort(symtab.p+2, symtab.n-2, sizeof *symtab.p, symcmp);
/* fixup relocs */
for (int i = 0; i < relocs.n; ++i) {