Projects
Mega:23.09
debugedit
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:debugedit.spec
Changed
@@ -1,6 +1,6 @@ Name: debugedit Version: 5.0 -Release: 6 +Release: 7 Summary: Tools for debuginfo creation License: GPL-2.0-or-later and LGPL-2.1-only and GPL-3.0-only Group: Applications @@ -25,6 +25,8 @@ Patch9000: add-loongarch-support-for-debugedit.patch %endif +Patch9001: add-flag-named-strip_a-for-scenario-where-ENABLE_RELOC-is-enabled.patch + %description Debugedit provides programs and scripts for creating debuginfo and source file distributions, collect build-ids and rewrite source @@ -67,6 +69,9 @@ %{_rpmconfigdir}/debugedit %changelog +* Mon Sep 11 2023 yangpan<yangpan51@huawei.com> - 5.0-7 +- add flag named strip_a for scenario where ENABLE_RELOC is enabled + * Fri Jan 6 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 5.0-6 - add loongarch64 support for debugedit
View file
_service:tar_scm:add-flag-named-strip_a-for-scenario-where-ENABLE_RELOC-is-enabled.patch
Added
@@ -0,0 +1,49 @@ +From edaef6367488d5e8937355a198b6d32966888a14 Mon Sep 17 00:00:00 2001 +From: pan-y <yangpan51@huawei.com> +Date: Mon, 11 Sep 2023 14:33:02 +0800 +Subject: PATCH add flag named strip_a to fix issue about not stripped in glibc +Description: After ENABLE_RELOC is enabled, the emit-relocs option is added so + that the elf file adds the .rela section (.rela.init; .rela.text, etc.). + These sections cannot be deleted using eu-strip. As a result, the strip + compilation option does not meet requirements. Therefore, the strip_a field is added. + When ENABLE_RELOC is enabled, this field is set to true and the strip operation is added. + +--- + scripts/find-debuginfo.in | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/scripts/find-debuginfo.in b/scripts/find-debuginfo.in +index 22fe7f5..22397fa 100755 +--- a/scripts/find-debuginfo.in ++++ b/scripts/find-debuginfo.in +@@ -110,6 +110,9 @@ strip_glibs=false + # with -r arg, pass --reloc-debug-sections to eu-strip. + strip_r=false + ++# with strip_a,strip is used when sysBoost is enabled ++strip_a=false ++ + # keep or remove arguments to eu-strip. + keep_remove_args= + +@@ -188,6 +191,9 @@ while $# -gt 0 ; do + -g) + strip_g=true + ;; ++ -strip_a) ++ strip_a=true ++ ;; + -m) + include_minidebug=true + ;; +@@ -319,6 +325,7 @@ strip_to_debug() + application/x-sharedlib*) g=-g ;; + esac + eu-strip --remove-comment $r $g ${keep_remove_args} -f "$1" "$2" || exit ++ $strip_a && strip $2 + chmod 444 "$1" || exit + } + +-- +2.41.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