15.Shrink of the files in which the debugging code was contained

RedHatのディストリビューションファイルの中にはデバッグコードの含まれているBinaryファイルが多く存在します。
デバッグコードが含まれるとサイズが大きくなり無駄な部分が多いということです。
そこでファイルをダイエットしてしまいましょう!

How to investigate:Using file Command
  $file libpcre.so.0.0.1
  libpcre.so.0.0.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped

The debugging code is contained when displayed as "not stripped".
Let's diet instantly.

In case of Files:
  $objcopy --strip-all FileName

In case of Library:
  $objcopy -S LibraryName LibraryName

There may be the file or command which stop moving in inside!




直線上に配置