/* Demangler for GNU C++
Copyright 1989, 1991 Free Software Foundation, Inc.
- written by James Clark (jjc@@jclark.uucp)
+ written by James Clark (jjc@jclark.uucp)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
available memory. */
/* define this if names don't start with _ */
-#define nounderscore 1
-#include <bfd.h>
+/* #define nounderscore 1 */
+#include <ansidecl.h>
#include <sysdep.h>
+
#define xmalloc ldmalloc
-#define xrealloc realloc
+#define xrealloc ldrealloc
+
+#if 0
+/* GDB-specific, FIXME. */
+#include "defs.h"
+#endif
+
+
+
+#define PARAMS(x) EXFUN(,x)
/* This is '$' on systems where the assembler can deal with that.
Where the assembler can't, it's '.' (but on many systems '.' is
char *e; /* pointer after end of allocated space */
} string;
-#if _STDC_ == 1
-#define PARAMS(x) x
-#else
-#define PARAMS(x) ()
-#endif
-
static void
string_need PARAMS ((string *, int));
{
int i, len = strlen (opname);
+ if (arg_mode != 0 && arg_mode != 1)
+ einfo ("%P%F: invalid arg_mode");
for (i = 0; i < sizeof (optable)/sizeof (optable[0]); i++)
{
#include "sysdep.h"
#include "../bfd/seclet.h"
#include "ld.h"
+#include "ldmisc.h"
#define MAX_ERRORS_IN_A_ROW 5
static void
DEFUN(ld_undefined_symbol,(relent, seclet),
CONST arelent *relent AND
- bfd_seclet_type *seclet)
+ CONST bfd_seclet_type *seclet)
{
asymbol *s = *(relent->sym_ptr_ptr);
static asymbol *error_symbol;
void
DEFUN_VOID(init_bfd_error_vector)
{
-bfd_error_vector.undefined_symbol = ld_undefined_symbol;
-bfd_error_vector.reloc_value_truncated = ld_reloc_truncated;
-
+ bfd_error_vector.undefined_symbol = ld_undefined_symbol;
+ bfd_error_vector.reloc_value_truncated = ld_reloc_truncated;
}
--- /dev/null
+void EXFUN(write_relaxnorel,( bfd *output_bfd));
+boolean EXFUN(relax_section,( lang_statement_union_type **this_ptr));
+
+