aboutsummaryrefslogtreecommitdiffhomepage
path: root/elf.c
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2025-10-18 18:12:19 +0200
committer lemon<lsof@mailbox.org>2025-10-18 18:12:19 +0200
commit99adb48d94c59cb2e5701ca39d7c40d4f63459b3 (patch)
treebe3c432db54dd7f4e1ceab70848543bba1a4ead8 /elf.c
parentffca6b54a9654005a121c3557bb8b245ae65ce55 (diff)
#pragma once
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) {