aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-03-22 23:02:38 +0000
committerSteve Chamberlain <steve@cygnus>1991-03-22 23:02:38 +0000
commit8cb5eb316c35daaede8a2b72ae994c7b2df152d9 (patch)
tree92c72d8c2214f5f55ed178bdb4b54f30b9a517c7
parent139d5bfdf95106376319a6635bbfe412a34e1f09 (diff)
downloadgdb-8cb5eb316c35daaede8a2b72ae994c7b2df152d9.zip
gdb-8cb5eb316c35daaede8a2b72ae994c7b2df152d9.tar.gz
gdb-8cb5eb316c35daaede8a2b72ae994c7b2df152d9.tar.bz2
Brought up to sync with Intel again.
-rwxr-xr-xld/ld-emul.c7
-rwxr-xr-xld/ld-gld.c7
-rwxr-xr-xld/ld-gld960.c7
-rwxr-xr-xld/ld-lnk960.c8
-rw-r--r--ld/ldlang.c30
-rw-r--r--ld/ldmain.c6
-rw-r--r--ld/ldmisc.c4
-rw-r--r--ld/ldsym.c7
8 files changed, 44 insertions, 32 deletions
diff --git a/ld/ld-emul.c b/ld/ld-emul.c
index c644a7c..fed96f3 100755
--- a/ld/ld-emul.c
+++ b/ld/ld-emul.c
@@ -22,12 +22,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
$Id$
$Log$
- Revision 1.1.1.1 1991/03/21 21:28:20 gumby
- Back from Intel with Steve
+ Revision 1.2 1991/03/22 23:02:28 steve
+ Brought up to sync with Intel again.
- * Revision 1.1 1991/03/21 21:28:19 gumby
- * Initial revision
- *
* Revision 1.1 1991/03/13 00:48:09 chrisb
* Initial revision
*
diff --git a/ld/ld-gld.c b/ld/ld-gld.c
index 34d7fd6..00d4493 100755
--- a/ld/ld-gld.c
+++ b/ld/ld-gld.c
@@ -20,11 +20,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
* $Id$
*
* $Log$
- * Revision 1.1.1.1 1991/03/21 21:28:25 gumby
- * Back from Intel with Steve
- *
- * Revision 1.1 1991/03/21 21:28:24 gumby
- * Initial revision
+ * Revision 1.2 1991/03/22 23:02:29 steve
+ * Brought up to sync with Intel again.
*
* Revision 1.2 1991/03/15 18:45:55 rich
* foo
diff --git a/ld/ld-gld960.c b/ld/ld-gld960.c
index d2ac6bc..0577fa4 100755
--- a/ld/ld-gld960.c
+++ b/ld/ld-gld960.c
@@ -20,12 +20,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
$Id$
$Log$
- Revision 1.1.1.1 1991/03/21 21:28:27 gumby
- Back from Intel with Steve
+ Revision 1.2 1991/03/22 23:02:30 steve
+ Brought up to sync with Intel again.
- * Revision 1.1 1991/03/21 21:28:26 gumby
- * Initial revision
- *
* Revision 1.3 1991/03/16 22:27:24 rich
* fish
*
diff --git a/ld/ld-lnk960.c b/ld/ld-lnk960.c
index 173bbdf..2e012c8 100755
--- a/ld/ld-lnk960.c
+++ b/ld/ld-lnk960.c
@@ -20,12 +20,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
$Id$
$Log$
- Revision 1.1.1.1 1991/03/21 21:28:29 gumby
- Back from Intel with Steve
+ Revision 1.2 1991/03/22 23:02:31 steve
+ Brought up to sync with Intel again.
- * Revision 1.1 1991/03/21 21:28:28 gumby
- * Initial revision
- *
* Revision 1.2 1991/03/15 18:45:55 rich
* foo
*
@@ -204,6 +201,7 @@ lnk960_after_allocation()
{
lang_abs_symbol_at_end_of(".text","_etext");
lang_abs_symbol_at_end_of(".data","_edata");
+ lang_abs_symbol_at_beginning_of(".bss","_bss_start");
lang_abs_symbol_at_end_of(".bss","_end");
}
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 1fccbc2..0df171f 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -19,8 +19,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* $Id$
*
* $Log$
- * Revision 1.1 1991/03/21 21:28:45 gumby
- * Initial revision
+ * Revision 1.2 1991/03/22 23:02:34 steve
+ * Brought up to sync with Intel again.
*
* Revision 1.3 1991/03/16 22:19:21 rich
* pop
@@ -731,8 +731,13 @@ char *target;
static void
lang_reasonable_defaults()
{
+
+ lang_output_section_statement_lookup(".text");
+ lang_output_section_statement_lookup(".data");
+
default_common_section =
lang_output_section_statement_lookup(".bss");
+
if (placed_commons == false) {
lang_wild_statement_type *new =
new_stat(lang_wild_statement,
@@ -741,6 +746,7 @@ lang_reasonable_defaults()
new->filename = (char *)NULL;
lang_list_init(&new->children);
}
+
}
static void lang()
@@ -2152,6 +2158,26 @@ char *memspec;
}
void
+lang_abs_symbol_at_beginning_of(section, name)
+char *section;
+char *name;
+{
+ extern bfd *output_bfd;
+ extern asymbol *create_symbol();
+ asection *s = bfd_get_section_by_name(output_bfd, section);
+ asymbol *def = create_symbol(name,
+ BSF_GLOBAL | BSF_EXPORT |
+ BSF_ABSOLUTE,
+ (asection *)NULL);
+ if (s != (asection *)NULL) {
+ def->value = s->vma;
+ }
+ else {
+ def->value = 0;
+ }
+}
+
+void
lang_abs_symbol_at_end_of(section, name)
char *section;
char *name;
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 3f9db08..545dcf2 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -22,8 +22,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
* $Id$
*
* $Log$
- * Revision 1.1 1991/03/21 21:28:52 gumby
- * Initial revision
+ * Revision 1.2 1991/03/22 23:02:36 steve
+ * Brought up to sync with Intel again.
*
* Revision 1.1 1991/03/13 00:48:27 chrisb
* Initial revision
@@ -181,7 +181,7 @@ main (argc, argv)
command_line.force_common_definition = false;
ldfile_add_arch("");
-
+ ldfile_add_library_path("./");
config.make_executable = true;
force_make_executable = false;
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index 2f73066..b252a31 100644
--- a/ld/ldmisc.c
+++ b/ld/ldmisc.c
@@ -20,8 +20,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
* $Id$
*
* $Log$
- * Revision 1.1 1991/03/21 21:28:55 gumby
- * Initial revision
+ * Revision 1.2 1991/03/22 23:02:37 steve
+ * Brought up to sync with Intel again.
*
* Revision 1.2 1991/03/15 18:45:55 rich
* foo
diff --git a/ld/ldsym.c b/ld/ldsym.c
index 4b0001a..24272a9 100644
--- a/ld/ldsym.c
+++ b/ld/ldsym.c
@@ -20,11 +20,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
* $Id$
*
* $Log$
- * Revision 1.1.1.1 1991/03/21 21:28:58 gumby
- * Back from Intel with Steve
- *
- * Revision 1.1 1991/03/21 21:28:58 gumby
- * Initial revision
+ * Revision 1.2 1991/03/22 23:02:38 steve
+ * Brought up to sync with Intel again.
*
* Revision 1.1 1991/03/13 00:48:32 chrisb
* Initial revision