Home | History | Annotate | Download | only in libasm

Lines Matching refs:asmscn

38 /* Add zero terminated string STR of size LEN to (sub)section ASMSCN.  */
40 asm_addstrz (asmscn, str, len)
41 AsmScn_t *asmscn;
45 if (asmscn == NULL)
48 if (unlikely (asmscn->type == SHT_NOBITS))
74 if (unlikely (asmscn->ctx->textp))
82 fputs ("\t.string\t\"", asmscn->ctx->out.file);
87 fputs ("\\000", asmscn->ctx->out.file);
89 fprintf (asmscn->ctx->out.file, "\\%03o",
92 fputs ("\\\\", asmscn->ctx->out.file);
95 fputs ("\\n\"", asmscn->ctx->out.file);
99 fputc (*str, asmscn->ctx->out.file);
106 fputs ("\"\n", asmscn->ctx->out.file);
111 if (__libasm_ensure_section_space (asmscn, len) != 0)
115 memcpy (&asmscn->content->data[asmscn->content->len], str, len);
118 asmscn->content->len += len;
121 asmscn->offset += len;