linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Cliff White <cliffw@osdl.org>
To: Tom Rini <trini@kernel.crashing.org>
Cc: Michel D?nzer <michel@daenzer.net>,
	linuxppc-dev@lists.linuxppc.org, 211668@bugs.debian.org
Subject: Re: 2.6.0-test5 "incorrect section attributes for .plt"
Date: Mon, 22 Sep 2003 10:56:30 -0700	[thread overview]
Message-ID: <200309221756.h8MHuUa13404@mail.osdl.org> (raw)
In-Reply-To: Message from Tom Rini <trini@kernel.crashing.org> of "Mon, 22 Sep 2003 09:45:11 PDT." <20030922164511.GJ7443@ip68-0-152-218.tc.ph.cox.net>


> On Sat, Sep 20, 2003 at 02:23:42PM +0200, Michel D?nzer wrote:
>
> > On Sat, 2003-09-20 at 00:58, Cliff White wrote:
> > > System is an iBook2,
> > > distro is Debian unstable
> > > kernel is 2.6.0-test5 or current from
> > > bk://ppc.bkbits.net/linuxppc-2.5
> > >
> > > gcc version 3.3.2 20030908 (Debian prerelease)
> > >
> > > When compiling modules, i get this warning, repeatedly:
> > >  CC [M]  sound/ppc/pmac.o
> > > {standard input}: Assembler messages:
> > > {standard input}:3: Warning: setting incorrect section attributes for .plt
> > >
> > > Then, this failure:
> > >
> > >   AS      arch/ppc/boot/common//util.o
> > > arch/ppc/boot/common/util.S: Assembler messages:
> > > arch/ppc/boot/common/util.S:220: Warning: setting incorrect section attributes
> > > for .relocate_code
> > > arch/ppc/boot/common//util.o: File truncated
> > > arch/ppc/boot/common/util.S:281: FATAL: Can't write
> > > arch/ppc/boot/common//util.o: File truncated
> > > make[2]: *** [arch/ppc/boot/common//util.o] Error 1
> > > make[1]: *** [arch/ppc/boot/common/] Error 2
> >
> > See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=211668 .
>
> I followed up on this to lkml/kernelnewbies, and then saw this so (and
> the bug# is cc'ed as well).  I suspect the problem is that binutils is
> no longer happy with:
> .section "foo","attrs"
> ... asm ...
> .previous
> \n
> \n
> EOF
> (and possibly just .previous\nEOF)
>
> But I don't think the .previous is needed anyhow, so if someone could
> verify that the following works (vs 2.6 current, but also a problem in
> 2.4)
>
> ===== arch/ppc/boot/common/util.S 1.6 vs edited =====
> --- 1.6/arch/ppc/boot/common/util.S	Thu Aug 21 10:17:00 2003
> +++ edited/arch/ppc/boot/common/util.S	Mon Sep 22 09:21:37 2003
> @@ -277,6 +277,3 @@
>  	addi	r3,r3,L1_CACHE_BYTES	/* Next line, please */
>  	bdnz	00b
>  10:	blr
> -
> -	.previous
> -
>
> I'll check this into the kernel.

I rebuilt binutils from source and was able to create a bootable kernel,
I will try this patch
cliffw

>
> --
> Tom Rini
> http://gate.crashing.org/~trini/


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  parent reply	other threads:[~2003-09-22 17:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-19 22:58 2.6.0-test5 "incorrect section attributes for .plt" Cliff White
2003-09-20 12:23 ` Michel Dänzer
2003-09-22 16:45   ` Tom Rini
2003-09-22 16:54     ` Bug#211668: " James Troup
2003-09-22 17:56     ` Cliff White [this message]
2003-09-22 18: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=200309221756.h8MHuUa13404@mail.osdl.org \
    --to=cliffw@osdl.org \
    --cc=211668@bugs.debian.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=michel@daenzer.net \
    --cc=trini@kernel.crashing.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;
as well as URLs for NNTP newsgroup(s).