goplus / llgo

A Go compiler based on LLVM in order to better integrate Go with the C ecosystem including Python
Apache License 2.0
365 stars 26 forks source link

xtool/nm:flags option & symbol version #829

Closed luoliwoshang closed 1 month ago

luoliwoshang commented 1 month ago

830

For llcppsymg get dynamic symbol in linux by passing option to nm.

before havent symbol output

root@be00d9b1c2c9:/lib/aarch64-linux-gnu# nmdump liblua5.4.so
root@be00d9b1c2c9:/lib/aarch64-linux-gnu# 

after,pass -D flag can outout dynamic symbol normally

root@be00d9b1c2c9:/lib/aarch64-linux-gnu# nmdump -D liblua5.4.so
0000000000000000 A LUA_5.4@@LUA_5.4
                 w _ITM_deregisterTMCloneTable
                 w _ITM_registerTMCloneTable
                 U __ctype_b_loc@GLIBC_2.17
                 U __ctype_tolower_loc@GLIBC_2.17
                 U __ctype_toupper_loc@GLIBC_2.17
                 w __cxa_finalize@GLIBC_2.17
                 U __errno_location@GLIBC_2.17
                 U __fprintf_chk@GLIBC_2.17
                 w __gmon_start__
codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.47%. Comparing base (9ea88fe) to head (d682771). Report is 4 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #829 +/- ## ======================================= Coverage 97.47% 97.47% ======================================= Files 20 20 Lines 5157 5157 ======================================= Hits 5027 5027 Misses 110 110 Partials 20 20 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.