diff options
| author | ruki <[email protected]> | 2025-12-11 23:31:50 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-12 09:00:44 +0800 |
| commit | 409b21826872503ef479848321003d7ca4c1aad8 (patch) | |
| tree | 6abd52d42fb5d3163425bbbe22a2c52248b62574 /core/src/xmake/binutils/elf | |
| parent | 0b8a0363ed4c21be9795e0b6256d4f1dcd52d722 (diff) | |
format code
Diffstat (limited to 'core/src/xmake/binutils/elf')
| -rw-r--r-- | core/src/xmake/binutils/elf/readsyms.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/xmake/binutils/elf/readsyms.c b/core/src/xmake/binutils/elf/readsyms.c index f0d0a1061..3aa489381 100644 --- a/core/src/xmake/binutils/elf/readsyms.c +++ b/core/src/xmake/binutils/elf/readsyms.c @@ -128,12 +128,12 @@ tb_bool_t xm_binutils_elf_read_symbols_32(tb_stream_ref_t istream, lua_State *lu if (!xm_binutils_elf_read_string(istream, strtab_section.sh_offset, sym.st_name, name, sizeof(name)) || !name[0]) { continue; } - + // skip internal symbols (starting with . or $) if (name[0] == '.' || name[0] == '$') { continue; } - + // skip local symbols (unless undefined) tb_uint8_t bind = (sym.st_info >> 4) & 0xf; if (bind == 0 && sym.st_shndx != 0) { // STB_LOCAL and not undefined @@ -255,12 +255,12 @@ tb_bool_t xm_binutils_elf_read_symbols_64(tb_stream_ref_t istream, lua_State *lu if (!xm_binutils_elf_read_string(istream, strtab_section.sh_offset, sym.st_name, name, sizeof(name)) || !name[0]) { continue; } - + // skip internal symbols (starting with . or $) if (name[0] == '.' || name[0] == '$') { continue; } - + // skip local symbols (unless undefined) tb_uint8_t bind = (sym.st_info >> 4) & 0xf; if (bind == 0 && sym.st_shndx != 0) { // STB_LOCAL and not undefined |
