Changeset 08f72423
- Timestamp:
- 07/28/2021 10:46:22 AM (3 years ago)
- Branches:
- 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 46e4486
- Parents:
- 79902f4
- git-author:
- Xi Ruoyao <xry111@…> (07/28/2021 09:00:25 AM)
- git-committer:
- Xi Ruoyao <xry111@…> (07/28/2021 10:46:22 AM)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r79902f4 r08f72423 48 48 <itemizedlist> 49 49 <listitem> 50 <para>[xry111] - Always use --strip-unneeded for stripping.</para> 51 </listitem> 52 </itemizedlist> 53 </listitem> 54 55 <listitem> 56 <listitem> 57 <para>2021-07-27</para> 58 <itemizedlist> 59 <listitem> 50 60 <para>[xry111] - Use workaround for Glibc NSS modules during 51 61 stripping, to prevent bash from crash.</para> -
chapter07/stripping.xml
r79902f4 r08f72423 88 88 89 89 <para>Strip off debugging symbols from binaries:</para> 90 <screen role="nodump"><userinput>strip --strip- debug$LFS/usr/lib/*90 <screen role="nodump"><userinput>strip --strip-unneeded $LFS/usr/lib/* 91 91 strip --strip-unneeded $LFS/usr/{,s}bin/* 92 92 strip --strip-unneeded $LFS/tools/bin/*</userinput></screen> … … 97 97 <quote>Binutils pass 2</quote>, since it is the one that knows how to strip 98 98 our cross-compiled programs.--></para> 99 100 <para>Take care <emphasis>NOT</emphasis> to use101 <parameter>--strip-unneeded</parameter> on the libraries. The static102 ones would be destroyed and the toolchain packages would need to be103 built all over again.</para>104 99 105 100 <para>At this point, you should have at least 5 GB of free space on the -
chapter08/strippingagain.xml
r79902f4 r08f72423 68 68 for BIN in $online_usrbin; do 69 69 cp /usr/bin/$BIN /tmp/$BIN 70 strip --strip- all/tmp/$BIN70 strip --strip-unneeded /tmp/$BIN 71 71 install -vm755 /tmp/$BIN /usr/bin 72 72 rm /tmp/$BIN … … 80 80 done 81 81 82 find /usr/lib -type f -name \*.a \ 83 -exec strip --strip-debug {} ';' 84 85 for i in $(find /usr/lib -type f -name \*.so* ! -name \*dbg); do 86 case "$online_usrlib $save_usrlib" in 82 for i in $(find /usr/lib -type f -name \*.so* ! -name \*dbg) \ 83 $(find /usr/lib -type f -name \*.a) \ 84 $(find /usr/{bin,sbin,libexec} -type f); do 85 case "$online_usrbin $online_usrlib $save_usrlib" in 87 86 *$(basename $i)* ) 88 87 ;; … … 91 90 esac 92 91 done 93 94 for i in $(find /usr/bin -type f); do95 case "$online_usrbin" in96 *$(basename $i)* )97 ;;98 * ) strip --strip-all $i99 ;;100 esac101 done102 103 find /usr/{sbin,libexec} -type f \104 -exec strip --strip-all {} ';'105 92 106 93 unset BIN LIB save_usrlib online_usrbin online_usrlib
Note:
See TracChangeset
for help on using the changeset viewer.