summaryrefslogtreecommitdiff
path: root/core/src/xmake/binutils/rpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/xmake/binutils/rpath.c')
-rw-r--r--core/src/xmake/binutils/rpath.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/core/src/xmake/binutils/rpath.c b/core/src/xmake/binutils/rpath.c
index c720141c2..b3b7f5c3a 100644
--- a/core/src/xmake/binutils/rpath.c
+++ b/core/src/xmake/binutils/rpath.c
@@ -61,7 +61,7 @@ tb_int_t xm_binutils_rpath_list(lua_State *lua) {
tb_stream_ref_t istream = tb_stream_init_from_file(binaryfile, TB_FILE_MODE_RO);
if (!istream) {
lua_pushboolean(lua, tb_false);
- lua_pushfstring(lua, "rpath_list: open %s failed", binaryfile);
+ lua_pushfstring(lua, "open %s failed", binaryfile);
return 2;
}
@@ -69,7 +69,7 @@ tb_int_t xm_binutils_rpath_list(lua_State *lua) {
do {
if (!tb_stream_open(istream)) {
lua_pushboolean(lua, tb_false);
- lua_pushfstring(lua, "rpath_list: open %s failed", binaryfile);
+ lua_pushfstring(lua, "open %s failed", binaryfile);
break;
}
@@ -77,7 +77,7 @@ tb_int_t xm_binutils_rpath_list(lua_State *lua) {
tb_int_t format = xm_binutils_format_detect(istream);
if (format < 0) {
lua_pushboolean(lua, tb_false);
- lua_pushfstring(lua, "rpath_list: cannot detect file format");
+ lua_pushfstring(lua, "cannot detect file format");
break;
}
@@ -89,14 +89,14 @@ tb_int_t xm_binutils_rpath_list(lua_State *lua) {
if (!xm_binutils_elf_rpath_list(istream, 0, lua)) {
lua_pop(lua, 1); // pop table
lua_pushboolean(lua, tb_false);
- lua_pushfstring(lua, "rpath_list: failed to parse ELF");
+ lua_pushfstring(lua, "failed to parse ELF");
break;
}
} else if (format == XM_BINUTILS_FORMAT_MACHO) {
if (!xm_binutils_macho_rpath_list(istream, 0, lua)) {
lua_pop(lua, 1); // pop table
lua_pushboolean(lua, tb_false);
- lua_pushfstring(lua, "rpath_list: failed to parse Mach-O");
+ lua_pushfstring(lua, "failed to parse Mach-O");
break;
}
} else {
@@ -129,7 +129,7 @@ tb_int_t xm_binutils_rpath_clean(lua_State *lua) {
tb_stream_ref_t istream = tb_stream_init_from_file(binaryfile, TB_FILE_MODE_RW);
if (!istream) {
lua_pushboolean(lua, tb_false);
- lua_pushfstring(lua, "rpath_clean: open %s failed", binaryfile);
+ lua_pushfstring(lua, "open %s failed", binaryfile);
return 2;
}
@@ -137,7 +137,7 @@ tb_int_t xm_binutils_rpath_clean(lua_State *lua) {
do {
if (!tb_stream_open(istream)) {
lua_pushboolean(lua, tb_false);
- lua_pushfstring(lua, "rpath_clean: open %s failed", binaryfile);
+ lua_pushfstring(lua, "open %s failed", binaryfile);
break;
}
@@ -145,7 +145,7 @@ tb_int_t xm_binutils_rpath_clean(lua_State *lua) {
tb_int_t format = xm_binutils_format_detect(istream);
if (format < 0) {
lua_pushboolean(lua, tb_false);
- lua_pushfstring(lua, "rpath_clean: cannot detect file format");
+ lua_pushfstring(lua, "cannot detect file format");
break;
}
@@ -153,18 +153,18 @@ tb_int_t xm_binutils_rpath_clean(lua_State *lua) {
if (format == XM_BINUTILS_FORMAT_ELF) {
if (!xm_binutils_elf_rpath_clean(istream, 0)) {
lua_pushboolean(lua, tb_false);
- lua_pushfstring(lua, "rpath_clean: failed to clean ELF");
+ lua_pushfstring(lua, "failed to clean ELF");
break;
}
} else if (format == XM_BINUTILS_FORMAT_MACHO) {
if (!xm_binutils_macho_rpath_clean(istream, 0)) {
lua_pushboolean(lua, tb_false);
- lua_pushfstring(lua, "rpath_clean: failed to clean Mach-O");
+ lua_pushfstring(lua, "failed to clean Mach-O");
break;
}
} else {
lua_pushboolean(lua, tb_false);
- lua_pushfstring(lua, "rpath_clean: format not supported");
+ lua_pushfstring(lua, "format not supported");
break;
}