PR273, SOM size -A
authorAlan Modra <amodra@gmail.com>
Thu, 21 Nov 2019 10:14:54 +0000 (20:44 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 21 Nov 2019 12:03:42 +0000 (22:33 +1030)
commite19511a60cda301feacdb6244375363b08dccf7d
tree6592c6c5986399f2495aceb95b043d2b80341fb3
parentf76d79580efea856298d9e5b9a91746be875f1b1
PR273, SOM size -A

The SOM backend creates BFD sections for "spaces", and "sub-spaces".
"sub-spaces" are what we normally think of as a section, "spaces"
aggregate "sub-spaces".  Thus it does not really make sense to include
"spaces" for size -A since that would double count total size.

It so happens that real sections ought to have at least one of the
ALLOC and HAS_CONTENTS flags set, so this patch excludes "spaces" but
excluding BFD sections with no flags set.

PR 273
* size.c (sysv_internal_sizer, sysv_internal_printer): Exclude
sections with no flag bits set.
* testsuite/binutils-all/size.exp: Allow $CODE$ as a text section.
binutils/ChangeLog
binutils/size.c
binutils/testsuite/binutils-all/size.exp
This page took 0.024322 seconds and 4 git commands to generate.