This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: m68hc11 trampolines


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]