This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: m68hc11 trampolines
- From: Jeffrey Walton <noloader at gmail dot com>
- To: James Murray <jsm at jsm-net dot demon dot co dot uk>
- Cc: binutils at sourceware dot org
- Date: Tue, 14 Feb 2012 18:51:23 -0500
- Subject: Re: m68hc11 trampolines
- References: <ADFB3A72-FDFA-4402-A6D5-CADEA94D0ED2@adacore.com> <1324230304.8652.3.camel@jsm2> <81013813-59AA-4061-8C6C-727D10F02149@adacore.com> <1324323896.8652.34.camel@jsm2> <1324389068.8652.70.camel@jsm2> <6273DF63-6E89-4A92-9FEF-52CFFE3E22C6@adacore.com> <1324392565.8652.73.camel@jsm2> <1325173546.2430.127.camel@jsm2> <1325211174.2430.145.camel@jsm2> <20120209125301.GS22267@bubble.grove.modra.org> <20120213023209.GA6199@bubble.grove.modra.org> <1329260905.21377.89.camel@jsm2>
- Reply-to: noloader at gmail dot com
On Tue, Feb 14, 2012 at 6:08 PM, James Murray <jsm@jsm-net.demon.co.uk> wrote:
> On Mon, 2012-02-13 at 13:02 +1030, Alan Modra wrote:
>> On Thu, Feb 09, 2012 at 11:23:01PM +1030, Alan Modra wrote:
>> > On Fri, Dec 30, 2011 at 02:12:54AM +0000, James Murray wrote:
>> > > What does this mean and what needs doing to get the m68hc11 trampoline
>> > > code back?
>> >
>> > Try this.
>>
>
> That's certainly more involved than the workaround I'd been using:
>
> ------------------------
>
> diff -Nuar -x '.#*' -x CVS src-old/include/elf/m68hc11.h
> src/include/elf/m68hc11.h
> --- src-old/include/elf/m68hc11.h    2011-02-01 01:09:13.000000000 +0000
> +++ src/include/elf/m68hc11.h  2012-01-02 00:33:35.000000000 +0000
> @@ -86,10 +93,10 @@
> Â/* Special values for the st_other field in the symbol table. ÂThese
> Â Âare used for 68HC12 to identify far functions (must be called with
> Â Â'call' and returns with 'rtc'). Â*/
> -#define STO_M68HC12_FAR 0x80
> +#define STO_M68HC12_FAR 0x81 // was 0x80
>
> Â/* Identify interrupt handlers. ÂThis is used by the debugger to
> Â Âcorrectly compute the stack frame. Â*/
> -#define STO_M68HC12_INTERRUPT 0x40
> +#define STO_M68HC12_INTERRUPT 0x41 // was 0x40
>
> Â#endif
Trampolines are mutually exclusive with --noexecstack. I'd rather have
a +R +W -X stack than a trampoline.
Just sayin....
Jeff