diff --git a/0001-Modify-libdynamorio-to-static-library.patch b/0001-Modify-libdynamorio-to-static-library.patch deleted file mode 100644 index e973d05b9f8f81ba8147d1d58593b8d8c91e627d..0000000000000000000000000000000000000000 --- a/0001-Modify-libdynamorio-to-static-library.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 2cf52338d63ae0331fa8efd26e4dd61376ebbad6 Mon Sep 17 00:00:00 2001 -From: wjx -Date: Thu, 5 Jun 2025 21:19:45 +0800 -Subject: [PATCH] Modify libdynamorio to static library - ---- - CMakeLists.txt | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 47676e2..4088b2c 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -23,7 +23,7 @@ target_include_directories(profiler PUBLIC ${PROJECT_SOURCE_DIR}/include ${PROJE - - add_subdirectory(third_party) - link_directories(${PROJECT_SOURCE_DIR}/third_party/DynamoRIO/lib64/debug) --target_link_libraries(profiler PRIVATE pthread ${PROJECT_SOURCE_DIR}/third_party/DynamoRIO/lib64/release/libdynamorio.so unwind unwind-generic) -+target_link_libraries(profiler PRIVATE pthread ${PROJECT_SOURCE_DIR}/third_party/DynamoRIO/lib64/release/libdynamorio_static.a unwind unwind-generic) - - if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") - add_definitions(-D__x86_64__) --- -2.25.1 - diff --git a/SoftBR-1.0.0.zip b/SoftBR-1.0.1.zip similarity index 73% rename from SoftBR-1.0.0.zip rename to SoftBR-1.0.1.zip index a943e013aeabbe2370c443c046751b975d5792a0..215dfd0902f33244c56efc2b30e5ebb7a1aabcd5 100644 Binary files a/SoftBR-1.0.0.zip and b/SoftBR-1.0.1.zip differ diff --git a/SoftBR.spec b/SoftBR.spec index 2e9458aca9e5204a3aceed317a00e66f4635d2fb..f94bec9c07b0573391d6de6c8725175a25dff110 100644 --- a/SoftBR.spec +++ b/SoftBR.spec @@ -1,12 +1,11 @@ Name: SoftBR -Version: 1.0.0 +Version: 1.0.1 Release: 1 Summary: Software Implemented Architecture Independent Tool For Branch Tracking. License: Apache-2.0 WITH LLVM-exception URL: https://gitee.com/openeuler/SoftBR -Source0: SoftBR-1.0.0.zip +Source0: %{name}-%{version}.zip Source1: DynamoRIO-AArch64-Linux-10.0.0.tar.gz -Patch0: 0001-Modify-libdynamorio-to-static-library.patch BuildRequires: libunwind BuildRequires: libunwind-devel @@ -21,9 +20,8 @@ branch tracking tool. It can be used to record branch jumps (like LBR/BRBE). %prep -%setup -n SoftBR-1.0.0 -%autopatch -p1 -tar -zxvf %{SOURCE1} -C ./third_party +%setup -q -n %{name}-%{version} +tar -zxf %{SOURCE1} -C ./third_party cd third_party mv DynamoRIO-AArch64-Linux-10.0.0 DynamoRIO @@ -44,5 +42,9 @@ install -m 0755 build/libprofiler.so %{buildroot}%{_libdir}/libprofiler.so %{_libdir}/libprofiler.so %changelog +* Mon June 30 2025 Wangjiaxin - 1.0.1-1 +- fix some issue +- if I use static third-party library, symbol "os_read" not found. Using -DLOG_LEVEL=LOG_NONE, profiler.log still exist. + * Wed May 21 2025 Wangjiaxin - 1.0.0-1 - Package init \ No newline at end of file