From: Andi Kleen <ak@linux.intel.com>
To: Markus Trippelsdorf <markus@trippelsdorf.de>
Cc: mmarek@suse.cz, linux-kernel@vger.kernel.org,
linux-kbuild@vger.kernel.org
Subject: Re: [PATCH 5/6] kbuild: Use single pass kallsyms
Date: Sat, 8 Feb 2014 08:01:43 -0800 [thread overview]
Message-ID: <20140208160143.GF12219@tassilo.jf.intel.com> (raw)
In-Reply-To: <20140208091920.GA400@x4>
> diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
> index 4c5435f420a6..06469556c580 100644
> --- a/scripts/link-vmlinux.sh
> +++ b/scripts/link-vmlinux.sh
> @@ -213,7 +213,7 @@ if [ -n "${CONFIG_KALLSYMS}" ] ; then
>
> info PATCHFILE vmlinux
> OFF=$(${OBJDUMP} --section-headers vmlinux |
> - gawk -f ./source/scripts/elf_file_offset \
> + gawk -f ./scripts/elf_file_offset \
I think that would break with object dirs (which was what I used),
because the scripts there only has some executables.
Really need ${srcdir}, but it would need to be exported first.
This should work:
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index 4c5435f..5f0ae1a 100644
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -212,8 +212,10 @@ if [ -n "${CONFIG_KALLSYMS}" ] ; then
${OBJCOPY} -O binary .tmp_kallsyms2.o .tmp_kallsyms2.bin
info PATCHFILE vmlinux
+ EF=scripts/elf_file_offset
+ if [ ! -r $EF ] ; then EF=source/$EF ; fi
OFF=$(${OBJDUMP} --section-headers vmlinux |
- gawk -f ./source/scripts/elf_file_offset \
+ gawk -f $EF \
-v section=.kallsyms -v filesize=$(stat -c%s .tmp_kallsyms2.bin) )
if [ -z "$OFF" ] ; then
echo "Cannot find .kallsyms section in vmlinux binary"
-Andi
--
ak@linux.intel.com -- Speaking for myself only
next prev parent reply other threads:[~2014-02-08 16:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-08 7:50 [PATCH 1/6] kbuild: Remove relocations from kallsyms table Andi Kleen
2014-02-08 7:50 ` [PATCH 2/6] kbuild: Put kallsyms into own section Andi Kleen
2014-02-08 7:50 ` [PATCH 3/6] kbuild: Don't include const variable in kallsyms with !KALLSYMS_ALL Andi Kleen
2014-02-08 7:50 ` [PATCH 4/6] kbuild: Support padding in kallsyms tables Andi Kleen
2014-02-08 12:12 ` Markus Trippelsdorf
2014-02-08 17:46 ` Andi Kleen
2014-02-08 18:01 ` Markus Trippelsdorf
2014-02-08 7:50 ` [PATCH 5/6] kbuild: Use single pass kallsyms Andi Kleen
2014-02-08 9:19 ` Markus Trippelsdorf
2014-02-08 16:01 ` Andi Kleen [this message]
2014-02-08 18:00 ` Markus Trippelsdorf
2014-02-08 7:50 ` [PATCH 6/6] kbuild: Remove .dot postfixes in kallsyms Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2014-02-14 21:17 Updated single-pass kallsyms patchkit for LTO Andi Kleen
2014-02-14 21:17 ` [PATCH 5/6] kbuild: Use single pass kallsyms Andi Kleen
2014-02-18 14:24 Single pass kallsyms v3 Andi Kleen
2014-02-18 14:24 ` [PATCH 5/6] kbuild: Use single pass kallsyms Andi Kleen
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=20140208160143.GF12219@tassilo.jf.intel.com \
--to=ak@linux.intel.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=markus@trippelsdorf.de \
--cc=mmarek@suse.cz \
/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