/* m68hc11 & m68hc12 ELF support for BFD.
Copyright (C) 1999-2024 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
/* These are GNU extensions to enable C++ vtable garbage collection. */
RELOC_NUMBER (R_M68HC11_GNU_VTINHERIT, 9)
RELOC_NUMBER (R_M68HC11_GNU_VTENTRY, 10)
/* True if we can merge machines. A generic HC12 can work on any proc
but once we have specific code, merge is not possible. */
#define EF_M68HC11_CAN_MERGE_MACH(mach1, mach2) \
((EF_M68HC11_MACH (mach1) == EF_M68HC11_MACH (mach2)) \
|| (EF_M68HC11_MACH (mach1) == EF_M68HC11_GENERIC) \
|| (EF_M68HC11_MACH (mach2) == EF_M68HC11_GENERIC))
/* 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
/* Identify interrupt handlers. This is used by the debugger to
correctly compute the stack frame. */
#define STO_M68HC12_INTERRUPT 0x40