Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #98 from wlemkows/add-map-file
Browse files Browse the repository at this point in the history
common: add map linker file
  • Loading branch information
lplewa authored May 20, 2022
2 parents c664054 + b529cff commit c2957b2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ set(CORE_DEPS ${CORE_DEPS}
add_library(cores STATIC ${CORE_DEPS})
add_library(miniasync SHARED ${SOURCES} miniasync.def)
set_property(TARGET cores PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(miniasync PRIVATE cores)
target_link_libraries(miniasync PRIVATE
-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/miniasync.map cores)

target_include_directories(miniasync PRIVATE . include)
target_include_directories(cores PRIVATE . include)
Expand Down
3 changes: 3 additions & 0 deletions src/miniasync.def
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ EXPORTS
data_mover_threads_new
data_mover_threads_default
data_mover_threads_get_vdm
data_mover_threads_set_memcpy_fn
data_mover_threads_set_memmove_fn
data_mover_threads_set_memset_fn
data_mover_threads_delete
24 changes: 24 additions & 0 deletions src/miniasync.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2022, Intel Corporation
#
# src/miniasync.map -- linker map file for miniasync
#
LIBMINIASYNC_1.0 {
global:
runtime_new;
runtime_delete;
runtime_wait_multiple;
runtime_wait;
data_mover_sync_new;
data_mover_sync_get_vdm;
data_mover_sync_delete;
data_mover_threads_new;
data_mover_threads_default;
data_mover_threads_get_vdm;
data_mover_threads_set_memcpy_fn;
data_mover_threads_set_memmove_fn;
data_mover_threads_set_memset_fn;
data_mover_threads_delete;
local:
*;
};

0 comments on commit c2957b2

Please sign in to comment.