diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 15:26:14 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 15:26:14 -0400 |
| commit | 955805f9a73145f2b3eb991c3d7aaaaae0576b38 (patch) | |
| tree | 62a244bed346f248f07b43d1629af815a9b44dd7 /src/tomo.c | |
| parent | 486da9edad25eb9ef06aebe884fb09397840a584 (diff) | |
Bugfix issue with renaming symbols for libraries
Diffstat (limited to 'src/tomo.c')
| -rw-r--r-- | src/tomo.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -459,7 +459,8 @@ void build_library(Text_t lib_dir_name) FILE *prog; for (int64_t i = 0; i < tm_files.length; i++) { Path_t f = *(Path_t*)(tm_files.data + i*tm_files.stride); - prog = run_cmd("nm -g '", build_file(f, ".o"), "' | awk '$2~/^[DTB]$/{print $3 \" _$", + prog = run_cmd("nm -g '", build_file(f, ".o"), "' | awk '$2~/^[DTB]$/ && $3~/^_\\$", + CORD_to_const_char_star(env->libname), "\\$/{print $3 \" _$", CORD_to_const_char_star(env->libname), "\" substr($3,2)}' " ">>.build/symbol_renames.txt"); if (!prog) print_err("Could not find symbols!"); |
