[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <4A92557002000078000113DD@vpn.id2.novell.com>
Date: Mon, 24 Aug 2009 07:55:12 +0100
From: "Jan Beulich" <JBeulich@...ell.com>
To: "H. Peter Anvin" <hpa@...or.com>
Cc: <mingo@...e.hu>, <tglx@...utronix.de>, <sam@...nborg.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] x86: fix build with older binutils and
consolidate linker script
>>> "H. Peter Anvin" <hpa@...or.com> 21.08.09 22:23 >>>
>On 08/18/2009 08:51 AM, Jan Beulich wrote:
>>
>> #define VSYSCALL_ADDR (-10*1024*1024)
>> -#define VSYSCALL_PHYS_ADDR ((LOADADDR(.data.read_mostly) + \
>> - SIZEOF(.data.read_mostly) + 4095) & ~(4095))
>> -#define VSYSCALL_VIRT_ADDR ((ADDR(.data.read_mostly) + \
>> - SIZEOF(.data.read_mostly) + 4095) & ~(4095))
>> +#define VSYSCALL_PHYS_ADDR ((LOADADDR(.data) + SIZEOF(.data) + \
>> + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1))
>> +#define VSYSCALL_VIRT_ADDR ((ADDR(.data) + SIZEOF(.data) + \
>> + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1))
>>
>
>I'm missing something with this chunk... could you please explain?
There are two changes here: One is the adjustment to properly use the
new preceding section's name, and the other is to replace the hard coded
4095 by PAGE_SIZE-1.
Jan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists