diff options
author | Sean Keys <skeys@ipdatasys.com> | 2012-06-28 21:36:35 +0000 |
---|---|---|
committer | Sean Keys <skeys@ipdatasys.com> | 2012-06-28 21:36:35 +0000 |
commit | fe540416272cd7791a82793a395a4cb65f9fce16 (patch) | |
tree | 0cd41e84d87ff1cd0d031a0eb42ee150318e234d /bfd/elf32-xgate.c | |
parent | a743abeb908daaecb24afa7be5f418ce6f228439 (diff) | |
download | gdb-fe540416272cd7791a82793a395a4cb65f9fce16.zip gdb-fe540416272cd7791a82793a395a4cb65f9fce16.tar.gz gdb-fe540416272cd7791a82793a395a4cb65f9fce16.tar.bz2 |
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.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elf32-xgate.c b/bfd/elf32-xgate.c index bd5ebc4..bd62438 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; } |