aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-03-21 15:43:38 +0000
committerNick Clifton <nickc@redhat.com>2005-03-21 15:43:38 +0000
commit2dc773a026c27ec4f200dc7604778ca59a7fd6ca (patch)
tree697288519d13667ee930fe130d32b7095c5a6ce5
parent1a66a0171c77ebc0411841a6e654bbf8c8073d03 (diff)
downloadgdb-2dc773a026c27ec4f200dc7604778ca59a7fd6ca.zip
gdb-2dc773a026c27ec4f200dc7604778ca59a7fd6ca.tar.gz
gdb-2dc773a026c27ec4f200dc7604778ca59a7fd6ca.tar.bz2
(coff_link_hash_entry): Only define for non WINCE targets.
(t2a1_bx_pc_insn): Likewise. (t2a2_noop_insn): Likewise. (t2a3_b_insn): Likewise. (t2a1_push_insn): Likewise. (t2a2_ldr_insn): Likewise. (t2a3_mov_insn): Likewise. (t2a4_bx_insn): Likewise. (t2a5_pop_insn): Likewise. (t2a6_bx_insn): Likewise. (coff_arm_relocate_section): Only declare the high_address variable for non WINCE targets.
-rw-r--r--bfd/ChangeLog16
-rw-r--r--bfd/coff-arm.c6
2 files changed, 22 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fd44c07..29cd53f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,19 @@
+2005-03-21 Nick Clifton <nickc@redhat.com>
+
+ * coff-arm.c (coff_link_hash_entry): Only define for non WINCE
+ targets.
+ (t2a1_bx_pc_insn): Likewise.
+ (t2a2_noop_insn): Likewise.
+ (t2a3_b_insn): Likewise.
+ (t2a1_push_insn): Likewise.
+ (t2a2_ldr_insn): Likewise.
+ (t2a3_mov_insn): Likewise.
+ (t2a4_bx_insn): Likewise.
+ (t2a5_pop_insn): Likewise.
+ (t2a6_bx_insn): Likewise.
+ (coff_arm_relocate_section): Only declare the high_address
+ variable for non WINCE targets.
+
2005-03-22 Alan Modra <amodra@bigpond.net.au>
* elf32-ppc.c (ppc_elf_add_symbol_hook): Make htab->sbss
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index c336285..460292f 100644
--- a/bfd/coff-arm.c
+++ b/bfd/coff-arm.c
@@ -113,8 +113,10 @@ static const struct reloc_howto_struct * coff_arm_reloc_type_lookup
PARAMS ((bfd *, bfd_reloc_code_real_type));
static struct bfd_link_hash_table * coff_arm_link_hash_table_create
PARAMS ((bfd *));
+#ifndef ARM_WINCE
static struct coff_link_hash_entry * find_thumb_glue
PARAMS ((struct bfd_link_info *, const char *, bfd *));
+#endif
static struct coff_link_hash_entry * find_arm_glue
PARAMS ((struct bfd_link_info *, const char *, bfd *));
#ifndef COFF_IMAGE_WITH_PE
@@ -1136,6 +1138,7 @@ static const insn32 a2t3_func_addr_insn = 0x00000001;
*/
#define THUMB2ARM_GLUE_SIZE (globals->support_old_code ? 20 : 8)
+#ifndef ARM_WINCE
static const insn16 t2a1_bx_pc_insn = 0x4778;
static const insn16 t2a2_noop_insn = 0x46c0;
static const insn32 t2a3_b_insn = 0xea000000;
@@ -1146,6 +1149,7 @@ static const insn16 t2a3_mov_insn = 0x46fe;
static const insn16 t2a4_bx_insn = 0x4730;
static const insn32 t2a5_pop_insn = 0xe8bd4040;
static const insn32 t2a6_bx_insn = 0xe12fff1e;
+#endif
/* TODO:
We should really create new local (static) symbols in destination
@@ -1202,7 +1206,9 @@ coff_arm_relocate_section (output_bfd, info, input_bfd, input_section,
{
struct internal_reloc * rel;
struct internal_reloc * relend;
+#ifndef ARM_WINCE
bfd_vma high_address = bfd_get_section_limit (input_bfd, input_section);
+#endif
rel = relocs;
relend = rel + input_section->reloc_count;