Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-01

Strange .EXE stripped issue

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Fabio Dell'Aria

Hi to all,

I have a little problem stripping my .EXE compiled file.

The final size with the DEBUG symbols (from -gl flag) is: 65132 bytes

(A) with "strip --strip-debug" become: 64583 bytes

(B) with "strip --strip-unneeded" become: 39424 bytes

Difference from (A) - (B) = 25159 bytes

What data are stored into this 25159 bytes?

How I can remove them?

Best regards... Fabio Dell'Aria.

Reply by email

Jonas Maebe
to Fabio Dell'Aria
Fabio Dell'Aria wrote 11 lines
I have a little problem stripping my .EXE compiled file. The final size with the DEBUG symbols (from -gl flag) is: 65132 bytes (A) with "strip --strip-debug" become: 64583 bytes (B) with "strip --strip-unneeded" become: 39424 bytes Difference from (A) - (B) = 25159 bytes What data are stored into this 25159 bytes?

Symbols.

How I can remove them?

With --strip-unneeded

Jonas

Reply by email

Fabio Dell'Aria
to Jonas Maebe

Hi,

2008/1/21, Jonas Maebe :

Show quoted text 20 lines
On 21 Jan 2008, at 13:18, Fabio Dell'Aria wrote: > I have a little problem stripping my .EXE compiled file. > > The final size with the DEBUG symbols (from -gl flag) is: 65132 bytes > > (A) with "strip --strip-debug" become: 64583 bytes > > (B) with "strip --strip-unneeded" become: 39424 bytes > > Difference from (A) - (B) = 25159 bytes > > What data are stored into this 25159 bytes? Symbols. > How I can remove them? With --strip-unneeded

No my questions is: How I can remove ONLY this symbols (not DEBUG sections)? :)

Best regards... Fabio Dell'Aria.

Reply by email

Peter Vreman
Show quoted text 25 lines
Hi, 2008/1/21, Jonas Maebe : > > On 21 Jan 2008, at 13:18, Fabio Dell'Aria wrote: > > > I have a little problem stripping my .EXE compiled file. > > > > The final size with the DEBUG symbols (from -gl flag) is: 65132 bytes > > > > (A) with "strip --strip-debug" become: 64583 bytes > > > > (B) with "strip --strip-unneeded" become: 39424 bytes > > > > Difference from (A) - (B) = 25159 bytes > > > > What data are stored into this 25159 bytes? > > Symbols. > > > How I can remove them? > > With --strip-unneeded No my questions is: How I can remove ONLY this symbols (not DEBUG sections)? :)

strip is a GNU binutils tool. Please ask on the binutils mailing lists.

Peter

Reply by email

Micha Nelissen
to Fabio Dell'Aria: I have a little problem stripping my .EXE compiled file. The final size with the DEBUG…
Fabio Dell'Aria wrote 9 lines
The final size with the DEBUG symbols (from -gl flag) is: 65132 bytes (A) with "strip --strip-debug" become: 64583 bytes (B) with "strip --strip-unneeded" become: 39424 bytes Difference from (A) - (B) = 25159 bytes What data are stored into this 25159 bytes?

Use objdump -h <file> to see what sections an executable contains.

Micha

Reply by email