From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC] arm: add __initbss section attribute
Date: Tue, 13 Oct 2015 13:28:18 +0200 [thread overview]
Message-ID: <5171473.bOz59Zi81c@wuerfel> (raw)
In-Reply-To: <8004E8C3-F1EC-45C3-A995-88726B257563@gmail.com>
On Tuesday 13 October 2015 17:51:32 yalin wang wrote:
> > 32 __earlycon_table_sentinel
> > 200 __earlycon_of_table_sentinel
> > 6 __irf_end
> >
> >
> > 26398 total
> i am curious about your scripts ,
> could you show me ?
I was using some ad-hoc command line tricks, including
objcopy -j .init.data build/multi_v7_defconfig/vmlinux /tmp/initdata
nm initdata | sort -n | { read start b sym ; while read a b c ; do objdump -Dr --start-address=0x$start --stop-address=0x$a initdata > initdata.d/$sym ; start=$a ; sym=$c ; done }
(some manual sorting to delete the files that have pre-initialized symbols)
sum=0 ; nm /tmp/initdata | sort -n | { read start b sym ; while read a b c ; do test -e ../$sym && { echo $[0x$a - 0x$start]\ $sym ; sum=$[$sum + $[0x$a - 0x$start]] ; } ; start=$a ; sym=$c ; done ; echo $sum;}
I'm sure there are better ways to do this, and the manual step I used at
first was faulty.
Arnd
prev parent reply other threads:[~2015-10-13 11:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-12 3:59 [RFC] arm: add __initbss section attribute yalin wang
2015-10-12 8:22 ` Ard Biesheuvel
2015-10-12 8:46 ` yalin wang
2015-10-12 10:21 ` Arnd Bergmann
2015-10-12 20:04 ` Sam Ravnborg
[not found] ` <FEDC4251-5A6A-4E3C-AE36-8E5B55D9D6CF@gmail.com>
2015-10-13 9:40 ` Arnd Bergmann
2015-10-13 9:51 ` yalin wang
2015-10-13 11:28 ` Arnd Bergmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5171473.bOz59Zi81c@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox