Lines Matching refs:asmscn
44 asm_newsym (AsmScn_t *asmscn, const char *name, GElf_Xword size, in asm_newsym() argument
53 if (asmscn == NULL) in asm_newsym()
69 snprintf (tempsym, TEMPSYMLEN, ".L%07u", asmscn->ctx->tempsym_count++); in asm_newsym()
80 rwlock_wrlock (asmscn->ctx->lock); in asm_newsym()
82 result->scn = asmscn; in asm_newsym()
83 result->offset = asmscn->offset; in asm_newsym()
88 result->strent = dwelf_strtab_add (asmscn->ctx->symbol_strtab, in asm_newsym()
91 if (unlikely (asmscn->ctx->textp)) in asm_newsym()
97 fprintf (asmscn->ctx->out.file, "\t.globl\t%s\n", name); in asm_newsym()
99 fprintf (asmscn->ctx->out.file, "\t.weak\t%s\n", name); in asm_newsym()
103 fprintf (asmscn->ctx->out.file, "\t.type\t%s,@object\n", name); in asm_newsym()
105 fprintf (asmscn->ctx->out.file, "\t.type\t%s,@function\n", name); in asm_newsym()
108 fprintf (asmscn->ctx->out.file, "\t.size\t%s,%" PRIuMAX "\n%s:\n", in asm_newsym()
114 if (asm_symbol_tab_insert (&asmscn->ctx->symbol_tab, elf_hash (name), in asm_newsym()
130 ++asmscn->ctx->nsymbol_tab; in asm_newsym()
133 rwlock_unlock (asmscn->ctx->lock); in asm_newsym()