daily update
[deliverable/binutils-gdb.git] / bfd / elf32-xgate.c
index bd5ebc476d4fe843c1817e6769a8b0fdce769fa7..2169c569b44e4a76f5388d9cabbe6772fdadeb78 100644 (file)
@@ -106,8 +106,8 @@ static reloc_howto_type elf_xgate_howto_table[] =
         bfd_elf_generic_reloc, /* special_function */
         "R_XGATE_16", /* name */
         FALSE, /* partial_inplace */
-        0x00ff, /* src_mask */
-        0x00ff, /* dst_mask */
+        0xffff, /* src_mask */
+        0xffff, /* dst_mask */
         FALSE), /* pcrel_offset */
 
   /* A 32 bit absolute relocation.  This one is never used for the
@@ -529,12 +529,15 @@ stub_hash_newfunc (struct bfd_hash_entry *entry,
 bfd_boolean
 elf32_xgate_add_symbol_hook (bfd *abfd ATTRIBUTE_UNUSED,
                             struct bfd_link_info *info ATTRIBUTE_UNUSED,
-                            Elf_Internal_Sym *sym ATTRIBUTE_UNUSED,
+                            Elf_Internal_Sym *sym,
                             const char **namep ATTRIBUTE_UNUSED,
                             flagword *flagsp ATTRIBUTE_UNUSED,
                             asection **secp ATTRIBUTE_UNUSED,
                             bfd_vma *valp ATTRIBUTE_UNUSED)
 {
+  /* For some reason the st_target_internal value is not retained
+     after xgate_frob_symbol is called, hence this temp hack.  */
+  sym->st_target_internal = 1;
   return TRUE;
 }
 
This page took 0.023384 seconds and 4 git commands to generate.