summaryrefslogtreecommitdiff
path: root/bfd/elf32-xgate.c
diff options
context:
space:
mode:
authorSean Keys <skeys@ipdatasys.com>2012-06-28 21:36:35 +0000
committerSean Keys <skeys@ipdatasys.com>2012-06-28 21:36:35 +0000
commitfe540416272cd7791a82793a395a4cb65f9fce16 (patch)
tree0cd41e84d87ff1cd0d031a0eb42ee150318e234d /bfd/elf32-xgate.c
parenta743abeb908daaecb24afa7be5f418ce6f228439 (diff)
downloadbinutils-gdb-fe540416272cd7791a82793a395a4cb65f9fce16.tar.gz
gas/config/
* tc-xgate.h: Defined tc_frob_symbol. * tc-xgate.c (xgate_frob_symbol): Wrote new function to mark symbols as being XGATE by setting st_target_internal value. bfd/ * elf32-xgate.c (elf32_xgate_add_symbol_hook): Added a temp patch that forces st_target_internal to equal 1, since tc_frob_symbol seems to need adjusting.
Diffstat (limited to 'bfd/elf32-xgate.c')
-rw-r--r--bfd/elf32-xgate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elf32-xgate.c b/bfd/elf32-xgate.c
index bd5ebc476d4..bd62438eff4 100644
--- a/bfd/elf32-xgate.c
+++ b/bfd/elf32-xgate.c
@@ -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;
}