aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/obj-elf.h')
-rw-r--r--gas/config/obj-elf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gas/config/obj-elf.h b/gas/config/obj-elf.h
index 0fa2ba6..641a373 100644
--- a/gas/config/obj-elf.h
+++ b/gas/config/obj-elf.h
@@ -134,6 +134,13 @@ int elf_s_get_other PARAMS ((symbolS *));
extern asection *gdb_section;
+#ifndef obj_sec_set_private_data
+#define obj_sec_set_private_data(B, S) \
+ if (! BFD_SEND ((B), _new_section_hook, ((B), (S)))) \
+ as_fatal (_("can't allocate ELF private section data: %s"), \
+ bfd_errmsg (bfd_get_error ()))
+#endif
+
#ifndef obj_frob_file
#define obj_frob_file elf_frob_file
#endif