13 RZ_LOG_ERROR(
"Please set '%s' env to define a '%s' assembler program\n",
env,
a->cur->arch);
33 ".ascii \" BEGINMARK\"\n"
35 ".ascii \"ENDMARK\"\n",
40 const size_t asm_buf_len = strlen(asm_buf);
41 const bool success =
write(ifd, asm_buf, asm_buf_len) == asm_buf_len;
48 snprintf(
cmd,
sizeof(
cmd),
"%s %s %s -o %s", as, cmd_opt, ipath, opath);
62 RZ_LOG_ERROR(
"Cannot find water marks BEGINMARK or/and ENDMARK\n");
int binutils_assemble(RzAsm *a, RzAsmOp *op, const char *buf, const char *as, const char *env, const char *header, const char *cmd_opt)
static static fork const void static count close
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
RZ_API void Ht_() free(HtName_(Ht) *ht)
static static fork const void static count static fd const char static mode unlink
#define header(is_bt, len_min, ret_op)
RZ_API int rz_file_mkstemp(RZ_NULLABLE const char *prefix, char **oname)
#define RZ_LOG_ERROR(fmtstr,...)
RZ_API const ut8 * rz_mem_mem(const ut8 *haystack, int hlen, const ut8 *needle, int nlen)
RZ_API char * rz_str_newf(const char *fmt,...) RZ_PRINTF_CHECK(1
#define RZ_STR_ISEMPTY(x)
RZ_API bool rz_strbuf_setbin(RzStrBuf *sb, const ut8 *s, size_t len)
RZ_API char * rz_sys_getenv(const char *key)
Get the value of an environment variable named key or NULL if none exists.
RZ_API int rz_sys_open(const char *path, int perm, int mode)
RZ_API int rz_sys_system(const char *command)
static unsigned char * obuf
int read(izstream &zs, T *x, Items items)