From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Roman Zippel <zippel@linux-m68k.org>,
"Christian T. Steigies" <cts@debian.org>,
Linux/m68k <linux-m68k@lists.linux-m68k.org>,
Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: kernel-image-2.6.7
Date: Sun, 29 Aug 2004 13:38:02 +0200 (MEST) [thread overview]
Message-ID: <Pine.GSO.4.58.0408291324020.10903@teasel.sonytel.be> (raw)
In-Reply-To: <20040826195643.GI9539@mars.ravnborg.org>
On Thu, 26 Aug 2004, Sam Ravnborg wrote:
> Could you try to stuff in an echo line here - something like:
> echo $(LD) $(LDFLAGS) \
> $(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F) \
> -T $(@D)/.tmp_$(@F:.o=.ver); \
>
> Just to be confirmed that there is no LDFLAGS that fouls us here.
And LDFLAGS doesn't foul us here (it's just `-m m68kelf').
Just for those that are interested: after some more digging this turned out to
be a bug in the (old) binutils I'm using. It got fixed in later releases of
binutils. (Originally I thought the problem was introduced during the final
linking step of the kernel, and it showed up with whatever version of ld I
used for the final linking step).
How to reproduce:
| anakin$ cat test.s
| .version "01.01"
| .section .bss
| m68k_memory:
| .zero 32
| anakin$
The key is the `.version' keyword, without that the problem cannot be
reproduced.
| anakin$ cat test.ver
| anakin$
Yep, an empty linker script is fine. Without a linker script it cannot be
reproduced, though.
Results for dfferent versions of binutils:
| anakin$ m68k-linux-as -o test.o test.s && m68k-linux-ld -r -o test2.o test.o -T test.ver && m68k-linux-objdump -h test*.o | grep bss; m68k-linux-ld -V
| 2 .bss 00000020 00000000 00000000 00000034 2**2
| 2 .bss 00000000 00000000 00000000 00000034 2**2
^^^^^^^^
BUG! .bss becomes zero sized!
| GNU ld version 2.9.5 (with BFD 2.9.5.0.37)
| Supported emulations:
| m68kelf
| m68klinux
| anakin$
And newer binutils are fine:
| tux$ m68k-linux-as -o test.o test.s && m68k-linux-ld -r -o test2.o test.o -T test.ver && m68k-linux-objdump -h test*.o | grep bss; m68k-linux-ld -V
| 2 .bss 00000020 00000000 00000000 00000034 2**2
| 2 .bss 00000020 00000000 00000000 00000034 2**2
| GNU ld version 2.13.90.0.10 20021010
| Supported emulations:
| m68kelf
| m68klinux
| tux$
| anakin$ m68k-linux-as -o test.o test.s && m68k-linux-ld -r -o test2.o test.o -T test.ver && m68k-linux-objdump -h test*.o | grep bss; m68k-linux-ld -V
| 2 .bss 00000020 00000000 00000000 00000034 2**2
| 2 .bss 00000020 00000000 00000000 00000034 2**2
| GNU ld version 2.14.90.0.7 20031029 Debian GNU/Linux
| Supported emulations:
| m68kelf
| m68klinux
| anakin$
Conclusions: gcc 2.95.2 and binutils 2.9.5 are fine for compiling 2.6.x kernels
for m68k, but:
- You need a newer binutils for building initramfs (make usr/)
- You need a newer binutils for building modular kernels with
CONFIG_MODVERSIONS=y
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2004-08-29 11:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20040809073126.GA4669@skeeve>
[not found] ` <Pine.LNX.4.58.0408221129590.25793@anakin>
[not found] ` <Pine.LNX.4.58.0408221145090.25793@anakin>
[not found] ` <20040822101914.GA7480@skeeve>
[not found] ` <Pine.GSO.4.58.0408221224310.12638@waterleaf.sonytel.be>
[not found] ` <Pine.LNX.4.58.0408221333460.13834@anakin>
[not found] ` <4128C3F4.6070507@linux-m68k.org>
[not found] ` <Pine.GSO.4.58.0408230947190.29370@waterleaf.sonytel.be>
2004-08-25 20:50 ` kernel-image-2.6.7 Geert Uytterhoeven
2004-08-25 22:17 ` kernel-image-2.6.7 Andreas Schwab
2004-08-26 19:56 ` kernel-image-2.6.7 Sam Ravnborg
2004-08-29 11:38 ` Geert Uytterhoeven [this message]
2004-08-29 12:11 ` kernel-image-2.6.7 Sam Ravnborg
2004-08-30 8:53 ` kernel-image-2.6.7 Geert Uytterhoeven
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=Pine.GSO.4.58.0408291324020.10903@teasel.sonytel.be \
--to=geert@linux-m68k.org \
--cc=cts@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=sam@ravnborg.org \
--cc=zippel@linux-m68k.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®