From: Greg Ungerer <gerg@snapgear.com>
To: Tim Abbott <tabbott@ksplice.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Sam Ravnborg <sam@ravnborg.org>, Greg Ungerer <gerg@uclinux.org>
Subject: Re: [PATCH] m68knommu: Clean up linker script using new linker script macros.
Date: Mon, 07 Sep 2009 17:06:44 +1000 [thread overview]
Message-ID: <4AA4B104.7040507@snapgear.com> (raw)
In-Reply-To: <alpine.DEB.1.10.0909070135040.17860@dr-wily.mit.edu>
Hi Tim,
Tim Abbott wrote:
> On Mon, 7 Sep 2009, Greg Ungerer wrote:
>
>> This fails for me with:
>>
>> LD vmlinux
>> /usr/local/bin/m68k-uclinux-ld:arch/m68knommu/kernel/vmlinux.lds:287: syntax
>> error
>>
>> due to PAGE_SIZE evaluating to:
>>
>> . = ALIGN((1UL << (12)));
>>
>> The linker doesn't like the 'UL' suffix.
>
> Yeah, sorry, I didn't have a cross-compiler for this one to test. The fix
> is to use _AC(1,UL), like most of the other architectures (including m68k
> with an mmu) do.
Yep, that fixes that. I'll push this patch into the for-linus
branch of the m68knommu git tree.
Now, back to the original patch. Now fails with another syntax error
at the last line in this:
.init : {
. = ALIGN((1 << (12)));
__init_begin = .;
. = ALIGN((1 << (12))); .init.text : AT(ADDR(.init.text) - 0) {
_sinittext = .; *(.init.text) *(.devinit.text) *(.cpuinit.text)
*(.meminit.text) _einittext = .; }
Regards
Greg
> -Tim Abbott
>
> m68knommu: Make PAGE_SIZE available to assembly files.
>
> Signed-off-by: Tim Abbott <tabbott@ksplice.com>
> ---
> arch/m68k/include/asm/page_no.h | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/arch/m68k/include/asm/page_no.h b/arch/m68k/include/asm/page_no.h
> index 9aa3f90..1f31b06 100644
> --- a/arch/m68k/include/asm/page_no.h
> +++ b/arch/m68k/include/asm/page_no.h
> @@ -1,10 +1,12 @@
> #ifndef _M68KNOMMU_PAGE_H
> #define _M68KNOMMU_PAGE_H
>
> +#include <linux/const.h>
> +
> /* PAGE_SHIFT determines the page size */
>
> #define PAGE_SHIFT (12)
> -#define PAGE_SIZE (1UL << PAGE_SHIFT)
> +#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
> #define PAGE_MASK (~(PAGE_SIZE-1))
>
> #include <asm/setup.h>
--
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: gerg@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
next prev parent reply other threads:[~2009-09-07 7:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-07 3:10 Tim Abbott
2009-09-07 5:25 ` Greg Ungerer
2009-09-07 5:37 ` Tim Abbott
2009-09-07 7:06 ` Greg Ungerer [this message]
2009-09-07 14:21 ` Tim Abbott
2009-09-08 6:54 ` Greg Ungerer
2009-09-08 14:36 ` Tim Abbott
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=4AA4B104.7040507@snapgear.com \
--to=gerg@snapgear.com \
--cc=gerg@uclinux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
--cc=tabbott@ksplice.com \
/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
Powered by JetHome