aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-12 16:59:49 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-12 16:59:49 +0000
commit45455cddda802f883f8ea8f341d68ccbb8c4735b (patch)
tree55b59372baf8b1095370550f139bcc3a2aacb9a9 /ld/ld.h
parentbe4514d38dd8c05e99b7a58a182913d0b9f09e80 (diff)
downloadgdb-45455cddda802f883f8ea8f341d68ccbb8c4735b.zip
gdb-45455cddda802f883f8ea8f341d68ccbb8c4735b.tar.gz
gdb-45455cddda802f883f8ea8f341d68ccbb8c4735b.tar.bz2
1999-09-12 Donn Terry <donn@interix.com>
* ld.h (ld_abort): Declare. (abort): Define. * ldmisc.c (ld_abort): Define.
Diffstat (limited to 'ld/ld.h')
-rw-r--r--ld/ld.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/ld.h b/ld/ld.h
index bca7462..91565a8 100644
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -223,4 +223,15 @@ extern void add_cref PARAMS ((const char *, bfd *, asection *, bfd_vma));
extern void output_cref PARAMS ((FILE *));
extern void check_nocrossrefs PARAMS ((void));
+extern void ld_abort PARAMS ((const char *, int, const char *))
+ ATTRIBUTE_NORETURN;
+
+/* If gcc, we can give a function name, too. */
+#if !defined (__GNUC__) || __GNUC_MINOR__ <= 5
+#define __PRETTY_FUNCTION__ ((char*) NULL)
+#endif
+
+#undef abort
+#define abort() ld_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__)
+
#endif