Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1650804 Details for
Bug 1789099
redhat-rpm-config should remove LTO bytecode sections/symbols from installed .o/.a files
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Changes to redhat-rpm-config to implement stripping LTO sections/symbols
strip-lto.patch (text/plain), 1.94 KB, created by
Jeff Law
on 2020-01-08 18:11:24 UTC
(
hide
)
Description:
Changes to redhat-rpm-config to implement stripping LTO sections/symbols
Filename:
MIME Type:
Creator:
Jeff Law
Created:
2020-01-08 18:11:24 UTC
Size:
1.94 KB
patch
obsolete
>diff --git a/brp-strip-lto b/brp-strip-lto >new file mode 100755 >index 0000000..509f9f7 >--- /dev/null >+++ b/brp-strip-lto >@@ -0,0 +1,18 @@ >+#!/usr/bin/sh >+# If using normal root, avoid changing anything. >+if [ -z "$RPM_BUILD_ROOT" ] || [ "$RPM_BUILD_ROOT" = "/" ]; then >+ exit 0 >+fi >+ >+STRIP=${1:-strip} >+ >+case `uname -a` in >+Darwin*) exit 0 ;; >+*) ;; >+esac >+ >+# Strip ELF binaries >+for f in `find "$RPM_BUILD_ROOT" -type f -name \*.[ao] -print | \ >+ grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug"`; do >+ $STRIP -p -R .gnu.lto_* -R .gnu.debuglto_* -N __gnu_lto_v1 "$f" || : >+done >diff --git a/macros b/macros >index cd06548..3f6da09 100644 >--- a/macros >+++ b/macros >@@ -146,6 +187,7 @@ print(result) > %__brp_ldconfig /usr/lib/rpm/redhat/brp-ldconfig > %__brp_compress /usr/lib/rpm/brp-compress > %__brp_strip /usr/lib/rpm/brp-strip %{__strip} >+%__brp_strip_lto /usr/lib/rpm/redhat/brp-strip-lto %{__strip} > %__brp_strip_comment_note /usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} > %__brp_strip_static_archive /usr/lib/rpm/brp-strip-static-archive %{__strip} > %__brp_python_bytecompile /usr/lib/rpm/redhat/brp-python-bytecompile "%{__python}" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}" >@@ -163,6 +205,7 @@ print(result) > %{?__brp_strip} \ > %{?__brp_strip_comment_note} \ > } \ >+ %{?__brp_strip_lto} \ > %{?__brp_strip_static_archive} \ > %{?py_auto_byte_compile:%{?__brp_python_bytecompile}} \ > %{?__brp_python_hardlink} \ >diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec >index c052047..30b249b 100644 >--- a/redhat-rpm-config.spec >+++ b/redhat-rpm-config.spec >@@ -6,7 +6,7 @@ > > Summary: Red Hat specific rpm configuration files > Name: redhat-rpm-config >-Version: 146 >+Version: 147 > Release: 1%{?dist} > # No version specified. > License: GPL+ >@@ -78,6 +78,7 @@ Source602: libsymlink.attr > > # BRPs > Source700: brp-ldconfig >+Source701: brp-strip-lto > > # Convenience lua functions > Source800: common.lua
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1789099
: 1650804