From: Mikael Pettersson <mikpe@csd.uu.se>
To: sam@ravnborg.org
Cc: benh@kernel.crashing.org, linux-kernel@vger.kernel.org,
linuxppc-dev@lists.linuxppc.org
Subject: Re: non-modular 2.6 ppc kernels miscompiled by gcc-3.3.1?
Date: Sun, 12 Oct 2003 23:45:04 +0200 (MEST) [thread overview]
Message-ID: <200310122145.h9CLj42k017265@harpo.it.uu.se> (raw)
On Sun, 12 Oct 2003 21:53:55 +0200, Sam Ravnborg wrote:
>On Sun, Oct 12, 2003 at 09:47:48PM +0200, Mikael Pettersson wrote:
>> Notice __start___ex_table[]'s address: it's not 4-byte aligned.
>> With gcc-3.2.3 it got an 8-byte aligned address in my 2.6 kernel.
>>
>> vmlinux.lds.S doesn't explicitly align __start___ex_table, so I
>> simply put ". = ALIGN(4);" before it and Voila! now it works.
>
>ld will aling the section according to alingment requirements
>of the symbols inside the section.
>So what happens in your case is that . (current address) is
>un-even. But ld alings the section to a 4-byte boundary,
>due to one of the symbols inside the section.
>
>So the better fix is to define the lables inside the section,
>(read: inside the two '{}').
>
>Care to give my patch a check and report back.
Yes, your patch also works.
/Mikael
next reply other threads:[~2003-10-12 21:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-12 21:45 Mikael Pettersson [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-10-12 19:47 Mikael Pettersson
2003-10-12 19:53 ` Sam Ravnborg
2003-10-12 13:10 Mikael Pettersson
2003-10-12 13:19 ` Benjamin Herrenschmidt
2003-10-12 18:19 ` Sam Ravnborg
2003-10-13 16:05 ` Tom Rini
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=200310122145.h9CLj42k017265@harpo.it.uu.se \
--to=mikpe@csd.uu.se \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=sam@ravnborg.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®