diff options
| author | Marin Ivanov <[email protected]> | 2024-12-18 13:56:17 +0200 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-12-18 14:03:36 +0200 |
| commit | 829e00cb15ea11af552e9c0be224fce6c6cfc7c8 (patch) | |
| tree | e34634dac3b7b1d0f3af176a239b2f90e726a1f9 | |
| parent | 705c3eac5e2878799c0be068f52008829c37726c (diff) | |
| -rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -918,6 +918,10 @@ addtosymtab(Symbol *sym) sym->idx = symtab->hdr.sh_size / symtab->hdr.sh_entsize; + if (!sym->section) { + sym->bind = STB_GLOBAL; + } + elfsym.st_name = elfstr(strtab, sym->name); elfsym.st_value = sym->value.c; elfsym.st_size = sym->size; @@ -1163,4 +1167,4 @@ main(int argc, char *argv[]) handlerelocs(); outelf(); return 0; -}
\ No newline at end of file +} |
