Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 945b4de

Browse files
chunseokleejanvorli
authored andcommitted
gdbjit symbols exported (#11738)
* multiple export files as input for generate_exports_file Now, generate_exports_file is able to process multiple input arguments. This feature is useful when you want to export additional symbols depending on compile time dependannt feature(-D option.) * export file for gdbjit added src/dlls/mscoree/gdbjit_unixexports.src file added To enable gdbjit feature, libcoreclr.so should have __jit_xxx symbols. Current tizen build system removes .symtab section during rpm debuginfo build. This patch moves __jit_xx symbols into .dynsym section.
1 parent cf64892 commit 945b4de

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

functions.cmake

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ function(preprocess_def_file inputFilename outputFilename)
8686
PROPERTIES GENERATED TRUE)
8787
endfunction()
8888

89-
function(generate_exports_file inputFilename outputFilename)
89+
function(generate_exports_file)
90+
set(INPUT_LIST ${ARGN})
91+
list(GET INPUT_LIST -1 outputFilename)
92+
list(REMOVE_AT INPUT_LIST -1)
9093

9194
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
9295
set(AWK_SCRIPT generateexportedsymbols.awk)
@@ -96,8 +99,8 @@ function(generate_exports_file inputFilename outputFilename)
9699

97100
add_custom_command(
98101
OUTPUT ${outputFilename}
99-
COMMAND ${AWK} -f ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT} ${inputFilename} >${outputFilename}
100-
DEPENDS ${inputFilename} ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT}
102+
COMMAND ${AWK} -f ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT} ${INPUT_LIST} >${outputFilename}
103+
DEPENDS ${INPUT_LIST} ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT}
101104
COMMENT "Generating exports file ${outputFilename}"
102105
)
103106
set_source_files_properties(${outputFilename}

src/dlls/mscoree/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ else()
2222
set (DEF_SOURCES
2323
mscorwks_unixexports.src
2424
)
25+
if(FEATURE_GDBJIT)
26+
list(APPEND DEF_SOURCES
27+
gdbjit_unixexports.src
28+
)
29+
endif(FEATURE_GDBJIT)
2530
endif(WIN32)
2631

2732
convert_to_absolute_path(DEF_SOURCES ${DEF_SOURCES})
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
; exported for GDBJIT
2+
__jit_debug_register_code
3+
__jit_debug_descriptor

0 commit comments

Comments
 (0)