Resurrecting old FreeBSD size with a rewrite using libelf

Sam Arun Raj Seeniraj samarunraj at gmail.com
Sun Mar 25 13:48:46 UTC 2007


Hello there,

This patch is to resurrect the old FreeBSD size with a rewrite using
libelf. Currently supports elf objects, ar(1) archives and core dumps
in elf.

Can handle ELF of various architectures using libelf but doesn't
support any other object file formats unlike the GNU size. The cmdline
parameters as similar to the GNU size minus the long formats. The
output will be also be similar save for difference in indentation.

This is my first patch to FreeBSD & new to the code style, recent
convert from Windows :). Looking for a public review.

Tested by doing,
- make universe
- Comparing output of GNU size versus this against a vast number of
elf objects from different architectures.
- core dumps from i386,amd64 and sparc64 - These were the only ones I
could lay my hands on.

(NOTE: Will disable GNU size)
Apply against,
  /usr in -current as "patch -p0 < size.diff"


Cheers,
-Sam Arun Raj
samarunraj at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: size.diff
Type: text/x-diff
Size: 27966 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070325/8edd9dc0/size.bin


More information about the freebsd-current mailing list