Linux kbuild/kconfig development
 help / color / mirror / Atom feed
From: Ye Weihua <yeweihua4@huawei.com>
To: <masahiroy@kernel.org>, <michal.lkml@markovi.net>,
	<keescook@chromium.org>, <daniel@iogearbox.net>, <andriin@fb.com>
Cc: <linux-kbuild@vger.kernel.org>
Subject: Re: [QUESTION] Compile error on ppc32 with compilation option '-fdata-sections'
Date: Wed, 20 Oct 2021 10:59:25 +0800	[thread overview]
Message-ID: <d224e06f-0d5b-ba5a-04f5-e27621dc8c84@huawei.com> (raw)
In-Reply-To: <fe5a0d0c-0394-5866-8b92-e91f348a3a2a@huawei.com>

Hi,


I did additional testing on other architectures and found that only the 
ppc32 had this problem. Is there a difference between the compiler's 
support for the ppc32 architecture and other architectures?


I hope you'll take the time to reply. Thanks.


Kind regards,

Weihua

.

On 2021/10/19 10:14, Ye Weihua wrote:
> Hi,
>
>
> When I was compiling the ppc32 kernel with the compilation option 
> '-fdata-sections', a compilation error occurred and the message was as 
> follows:
>
>
>     "Inconsistent kallsyms data
>
>     Try make KALLSYMS_EXTRA_PASS=1 as a workaround"
>
>
> After comparing the symbol tables, I found that the "_end" and 
> "__bss_stop" positions in Symtem.map and tmp_System.map are different: 
> in Symtem.map they are in the middle of the symbol table. In 
> tmp_System.map, they are at the end of the symbol table.
>
>
> commit af73d78bd384aa9b add "strip-debug" to improve performance. 
> However, the addition takes effect only for tmp_vmlinux but not for 
> vmlinux. As a result, the symbol tables are different after the 
> "-fdata-sections" compilation option is enabled.
>
>
> How the "strip-debug" compilation option affects symbol table order?
>
> Can "strip-debug" be added during vmlinux generation?
>
>
> Kind regards,
>
> Weihua
>
> .
>

  reply	other threads:[~2021-10-20  2:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-19  2:14 [QUESTION] Compile error on ppc32 with compilation option '-fdata-sections' Ye Weihua
2021-10-20  2:59 ` Ye Weihua [this message]
2021-10-20 16:55 ` Kees Cook
2021-10-21  1:46   ` Ye Weihua

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=d224e06f-0d5b-ba5a-04f5-e27621dc8c84@huawei.com \
    --to=yeweihua4@huawei.com \
    --cc=andriin@fb.com \
    --cc=daniel@iogearbox.net \
    --cc=keescook@chromium.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=michal.lkml@markovi.net \
    /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