aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-multi.h
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/config/obj-multi.h
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/config/obj-multi.h')
-rw-r--r--gas/config/obj-multi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/obj-multi.h b/gas/config/obj-multi.h
index fe3c3e7..b78e836 100644
--- a/gas/config/obj-multi.h
+++ b/gas/config/obj-multi.h
@@ -81,6 +81,11 @@
? (*this_format->symbol_new_hook) (S) \
: (void) 0)
+#define obj_symbol_clone_hook(N, O) \
+ (this_format->symbol_clone_hook \
+ ? (*this_format->symbol_clone_hook) (N, O) \
+ : (void) 0)
+
#define obj_sec_sym_ok_for_reloc(A) \
(this_format->sec_sym_ok_for_reloc \
? (*this_format->sec_sym_ok_for_reloc) (A) \