From: Marc Gauthier <Marc.Gauthier@tensilica.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>,
Bjorn Helgaas <bhelgaas@google.com>
Cc: Linux Kernel Development <linux-kernel@vger.kernel.org>,
"linux-xtensa@linux-xtensa.org" <linux-xtensa@linux-xtensa.org>,
linux-kbuild <linux-kbuild@vger.kernel.org>
Subject: Re: Build regressions/improvements in v3.10
Date: Fri, 5 Jul 2013 23:07:31 -0700 [thread overview]
Message-ID: <522C1DF17AF50042AD8AE87F7887BD3D0B7886DB32@exch> (raw)
In-Reply-To: <CAMuHMdWoTMEyyph8aEu46+xHfkXRFN_qn4a987n7eo6EPRyyhw@mail.gmail.com>
Geert, Bjorn,
Geert Uytterhoeven wrote:
> On Tue, Jul 2, 2013 at 8:34 PM, Bjorn Helgaas
> <bhelgaas@google.com> wrote:
> >> + warning: vmlinux.o(.text+0x1ad7a4): Section mismatch
> in reference from the function pwmchip_add() to the function
> .init.text:pcibios_fixup_bus(): => N/A
> >> + warning: vmlinux.o(.text+0x1b18d8): Section mismatch
> in reference from the function pci_scan_child_bus() to the
> function .init.text:pcibios_fixup_bus(): => N/A
> >
> > I understand the second warning, but not the first (reference from
> > pwmchip_add() to pcibios_fixup_bus()). I don't think pwmchip_add()
> > calls pcibios_fixup_bus(). Is the pwmchip_chip() function name
> > inexact, or is there some other problem here?
>
> Indeed, that's weird.
>
> This happened with xtensa-allmodconfig.
> I compiled my own xtensa-allmodconfig kernel, and it happens
> there, too.
>
> If I'm not mistaken, the hex address between parentheses should match
> the "from" function, right?
> After disassembly ("xtensa-linux-objdump -D vmlinux"), the addresses
> didn't seem to match the function names at all.
> So it may be an issue with the toolchain?
The Xtensa linker, by default, does some code shrinkage
(some of the "relaxations") after applying relocations,
causing code to move around. This can sometimes cause
error/warning messages to use incorrect addresses.
(Not trivial to fix in the linker.)
There's a config option LD_NO_RELAX to disable linker
relaxation. If using this option fixes the names, it
may be this issue.
-Marc
next prev parent reply other threads:[~2013-07-06 6:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-02 17:12 Geert Uytterhoeven
2013-07-02 17:13 ` Geert Uytterhoeven
2013-07-02 18:34 ` Bjorn Helgaas
2013-07-02 21:29 ` Geert Uytterhoeven
2013-07-02 21:33 ` Bjorn Helgaas
2013-07-06 6:07 ` Marc Gauthier [this message]
2013-07-08 16:58 ` Geert Uytterhoeven
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=522C1DF17AF50042AD8AE87F7887BD3D0B7886DB32@exch \
--to=marc.gauthier@tensilica.com \
--cc=bhelgaas@google.com \
--cc=geert@linux-m68k.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xtensa@linux-xtensa.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
all inboxes | Powered by JetHome®