aboutsummaryrefslogtreecommitdiff
path: root/ld/ldver.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldver.c')
-rw-r--r--ld/ldver.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/ld/ldver.c b/ld/ldver.c
index b2df277..08cb6f7 100644
--- a/ld/ldver.c
+++ b/ld/ldver.c
@@ -27,9 +27,25 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "sysdep.h"
#include "ldver.h"
+#include "ldemul.h"
void
-ldversion()
+DEFUN(ldversion,(noisy),
+ int noisy)
+
{
- fprintf(stdout,"gld version BFD 0.18\n");
+ fprintf(stdout,"ld version 1.96 (with BFD %s)\n", BFD_VERSION);
+
+ if (noisy)
+ {
+ extern ld_emulation_xfer_type *ld_emulations[];
+ ld_emulation_xfer_type **ptr = ld_emulations;
+
+ printf(" Supported emulations:\n");
+ while (*ptr)
+ {
+ printf(" %s \n", (*ptr)->emulation_name);
+ ptr++;
+ }
+ }
}