diff options
author | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2019-08-30 21:32:26 +0300 |
---|---|---|
committer | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2019-09-05 13:50:59 +0300 |
commit | d7f6e9ce71a78dedc31513e547f6ceddaeaa1e6f (patch) | |
tree | 376172a3f9b0727e12efb02cc95ac36cfaaf5786 | |
parent | e184975f9340ef27f06538039c6fbffd42b2f686 (diff) | |
download | qemu-accel-d7f6e9ce71a78dedc31513e547f6ceddaeaa1e6f.tar.gz qemu-accel-d7f6e9ce71a78dedc31513e547f6ceddaeaa1e6f.tar.bz2 qemu-accel-d7f6e9ce71a78dedc31513e547f6ceddaeaa1e6f.zip |
Optimize rpath string by 1 char (redundant '/')submit/tizen_base/20190906.093503accepted/tizen/base/20190909.044102
This changes new library RPATH from '/emul//usr/lib64' to '/emul/usr/lib64', so
we decrease each binary .dynstr section size by 1 and (for x64) decreasing
loaded virtual/phys INTERP segment sizes by 8 for: rpmdeps, rpmbuild, eu-nm,
eu-elfint, cpio, xsltproc.
Change-Id: I667cbeafd37e84e252868ca734abf270b5991c1a
-rw-r--r-- | packaging/qemu-accel-aarch64.spec | 2 | ||||
-rw-r--r-- | packaging/qemu-accel-armv7hl.spec | 2 | ||||
-rw-r--r-- | packaging/qemu-accel-armv7l.spec | 2 | ||||
-rw-r--r-- | packaging/qemu-accel.spec.in | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/packaging/qemu-accel-aarch64.spec b/packaging/qemu-accel-aarch64.spec index eb096be..cff0659 100644 --- a/packaging/qemu-accel-aarch64.spec +++ b/packaging/qemu-accel-aarch64.spec @@ -234,7 +234,7 @@ function patch_binary { mkdir -p ${outfile%/*} cp -aL $binary $outfile [ "$binary" == "$rtld" ] && return - patchelf --set-rpath "%{emul_path}/%{_libdir}" $outfile + patchelf --set-rpath "%{emul_path}%{_libdir}" $outfile # not all binaries have an .interp section if patchelf --print-interpreter $outfile 1>/dev/null 2>/dev/null; then patchelf --set-interpreter %{emul_path}$rtld $outfile diff --git a/packaging/qemu-accel-armv7hl.spec b/packaging/qemu-accel-armv7hl.spec index 71dbf1b..cece799 100644 --- a/packaging/qemu-accel-armv7hl.spec +++ b/packaging/qemu-accel-armv7hl.spec @@ -234,7 +234,7 @@ function patch_binary { mkdir -p ${outfile%/*} cp -aL $binary $outfile [ "$binary" == "$rtld" ] && return - patchelf --set-rpath "%{emul_path}/%{_libdir}" $outfile + patchelf --set-rpath "%{emul_path}%{_libdir}" $outfile # not all binaries have an .interp section if patchelf --print-interpreter $outfile 1>/dev/null 2>/dev/null; then patchelf --set-interpreter %{emul_path}$rtld $outfile diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec index 091ea00..354106f 100644 --- a/packaging/qemu-accel-armv7l.spec +++ b/packaging/qemu-accel-armv7l.spec @@ -234,7 +234,7 @@ function patch_binary { mkdir -p ${outfile%/*} cp -aL $binary $outfile [ "$binary" == "$rtld" ] && return - patchelf --set-rpath "%{emul_path}/%{_libdir}" $outfile + patchelf --set-rpath "%{emul_path}%{_libdir}" $outfile # not all binaries have an .interp section if patchelf --print-interpreter $outfile 1>/dev/null 2>/dev/null; then patchelf --set-interpreter %{emul_path}$rtld $outfile diff --git a/packaging/qemu-accel.spec.in b/packaging/qemu-accel.spec.in index 7b27e7b..1824470 100644 --- a/packaging/qemu-accel.spec.in +++ b/packaging/qemu-accel.spec.in @@ -231,7 +231,7 @@ function patch_binary { mkdir -p ${outfile%/*} cp -aL $binary $outfile [ "$binary" == "$rtld" ] && return - patchelf --set-rpath "%{emul_path}/%{_libdir}" $outfile + patchelf --set-rpath "%{emul_path}%{_libdir}" $outfile # not all binaries have an .interp section if patchelf --print-interpreter $outfile 1>/dev/null 2>/dev/null; then patchelf --set-interpreter %{emul_path}$rtld $outfile |