Projects
Eulaceura:Factory
etmem
_service:obs_scm:0007-etmem-construct-etmem-deb...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0007-etmem-construct-etmem-debug-info-package.patch of Package etmem
From ae1a854beda0b9318e080acff64de3375eff75d3 Mon Sep 17 00:00:00 2001 From: Liu Chao <liuchao173@huawei.com> Date: Tue, 2 Apr 2024 16:01:50 +0800 Subject: [PATCH] etmem: construct etmem debug info package Currently, there is no debug info package for etmem, and this can be a problem when trying to analyze a coredump Signed-off-by: tangyuchen <tangyuchen5@huawei.com> --- etmem/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/etmem/CMakeLists.txt b/etmem/CMakeLists.txt index 0b38f07..6018ce0 100644 --- a/etmem/CMakeLists.txt +++ b/etmem/CMakeLists.txt @@ -83,9 +83,11 @@ target_compile_options(etmemd PRIVATE -fsigned-char -fno-omit-frame-pointer -Wal if(CONFIG_DEBUG STREQUAL "y") target_compile_options(etmemd PRIVATE -g) +else() + target_link_options(etmemd PRIVATE -s) endif() -set_target_properties(etmemd PROPERTIES LINK_FLAGS "-s -fPIE -pie -fPIC -Wl,-z,relro,-z,now,-z,noexecstack -Wtrampolines") +target_link_options(etmemd PRIVATE -fPIE -pie -fPIC -Wl,-z,relro,-z,now,-z,noexecstack -Wtrampolines) target_link_libraries(etmemd PRIVATE pthread dl rt boundscheck numa ${GLIB2_LIBRARIES}) if( ${ARCHITECTURE} STREQUAL "aarch64" ) @@ -102,9 +104,11 @@ target_compile_options(etmem PRIVATE -fsigned-char -fno-omit-frame-pointer -Wall if(CONFIG_DEBUG STREQUAL "y") target_compile_options(etmem PRIVATE -g) +else() + target_link_options(etmem PRIVATE -s) endif() -set_target_properties(etmem PROPERTIES LINK_FLAGS "-s -fPIE -pie -fPIC -Wl,-z,relro,-z,now,-z,noexecstack -Wtrampolines") +target_link_options(etmem PRIVATE -fPIE -pie -fPIC -Wl,-z,relro,-z,now,-z,noexecstack -Wtrampolines) target_link_libraries(etmem PRIVATE pthread dl rt boundscheck) if( ${ARCHITECTURE} STREQUAL "aarch64" ) @@ -122,9 +126,11 @@ target_compile_options(etmemd_scan PRIVATE -fsigned-char -fno-omit-frame-pointer if(CONFIG_DEBUG STREQUAL "y") target_compile_options(etmemd_scan PRIVATE -g) +else() + target_link_options(etmemd_scan PRIVATE -s) endif() -set_target_properties(etmemd_scan PROPERTIES LINK_FLAGS "-s -fPIE -pie -fPIC -Wl,-z,relro,-z,now,-z,noexecstack -Wtrampolines -Wl,--version-script=${ETMEMD_SRC_DIR}/etmemd_scan.version") +target_link_options(etmemd_scan PRIVATE -fPIE -pie -fPIC -Wl,-z,relro,-z,now,-z,noexecstack -Wtrampolines -Wl,--version-script=${ETMEMD_SRC_DIR}/etmemd_scan.version) target_link_libraries(etmemd_scan PRIVATE pthread dl rt boundscheck numa ${GLIB2_LIBRARIES}) if( ${ARCHITECTURE} STREQUAL "aarch64" ) -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2