This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2] binutils: Add new GNU format mode to `size` utility


Hi Andrew,

> That looks great, but does it allow filtering by section properties?

It does now. :-)  For example:

  % annocheck --disable-hardened --ignore-unknown --size-sec-flags=X /usr/bin --size-human
  Section Size: 6794 sections match flag requirements, total size: 152Mb

You can combine W, A and X for the required section flags, and a ! character
inverts the following flags, so --size-sec-flags=A!WX would match any section 
that allocates space in memory but which is neither writeable nor executable.
(IE .rodata and the like).

You can also match segments instead of sections with the --size-seg-flags=[!WRX]
option.

You need annobin 8.70 for this enhancement, which should be in rawhide now,
but you can also clone the sources if you prefer:

 git clone git://sourceware.org/git/annobin.git

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]