mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
fix dll table lookup code for Motorola
This commit is contained in:
@ -454,16 +454,20 @@ static const unsigned char thumb_jtab[] =
|
|||||||
|
|
||||||
static const unsigned char mcore_be_jtab[] =
|
static const unsigned char mcore_be_jtab[] =
|
||||||
{
|
{
|
||||||
0x70, 0x01, /* jmpi 1 */
|
0x71, 0x02, /* lrw r1,2 */
|
||||||
0x12, 0x11, /* nop */
|
0x81, 0x01, /* ld.w r1,(r1,0) */
|
||||||
0x00, 0x00, 0x00, 0x00 /* <address> */
|
0x00, 0xC1, /* jmp r1 */
|
||||||
|
0x12, 0x00, /* nop */
|
||||||
|
0x00, 0x00, 0x00, 0x00 /* <address> */
|
||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned char mcore_le_jtab[] =
|
static const unsigned char mcore_le_jtab[] =
|
||||||
{
|
{
|
||||||
0x01, 0x70, /* jmpi 1 */
|
0x02, 0x71, /* lrw r1,2 */
|
||||||
0x11, 0x12, /* nop */
|
0x01, 0x81, /* ld.w r1,(r1,0) */
|
||||||
0x00, 0x00, 0x00, 0x00 /* <address> */
|
0xC1, 0x00, /* jmp r1 */
|
||||||
|
0x00, 0x12, /* nop */
|
||||||
|
0x00, 0x00, 0x00, 0x00 /* <address> */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* This is the glue sequence for PowerPC PE. There is a */
|
/* This is the glue sequence for PowerPC PE. There is a */
|
||||||
@ -558,37 +562,37 @@ mtable[] =
|
|||||||
{
|
{
|
||||||
#define MMCORE_BE 5
|
#define MMCORE_BE 5
|
||||||
"mcore-be", ".byte", ".short", ".long", ".asciz", "//",
|
"mcore-be", ".byte", ".short", ".long", ".asciz", "//",
|
||||||
"jmpi\t1\n\tnop\n\t.long",
|
"lrw r1,[1f]\n\tld.w r1,(r1,0)\n\tjmp r1\n\tnop\n1:.long",
|
||||||
".global", ".space", ".align\t2",".align\t4", "",
|
".global", ".space", ".align\t2",".align\t4", "",
|
||||||
"pe-mcore-big", bfd_arch_mcore,
|
"pe-mcore-big", bfd_arch_mcore,
|
||||||
mcore_be_jtab, sizeof (mcore_be_jtab), 4
|
mcore_be_jtab, sizeof (mcore_be_jtab), 8
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
#define MMCORE_LE 6
|
#define MMCORE_LE 6
|
||||||
"mcore-le", ".byte", ".short", ".long", ".asciz", "//",
|
"mcore-le", ".byte", ".short", ".long", ".asciz", "//",
|
||||||
"jmpi\t1\n\tnop\n\t.long",
|
"lrw r1,[1f]\n\tld.w r1,(r1,0)\n\tjmp r1\n\tnop\n1:.long",
|
||||||
".global", ".space", ".align\t2",".align\t4", "-EL",
|
".global", ".space", ".align\t2",".align\t4", "-EL",
|
||||||
"pe-mcore-little", bfd_arch_mcore,
|
"pe-mcore-little", bfd_arch_mcore,
|
||||||
mcore_le_jtab, sizeof (mcore_le_jtab), 4
|
mcore_le_jtab, sizeof (mcore_le_jtab), 8
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
#define MMCORE_ELF 7
|
#define MMCORE_ELF 7
|
||||||
"mcore-elf-be", ".byte", ".short", ".long", ".asciz", "//",
|
"mcore-elf-be", ".byte", ".short", ".long", ".asciz", "//",
|
||||||
"jmpi\t1\n\tnop\n\t.long",
|
"lrw r1,[1f]\n\tld.w r1,(r1,0)\n\tjmp r1\n\tnop\n1:.long",
|
||||||
".global", ".space", ".align\t2",".align\t4", "",
|
".global", ".space", ".align\t2",".align\t4", "",
|
||||||
"elf32-mcore-big", bfd_arch_mcore,
|
"elf32-mcore-big", bfd_arch_mcore,
|
||||||
mcore_be_jtab, sizeof (mcore_be_jtab), 4
|
mcore_be_jtab, sizeof (mcore_be_jtab), 8
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
#define MMCORE_ELF_LE 8
|
#define MMCORE_ELF_LE 8
|
||||||
"mcore-elf-le", ".byte", ".short", ".long", ".asciz", "//",
|
"mcore-elf-le", ".byte", ".short", ".long", ".asciz", "//",
|
||||||
"jmpi\t1\n\tnop\n\t.long",
|
"lrw r1,[1f]\n\tld.w r1,(r1,0)\n\tjmp r1\n\tnop\n1:.long",
|
||||||
".global", ".space", ".align\t2",".align\t4", "-EL",
|
".global", ".space", ".align\t2",".align\t4", "-EL",
|
||||||
"elf32-mcore-little", bfd_arch_mcore,
|
"elf32-mcore-little", bfd_arch_mcore,
|
||||||
mcore_le_jtab, sizeof (mcore_le_jtab), 4
|
mcore_le_jtab, sizeof (mcore_le_jtab), 8
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user