Re: actual binary sizes and those reported by 'rpm'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 01, 2004 at 10:26:24AM +0100, Andy Green wrote:
> On Wednesday 01 September 2004 09:26, Ross Macintyre wrote:
> 
> > What's going on?
> > Can someone explain this discrepancy?
> 
> Prelink fiddles with your binaries once they are installed, on a cron job.  
> It's there to make them load faster.

It is sure to be prelink.

    $ cc hello.c
    $ ls -l a.out
    -rwxrwxr-x  1 bob bob 4735 Sep  2 10:15 a.out
    $ strip a.out
    $ ls -l a.out
    -rwxrwxr-x  1 bob bob 2952 Sep  2 10:15 a.out
    $  /usr/sbin/prelink -m ./a.out
    /usr/sbin/prelink: Could not write prelink cache: Permission denied
    $ ls -l a.out
    -rwxrwxr-x  1 bob bob 4704 Sep  2 10:15 a.out

And you can learn a bit about the change with objdump.

    $ objdump -x a.out

    a.out:     file format elf32-i386
    ..... BIG SNIP.....
    Sections:
    Idx Name          Size      VMA       LMA       File off  Algn
    .... More snip...

     25 .gnu.prelink_undo 000004fc  00000000  00000000  000007e8  2**2
		      CONTENTS, READONLY
    .... snip to end...
 

-- 
	T o m  M i t c h e l l 
	Just say no to 74LS73 in 2004



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux