strippingagain.po 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><title>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/strippingagain.xml:11
  20. msgid "Stripping Again"
  21. msgstr ""
  22. #. type: Content of: <sect1><para>
  23. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/strippingagain.xml:13
  24. msgid ""
  25. "This section is optional. If the intended user is not a programmer and does "
  26. "not plan to do any debugging on the system software, the system size can be "
  27. "decreased by about 2 GB by removing the debugging symbols from binaries and "
  28. "libraries. This causes no inconvenience other than not being able to debug "
  29. "the software fully anymore."
  30. msgstr ""
  31. #. type: Content of: <sect1><para>
  32. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/strippingagain.xml:20
  33. msgid ""
  34. "Most people who use the commands mentioned below do not experience any "
  35. "difficulties. However, it is easy to make a typo and render the new system "
  36. "unusable, so before running the <command>strip</command> commands, it is a "
  37. "good idea to make a backup of the LFS system in its current state."
  38. msgstr ""
  39. #. type: Content of: <sect1><para>
  40. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/strippingagain.xml:26
  41. msgid ""
  42. "First place the debugging symbols for selected libraries in separate files. "
  43. "This debugging information is needed if running regression tests that use "
  44. "<ulink url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink "
  45. "url='&blfs-book;/general/gdb.html'>gdb</ulink> later in BLFS."
  46. msgstr ""
  47. #. also of interest are libgfortan, libgo, libgomp, and libobjc from GCC
  48. #. <screen>
  49. #. <userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"
  50. #. libcilkrts.so.&libcilkrts-version;
  51. #. type: Content of: <sect1><screen>
  52. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/strippingagain.xml:36
  53. #, no-wrap
  54. msgid ""
  55. "<userinput>save_lib=\"ld-&glibc-version;.so libc-&glibc-version;.so "
  56. "libpthread-&glibc-version;.so libthread_db-&libthread_db-version;.so\"\n"
  57. "\n"
  58. "cd /lib\n"
  59. "\n"
  60. "for LIB in $save_lib; do\n"
  61. " objcopy --only-keep-debug $LIB $LIB.dbg \n"
  62. " strip --strip-unneeded $LIB\n"
  63. " objcopy --add-gnu-debuglink=$LIB.dbg $LIB \n"
  64. "done \n"
  65. "\n"
  66. "save_usrlib=\"libquadmath.so.&libquadmath-version; "
  67. "libstdc++.so.&libstdcpp-version;\n"
  68. " libitm.so.&libitm-version; libatomic.so.&libatomic-version;\" "
  69. "\n"
  70. "\n"
  71. "cd /usr/lib\n"
  72. "\n"
  73. "for LIB in $save_usrlib; do\n"
  74. " objcopy --only-keep-debug $LIB $LIB.dbg\n"
  75. " strip --strip-unneeded $LIB\n"
  76. " objcopy --add-gnu-debuglink=$LIB.dbg $LIB\n"
  77. "done\n"
  78. "\n"
  79. "unset LIB save_lib save_usrlib</userinput>"
  80. msgstr ""
  81. #. type: Content of: <sect1><para>
  82. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/strippingagain.xml:66
  83. msgid "Now the binaries and libraries can be stripped:"
  84. msgstr ""
  85. #. type: Content of: <sect1><screen>
  86. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/strippingagain.xml:67
  87. #, no-wrap
  88. msgid ""
  89. "<userinput>find /usr/lib -type f -name \\*.a \\\n"
  90. " -exec strip --strip-debug {} ';'\n"
  91. "\n"
  92. "find /lib /usr/lib -type f -name \\*.so* ! -name \\*dbg \\\n"
  93. " -exec strip --strip-unneeded {} ';'\n"
  94. "\n"
  95. "find /{bin,sbin} /usr/{bin,sbin,libexec} -type f \\\n"
  96. " -exec strip --strip-all {} ';'</userinput>"
  97. msgstr ""
  98. #. type: Content of: <sect1><para>
  99. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/strippingagain.xml:76
  100. msgid ""
  101. "A large number of files will be reported as having their file format not "
  102. "recognized. These warnings can be safely ignored. These warnings indicate "
  103. "that those files are scripts instead of binaries."
  104. msgstr ""