aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
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 /ld/ldlang.c
parent139d5bfdf95106376319a6635bbfe412a34e1f09 (diff)
downloadgdb-8cb5eb316c35daaede8a2b72ae994c7b2df152d9.zip
gdb-8cb5eb316c35daaede8a2b72ae994c7b2df152d9.tar.gz
gdb-8cb5eb316c35daaede8a2b72ae994c7b2df152d9.tar.bz2
Brought up to sync with Intel again.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c30
1 files changed, 28 insertions, 2 deletions
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;