aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-02-14 21:43:54 +0000
committerIan Lance Taylor <ian@airs.com>1996-02-14 21:43:54 +0000
commit307585f1c9b3e8d0d449e938293a855543e0465b (patch)
tree30847e49c1761523a1d7a56f490328d06d1dac50 /ld/ldlang.c
parent2b37714adfd20b6cb3c0ff396a85435e7bd6c7c4 (diff)
downloadgdb-307585f1c9b3e8d0d449e938293a855543e0465b.zip
gdb-307585f1c9b3e8d0d449e938293a855543e0465b.tar.gz
gdb-307585f1c9b3e8d0d449e938293a855543e0465b.tar.bz2
Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
* ldlang.c (lang_set_startof): Don't do anything for a relocateable link. * ldgram.y (mri_script_file): Call mri_draw_tree. * mri.c (mri_draw_tree): Make globally visible. Don't bother to create memory regions. (mri_load): Don't call mri_draw_tree. * mri.h (mri_draw_tree): Declare. * configure.tgt (m68*-*-psos): New target. * emulparams/m68kpsos.sh: New file. * scripttempl/psos.sc: New file. * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o. (em68kpsos.c): New target.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 36d3d77..4dedd98 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1,5 +1,5 @@
/* Linker command language support.
- Copyright (C) 1991, 92, 93, 94, 1995 Free Software Foundation, Inc.
+ Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -2249,6 +2249,9 @@ lang_set_startof ()
{
asection *s;
+ if (link_info.relocateable)
+ return;
+
for (s = output_bfd->sections; s != NULL; s = s->next)
{
const char *secname;