aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-04-22 21:32:58 +0000
committerIan Lance Taylor <ian@airs.com>1996-04-22 21:32:58 +0000
commit6799c638e59e6861940dd4eec6c59f6466db1f69 (patch)
tree50617a4074558f081e996288cace442e9b30276d /ld/ld.h
parentaf50cd91709c17eea54401ee327ee421b8a8b985 (diff)
downloadgdb-6799c638e59e6861940dd4eec6c59f6466db1f69.zip
gdb-6799c638e59e6861940dd4eec6c59f6466db1f69.tar.gz
gdb-6799c638e59e6861940dd4eec6c59f6466db1f69.tar.bz2
* ldlang.c (lang_size_sections): If _cooked_size is not 0, then
don't clobber it when not relaxing. * ld.h (ld_config_type): Remove traditional_format field. * ldmain.c (main): Use link_info.traditional_format rather than config.traditional_format. * ldlang.c (ldlang_open_output): Likewise. * lexsup.c (parse_args): Likewise. * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise. * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
Diffstat (limited to 'ld/ld.h')
-rw-r--r--ld/ld.h31
1 files changed, 27 insertions, 4 deletions
diff --git a/ld/ld.h b/ld/ld.h
index 048734c..c776de6 100644
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -1,6 +1,6 @@
/* ld.h -
- Copyright (C) 1991, 1993 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -21,6 +21,17 @@
#ifndef LD_H
#define LD_H
+/* Look in this environment name for the linker to pretend to be */
+#define EMULATION_ENVIRON "LDEMULATION"
+/* If in there look for the strings: */
+
+/* Look in this variable for a target format */
+#define TARGET_ENVIRON "GNUTARGET"
+
+/* Input sections which are put in a section of this name are actually
+ discarded. */
+#define DISCARD_SECTION_NAME "/DISCARD/"
+
/* Extra information we hold on sections */
typedef struct user_section_struct
{
@@ -59,6 +70,10 @@ typedef struct
/* Runtime library search path from the -rpath argument. */
char *rpath;
+ /* Link time runtime library search path from the -rpath-link
+ argument. */
+ char *rpath_link;
+
/* Big or little endian as set on command line. */
enum { ENDIAN_UNSET = 0, ENDIAN_BIG, ENDIAN_LITTLE } endian;
@@ -81,20 +96,25 @@ typedef struct
boolean magic_demand_paged;
boolean make_executable;
- /* If true, request BFD to use the traditional format. */
- boolean traditional_format;
-
/* If true, doing a dynamic link. */
boolean dynamic_link;
+ /* If true, build constructors. */
boolean build_constructors;
+ /* If true, warn about any constructors. */
+ boolean warn_constructors;
+
/* If true, warn about merging common symbols with others. */
boolean warn_common;
/* If true, only warn once about a particular undefined symbol. */
boolean warn_once;
+ /* If true, warn if multiple global-pointers are needed (Alpha
+ only). */
+ boolean warn_multiple_gp;
+
boolean sort_common;
boolean text_read_only;
@@ -120,6 +140,9 @@ typedef enum
extern boolean had_script;
extern boolean force_make_executable;
+/* Non-zero if we are processing a --defsym from the command line. */
+extern int parsing_defsym;
+
extern int yyparse PARAMS ((void));
#endif