* 2.6.0-test5 - powermac compile problem "incorrect section attributes for .plt"
@ 2003-09-19 22:08 Cliff White
2003-09-22 16:21 ` Tom Rini
0 siblings, 1 reply; 4+ messages in thread
From: Cliff White @ 2003-09-19 22:08 UTC (permalink / raw)
To: linux-kernel, kernelnewbies
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
Suggestions appreciated.
cliffw
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.0-test5 - powermac compile problem "incorrect section attributes for .plt"
2003-09-19 22:08 2.6.0-test5 - powermac compile problem "incorrect section attributes for .plt" Cliff White
@ 2003-09-22 16:21 ` Tom Rini
2003-09-22 21:08 ` Cliff White
0 siblings, 1 reply; 4+ messages in thread
From: Tom Rini @ 2003-09-22 16:21 UTC (permalink / raw)
To: Cliff White; +Cc: linux-kernel, kernelnewbies
[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]
On Fri, Sep 19, 2003 at 03:08:32PM -0700, 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
>
> Suggestions appreciated.
I suspect this is a binutils bug. But can you try the following? We
shouldn't need a '.previous' here, as it is the end of the file anyhow.
===== 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
-
--
Tom Rini
http://gate.crashing.org/~trini/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.0-test5 - powermac compile problem "incorrect section attributes for .plt"
2003-09-22 16:21 ` Tom Rini
@ 2003-09-22 21:08 ` Cliff White
2003-09-22 21:40 ` Tom Rini
0 siblings, 1 reply; 4+ messages in thread
From: Cliff White @ 2003-09-22 21:08 UTC (permalink / raw)
To: Tom Rini; +Cc: Cliff White, linux-kernel, kernelnewbies, cliffw
> On Fri, Sep 19, 2003 at 03:08:32PM -0700, 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
> >
> > Suggestions appreciated.
>
> I suspect this is a binutils bug. But can you try the following? We
> shouldn't need a '.previous' here, as it is the end of the file anyhow.
>
I believe this is a binutils bug.
I tried this patch, did not change my symptoms.
I down-rev'd binutils from 2.14.90.0.6 -> 2.14.90.0.1, built
from source and i have a working kernel, however i still see the .plt
errors on some modules.
cliffw
> ===== 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
> -
>
> --
> Tom Rini
> http://gate.crashing.org/~trini/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.0-test5 - powermac compile problem "incorrect section attributes for .plt"
2003-09-22 21:08 ` Cliff White
@ 2003-09-22 21:40 ` Tom Rini
0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2003-09-22 21:40 UTC (permalink / raw)
To: Cliff White; +Cc: linux-kernel, kernelnewbies
On Mon, Sep 22, 2003 at 02:08:29PM -0700, Cliff White wrote:
> > On Fri, Sep 19, 2003 at 03:08:32PM -0700, 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
> > >
> > > Suggestions appreciated.
> >
> > I suspect this is a binutils bug. But can you try the following? We
> > shouldn't need a '.previous' here, as it is the end of the file anyhow.
> >
> I believe this is a binutils bug.
It is. From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=211668,
http://sources.redhat.com/ml/binutils/2003-09/msg00381.html
--
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-22 21:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-19 22:08 2.6.0-test5 - powermac compile problem "incorrect section attributes for .plt" Cliff White
2003-09-22 16:21 ` Tom Rini
2003-09-22 21:08 ` Cliff White
2003-09-22 21:40 ` Tom Rini
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®