look for symbols in dynsym table (#990)

* look for symbols in dynsym table

* checking both symtab and dynsym

* Avoid symbol duplication in non stripped binaries

* clang-format

* Minor elf_utils.cpp updates

- use 'else if' instead of 'if'
- logging tweaks

* Update registration

- tweak logging

* Update testing

- strip the rocprofiler-sdk-c-tool library
- add test-c-tool-rocp-tool-lib-execute test which does NOT LD_PRELOAD the library (uses only ROCP_TOOL_LIBRARIES instead)

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>

[ROCm/rocprofiler-sdk commit: dc671497da]
Tá an tiomantas seo le fáil i:
Gopesh Bhardwaj
2024-07-26 10:21:04 +05:30
tiomanta ag GitHub
tuismitheoir 185094eee1
tiomantas 2393b2ee45
D'athraigh 5 comhad le 78 breiseanna agus 22 scriosta
@@ -38,3 +38,14 @@ set_target_properties(
VERSION
${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}
INSTALL_RPATH "\$ORIGIN:\$ORIGIN/..")
if(NOT CMAKE_STRIP)
find_program(CMAKE_STRIP NAMES strip REQUIRED)
endif()
add_custom_command(
TARGET rocprofiler-sdk-c-tool
POST_BUILD
COMMAND ${CMAKE_STRIP} $<TARGET_FILE:rocprofiler-sdk-c-tool>
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMENT "Stripping rocprofiler-sdk-c-tool...")