Questions tagged [strip]

12 questions
53
votes
1 answer

What are stripped and not-stripped executables in Unix?

From man file, EXAMPLES $ file file.c file /dev/{wd0a,hda} file.c: C program text file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped /dev/wd0a: block special…
Lazer
  • 34,477
  • 25
  • 70
  • 75
24
votes
5 answers

How to strip a Linux system?

I've been building a Linux distro, and I've stripped the binaries, etc. The system won't use GCC or development tools, as it will be a Chrome kiosk, so it would greatly help if I could strip down the system... I was wondering, is there a way that I…
Blender
  • 1,853
  • 2
  • 18
  • 25
10
votes
1 answer

Why doesn't `strip` remove section headers from ELF executables?

A minimal ELF executable only requires the ELF header and at least one program header in order to be functional. However, when I run strip on a short executable, it decides not to throw out the section header table or the section strings section,…
Mystor
  • 103
  • 1
  • 5
9
votes
3 answers

What harm would there be in running strip on all files?

I'm trying to decrease a Linux image running SuSE, and thought about running strip on all of the system's executables. Even though I may not re-gain much disk space this way, would there be any harm in doing so?
Délisson Junio
  • 288
  • 3
  • 10
9
votes
2 answers

How much strip(1)-ing is okay for kernel modules?

I regularly create packages for Slackware Linux and part of the process is stripping binaries so that they take up less space. I find that if I strip --strip-all (or strip with no options) kernel modules, they often fail to insert: FATAL: Error…
amphetamachine
  • 5,388
  • 2
  • 34
  • 41
6
votes
5 answers

Stripping directory paths to get file names

What I am doing is converting mp3's with LAME. I already have an old script I wrote that works but I want to add to it this ability--to no longer delete the file but instead save it in a new root folder with sub-directories that match the using the…
uxserx-bw
  • 506
  • 3
  • 7
  • 21
3
votes
1 answer

Is it safe to strip the binaries in Linux Mint?

I am trying to reduce the disk space on my computer, and du shows that the library directories (/usr/liband /lib) and binary directories (/sbin, /bin, /usr/bin, /usr/sbin) take up the most space apart from logs which I have already emptied. Is it…
2
votes
1 answer

Remove .shstrtab with strip

I've noticed that strip removes ELF sections, such as .symtab and .strtab, but is there a way to force it to remove the .shstrtab section as well? I already tried the -R option but it didn't work. Strip just exits as if nothing happened. The current…
Trey
  • 85
  • 8
2
votes
4 answers

Stripping down a Linux (CentOS7) system

How do I strip down a Linux system (especially CentOS 7) to only the parts that I need? I'm not asking for a specific command, but more for a hint to where I can find more about the packages that I have and what they do. If I use yum list installed…
dice
  • 61
  • 1
  • 8
2
votes
3 answers

How to reduce ncurses terminfo size

I notice that ncurses's terminfo database on /usr/share/terminfo is about 7MB (I compiled it myself). This is too large if I want to deploy it on an embedded Linux of 64MB disk space. Is there a way to reduce its size by deleting unneeded entries…
uray
  • 3,830
  • 11
  • 36
  • 42
2
votes
1 answer

Core files when the symbols are stripped

I am building an application using g++ 4.3. I am using the with maximum possible optimization level, not using the -g option, and I am stripping symbols after it builds. If I do NOT strip symbols from my application and libraries, are the core files…
BЈовић
  • 600
  • 1
  • 8
  • 20
0
votes
1 answer

Samba4 giant on Solaris 11

On linux samba4 is about 60MB at least on Slackware. On Solaris 11 samba4 compiled by myself and installed is 104MB! So i try strip solaris original strip #!/usr/bin/bash set -e find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : |…
elbarna
  • 12,050
  • 22
  • 92
  • 170