mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-12 14:37:43 +00:00
PR sim/15286
* elf32-arm.c (bfd_arm_get_mach_from_attributes): Identify XScale, iWMMXt and iWMMXt2 processors from attributes.
This commit is contained in:
parent
ebacd51e16
commit
088ca6c1e3
@ -1,3 +1,9 @@
|
||||
2013-03-21 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR sim/15286
|
||||
* elf32-arm.c (bfd_arm_get_mach_from_attributes): Identify XScale,
|
||||
iWMMXt and iWMMXt2 processors from attributes.
|
||||
|
||||
2013-03-20 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* elflink.c (_bfd_elf_make_dynamic_reloc_section): Override
|
||||
|
@ -10958,6 +10958,20 @@ bfd_arm_get_mach_from_attributes (bfd * abfd)
|
||||
|
||||
if (strcmp (name, "IWMMXT") == 0)
|
||||
return bfd_mach_arm_iWMMXt;
|
||||
|
||||
if (strcmp (name, "XSCALE") == 0)
|
||||
{
|
||||
int wmmx;
|
||||
|
||||
BFD_ASSERT (Tag_WMMX_arch < NUM_KNOWN_OBJ_ATTRIBUTES);
|
||||
wmmx = elf_known_obj_attributes (abfd) [OBJ_ATTR_PROC][Tag_WMMX_arch].i;
|
||||
switch (wmmx)
|
||||
{
|
||||
case 1: return bfd_mach_arm_iWMMXt;
|
||||
case 2: return bfd_mach_arm_iWMMXt2;
|
||||
default: return bfd_mach_arm_XScale;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return bfd_mach_arm_5TE;
|
||||
|
Loading…
Reference in New Issue
Block a user