This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [M68K] Fix relocation overflow on ColdFire
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: Maxim Kuvyrkov <maxim at codesourcery dot com>, libc-ports at sourceware dot org
- Date: Wed, 25 Aug 2010 23:12:01 +0200
- Subject: Re: [M68K] Fix relocation overflow on ColdFire
- References: <4C45D6F4.2070404@codesourcery.com> <m24ofcq2he.fsf@igel.home> <4C7555C5.7070301@codesourcery.com> <4C755BF9.30507@twiddle.net>
Richard Henderson <rth@twiddle.net> writes:
> On 08/25/2010 10:41 AM, Maxim Kuvyrkov wrote:
>> #define SYSCALL_ERROR_LOAD_GOT(reg) \
>> - move.l #_GLOBAL_OFFSET_TABLE_@GOTPC, reg; \
>> + move.l ##_GLOBAL_OFFSET_TABLE_@GOTPC, reg; \
>
> Both of these are wrong. # is a stringification operator,
> and ## is a concatenation operator.
The m68k assembler supports & as an alternate immediate marker. I've
pushed a change to that effect.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."