[PATCH] Cirrus EP9312 support, additional
Nick Clifton
nickc@redhat.com
Mon Feb 10 11:20:00 GMT 2003
More information about the Binutils mailing list
Mon Feb 10 11:20:00 GMT 2003
- Previous message (by thread): Fix SH TLS support
- Next message (by thread): [PATCH] Support .file and .loc on s390{,x}
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Guys,
I forgot one other part of the patch to add support for the Cirrus
Maverick co-processor. We need to set the machine number correctly
so that the simulator will be able to identify the chip.
Cheers
Nick
2003-02-10 Nick Clifton <nickc@redhat.com>
* elf32-arm.h (elf32_arm_object_p): New function.
(elf_backend_object_p): Define.
Index: bfd/elf32-arm.h
===================================================================
RCS file: /cvs/src/src/bfd/elf32-arm.h,v
retrieving revision 1.101
diff -c -3 -p -w -r1.101 elf32-arm.h
*** bfd/elf32-arm.h 10 Feb 2003 10:44:47 -0000 1.101
--- bfd/elf32-arm.h 10 Feb 2003 11:18:36 -0000
*************** static void arm_add_to_rel
*** 86,91 ****
--- 86,93 ----
#endif
static enum elf_reloc_type_class elf32_arm_reloc_type_class
PARAMS ((const Elf_Internal_Rela *));
+ static bfd_boolean elf32_arm_object_p
+ PARAMS ((bfd *));
#ifndef ELFARM_NABI_C_INCLUDED
static void record_arm_to_thumb_glue
*************** elf32_arm_relocate_section (output_bfd,
*** 2108,2113 ****
--- 2110,2129 ----
return TRUE;
}
+ /* Set the right machine number. */
+
+ static bfd_boolean
+ elf32_arm_object_p (abfd)
+ bfd *abfd;
+ {
+ /* XXX - we ought to examine a .note section here. */
+
+ if (elf_elfheader (abfd)->e_flags & EF_ARM_MAVERICK_FLOAT)
+ bfd_default_set_arch_mach (abfd, bfd_arch_arm, bfd_mach_arm_ep9312);
+
+ return TRUE;
+ }
+
/* Function to keep ARM specific flags in the ELF header. */
static bfd_boolean
elf32_arm_set_private_flags (abfd, flags)
*************** elf32_arm_reloc_type_class (rela)
*** 3666,3671 ****
--- 3681,3687 ----
#define elf_backend_size_dynamic_sections elf32_arm_size_dynamic_sections
#define elf_backend_post_process_headers elf32_arm_post_process_headers
#define elf_backend_reloc_type_class elf32_arm_reloc_type_class
+ #define elf_backend_object_p elf32_arm_object_p
#define elf_backend_can_gc_sections 1
#define elf_backend_plt_readonly 1
- Previous message (by thread): Fix SH TLS support
- Next message (by thread): [PATCH] Support .file and .loc on s390{,x}
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list