aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1998-04-22 06:58:37 +0000
committerTom Tromey <tromey@redhat.com>1998-04-22 06:58:37 +0000
commit8bc8f4bc007b581031e155d4f68e39327e241d9b (patch)
tree4a6b4e5829530e8d3c7a06d849d9021899750351 /ld/ld.h
parentb65c61635f7b03c89545bd30ffb97d74be20ce1d (diff)
downloadgdb-8bc8f4bc007b581031e155d4f68e39327e241d9b.zip
gdb-8bc8f4bc007b581031e155d4f68e39327e241d9b.tar.gz
gdb-8bc8f4bc007b581031e155d4f68e39327e241d9b.tar.bz2
* Many files: Added gettext invocations around user-visible
strings. * ld.h: Added gettext-related includes and defines. * ldmain.c: Call setlocale, bindtextdomain, textdomain. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY, HAVE_LC_MESSAGES): Define. * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and po/Makefile. Use AM_PROG_LEX. (TDIRS): AC_SUBST early on, to avoid having value split when it happens to cross line 90 of the generated sed script. * Makefile.am (SUBDIRS): New macro. (POTFILES): Likewise. (po/POTFILES.in): New target. (ld_new_LDADD): Added INTLLIBS. (ld_new_DEPENDENCIES): Added INTLDEPS. * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
Diffstat (limited to 'ld/ld.h')
-rw-r--r--ld/ld.h42
1 files changed, 41 insertions, 1 deletions
diff --git a/ld/ld.h b/ld/ld.h
index 99924d5..b98b7b7 100644
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -1,5 +1,5 @@
/* ld.h -- general linker header file
- Copyright (C) 1991, 93, 94, 95, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1991, 93, 94, 95, 96, 1997, 1998 Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -21,6 +21,29 @@
#ifndef LD_H
#define LD_H
+#ifdef ENABLE_NLS
+#include <libintl.h>
+#define _(String) gettext (String)
+#ifdef gettext_noop
+#define N_(String) gettext_noop (String)
+#else
+#define N_(String) (String)
+#endif
+#else
+/* Stubs that do something close enough. */
+#define textdomain(String) (String)
+#define gettext(String) (String)
+#define dgettext(Domain,Message) (Message)
+#define dcgettext(Domain,Message,Type) (Message)
+#define bindtextdomain(Domain,Directory) (Domain)
+#define _(String) (String)
+#define N_(String) (String)
+/* In this case we don't care about the value. */
+#ifndef LC_MESSAGES
+#define LC_MESSAGES 0
+#endif
+#endif
+
/* Look in this environment name for the linker to pretend to be */
#define EMULATION_ENVIRON "LDEMULATION"
/* If in there look for the strings: */
@@ -90,6 +113,18 @@ typedef struct
/* If true, generate a cross reference report. */
boolean cref;
+
+ /* If true (which is the default), warn about mismatched input
+ files. */
+ boolean warn_mismatch;
+
+ /* Name of shared object whose symbol table should be filtered with
+ this shared object. From the --filter option. */
+ char *filter_shlib;
+
+ /* Name of shared object for whose symbol table this shared object
+ is an auxiliary filter. From the --auxiliary option. */
+ char **auxiliary_filters;
} args_type;
extern args_type command_line;
@@ -121,6 +156,10 @@ typedef struct
only). */
boolean warn_multiple_gp;
+ /* If true, warn if the starting address of an output section
+ changes due to the alignment of an input section. */
+ boolean warn_section_align;
+
boolean sort_common;
boolean text_read_only;
@@ -153,5 +192,6 @@ extern int yyparse PARAMS ((void));
extern void add_cref PARAMS ((const char *, bfd *, asection *, bfd_vma));
extern void output_cref PARAMS ((FILE *));
+extern void check_nocrossrefs PARAMS ((void));
#endif