mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Mikael Pettersson <mikpe@csd.uu.se>
Cc: benh@kernel.crashing.org, linux-kernel@vger.kernel.org,
	linuxppc-dev@lists.linuxppc.org, sam@ravnborg.org
Subject: Re: non-modular 2.6 ppc kernels miscompiled by gcc-3.3.1?
Date: Sun, 12 Oct 2003 21:53:55 +0200	[thread overview]
Message-ID: <20031012195355.GA6022@mars.ravnborg.org> (raw)
In-Reply-To: <200310121947.h9CJlmtK015045@harpo.it.uu.se>

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.

	Sam

  reply	other threads:[~2003-10-12 19:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-12 19:47 Mikael Pettersson
2003-10-12 19:53 ` Sam Ravnborg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-12 21:45 Mikael Pettersson
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=20031012195355.GA6022@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=mikpe@csd.uu.se \
    /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®