aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2015-11-20 11:22:56 +0100
committergrischka <grischka>2015-11-20 11:22:56 +0100
commit54cf57ab1a85df3679cd9a7ecec097f04d3fd82f (patch)
tree44e36efb6af2b1d96177a2d419dab18095e9a561 /libtcc.c
parent992cbda8d0958572831ea18c58c32ed11daf812d (diff)
downloadtinycc-54cf57ab1a85df3679cd9a7ecec097f04d3fd82f.tar.gz
tinycc-54cf57ab1a85df3679cd9a7ecec097f04d3fd82f.tar.bz2
tccgen: asm_label cleanup
- avoid memory allocation by using its (int) token number - avoid additional function parameter by using Attribute Also: fix some strange looking error messages
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtcc.c b/libtcc.c
index 2a43a3a..4745018 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -680,7 +680,7 @@ ST_FUNC void put_extern_sym2(Sym *sym, Section *section,
name = buf1;
}
if (sym->asm_label) {
- name = sym->asm_label;
+ name = get_tok_str(sym->asm_label, NULL);
}
info = ELFW(ST_INFO)(sym_bind, sym_type);
sym->c = add_elf_sym(symtab_section, value, size, info, other, sh_num, name);