aboutsummaryrefslogtreecommitdiff
path: root/ld/ld-lnk960.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-04-08 23:26:05 +0000
committerSteve Chamberlain <steve@cygnus>1991-04-08 23:26:05 +0000
commitde7c1ff6139ecad81cf4ada557330ae0b3c7b5a6 (patch)
tree4821c5ee175cf0c70b0d20b6dab9276d74680a96 /ld/ld-lnk960.c
parentad19c0a2d1d72cbee89680aa95d94b35a2a8eb3d (diff)
downloadgdb-de7c1ff6139ecad81cf4ada557330ae0b3c7b5a6.zip
gdb-de7c1ff6139ecad81cf4ada557330ae0b3c7b5a6.tar.gz
gdb-de7c1ff6139ecad81cf4ada557330ae0b3c7b5a6.tar.bz2
*** empty log message ***
Diffstat (limited to 'ld/ld-lnk960.c')
-rwxr-xr-xld/ld-lnk960.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/ld/ld-lnk960.c b/ld/ld-lnk960.c
index 2e012c8..0d9a1fc 100755
--- a/ld/ld-lnk960.c
+++ b/ld/ld-lnk960.c
@@ -20,9 +20,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
$Id$
$Log$
- Revision 1.2 1991/03/22 23:02:31 steve
- Brought up to sync with Intel again.
+ Revision 1.3 1991/04/08 23:21:26 steve
+ *** empty log message ***
+ * Revision 1.2 1991/03/22 23:02:31 steve
+ * Brought up to sync with Intel again.
+ *
* Revision 1.2 1991/03/15 18:45:55 rich
* foo
*
@@ -199,10 +202,13 @@ lnk960_before_allocation()
static void
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");
+ extern ld_config_type config;
+ if (config.relocateable_output == false) {
+ 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");
+ }
}
static struct