aboutsummaryrefslogtreecommitdiff
path: root/gas/ecoff.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-11-02 11:49:48 +0000
committerAlan Modra <amodra@gmail.com>2009-11-02 11:49:48 +0000
commit4cae74aaa293398e6e3b8519de184a058f5b62c4 (patch)
treec728975e1c162b5f30549476c7ae9fb1d1f7df0e /gas/ecoff.c
parent3703bab932d537a9a7136e0d4cf1985bc2249259 (diff)
downloadgdb-4cae74aaa293398e6e3b8519de184a058f5b62c4.zip
gdb-4cae74aaa293398e6e3b8519de184a058f5b62c4.tar.gz
gdb-4cae74aaa293398e6e3b8519de184a058f5b62c4.tar.bz2
* ecoff.c (ecoff_symbol_clone_hook): New function.
* ecoff.h (ecoff_symbol_clone_hook): Declare. * obj.h (struct format_ops): Add symbol_clone_hook. * config/obj-aout.c (aout_format_ops): Init new field. * config/obj-coff.c (coff_format_ops): Likewise. * config/obj-ecoff.c (ecoff_format_ops): Likewise. * config/obj-elf.c (elf_format_ops): Likewise. * config/obj-ecoff.h (obj_symbol_clone_hook): Define. * config/obj-multi.h (obj_symbol_clone_hook): Define.
Diffstat (limited to 'gas/ecoff.c')
-rw-r--r--gas/ecoff.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/ecoff.c b/gas/ecoff.c
index a3413ca..f4e22ac 100644
--- a/gas/ecoff.c
+++ b/gas/ecoff.c
@@ -1506,6 +1506,16 @@ ecoff_symbol_new_hook (symbolS *symbolP)
obj->ecoff_symbol = NULL;
obj->ecoff_extern_size = 0;
}
+
+void
+ecoff_symbol_clone_hook (symbolS *newsymP, symbolS *orgsymP)
+{
+ OBJ_SYMFIELD_TYPE *n, *o;
+
+ n = symbol_get_obj (newsymP);
+ o = symbol_get_obj (orgsymP);
+ memcpy (n, o, sizeof *n);
+}
/* Add a page to a varray object. */