* 2.6.0-test5 "incorrect section attributes for .plt"
@ 2003-09-19 22:58 Cliff White
2003-09-20 12:23 ` Michel Dänzer
0 siblings, 1 reply; 6+ messages in thread
From: Cliff White @ 2003-09-19 22:58 UTC (permalink / raw)
To: linuxppc-dev
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, please cc me as i am not subscribed to this list.
cliffw
cliffw@osdl.org
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: 2.6.0-test5 "incorrect section attributes for .plt" 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 0 siblings, 1 reply; 6+ messages in thread From: Michel Dänzer @ 2003-09-20 12:23 UTC (permalink / raw) To: Cliff White; +Cc: linuxppc-dev 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 . -- Earthling Michel Dänzer \ Debian (powerpc), XFree86 and DRI developer Software libre enthusiast \ http://svcs.affero.net/rm.php?r=daenzer ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 2.6.0-test5 "incorrect section attributes for .plt" 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 0 siblings, 2 replies; 6+ messages in thread From: Tom Rini @ 2003-09-22 16:45 UTC (permalink / raw) To: Michel D?nzer; +Cc: Cliff White, linuxppc-dev, 211668 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. -- Tom Rini http://gate.crashing.org/~trini/ ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug#211668: 2.6.0-test5 "incorrect section attributes for .plt" 2003-09-22 16:45 ` Tom Rini @ 2003-09-22 16:54 ` James Troup 2003-09-22 17:56 ` Cliff White 1 sibling, 0 replies; 6+ messages in thread From: James Troup @ 2003-09-22 16:54 UTC (permalink / raw) To: Tom Rini; +Cc: 211668, Michel D?nzer, Cliff White, linuxppc-dev Tom Rini <trini@kernel.crashing.org> writes: > 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) It doesn't; but please see Alan's response[1]. I'm compiling a new binutils with this patch ATM... -- James [1] http://sources.redhat.com/ml/binutils/2003-09/msg00381.html ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 2.6.0-test5 "incorrect section attributes for .plt" 2003-09-22 16:45 ` Tom Rini 2003-09-22 16:54 ` Bug#211668: " James Troup @ 2003-09-22 17:56 ` Cliff White 2003-09-22 18:05 ` Tom Rini 1 sibling, 1 reply; 6+ messages in thread From: Cliff White @ 2003-09-22 17:56 UTC (permalink / raw) To: Tom Rini; +Cc: Michel D?nzer, linuxppc-dev, 211668 > 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/ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 2.6.0-test5 "incorrect section attributes for .plt" 2003-09-22 17:56 ` Cliff White @ 2003-09-22 18:05 ` Tom Rini 0 siblings, 0 replies; 6+ messages in thread From: Tom Rini @ 2003-09-22 18:05 UTC (permalink / raw) To: Cliff White; +Cc: Michel D?nzer, linuxppc-dev, 211668 On Mon, Sep 22, 2003 at 10:56:30AM -0700, Cliff White wrote: > > 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 Don't bother, as has been pointed out it was a binutils bug. If it ain't broke, don't fix it :) -- Tom Rini http://gate.crashing.org/~trini/ ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-09-22 18:05 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2003-09-22 18:05 ` Tom Rini
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).