aboutsummaryrefslogtreecommitdiff
path: root/binutils/elfcomm.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/elfcomm.c')
-rw-r--r--binutils/elfcomm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/binutils/elfcomm.c b/binutils/elfcomm.c
index 5ec4690..fc47b40 100644
--- a/binutils/elfcomm.c
+++ b/binutils/elfcomm.c
@@ -34,6 +34,15 @@
extern char *program_name;
+/* FIXME: This definition really ought to be in ansidecl.h. */
+#ifndef ATTRIBUTE_WEAK
+#define ATTRIBUTE_WEAK __attribute__((weak))
+#endif
+
+/* Allow the following two functions to be overridden if desired. */
+void error (const char *, ...) ATTRIBUTE_WEAK;
+void warn (const char *, ...) ATTRIBUTE_WEAK;
+
void
error (const char *message, ...)
{