aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-01-12 00:47:20 +0000
committerIan Lance Taylor <ian@airs.com>1993-01-12 00:47:20 +0000
commitac496d4f7e4b5cb9fcf75c303926a7d55ed86702 (patch)
tree8605c70a3e6dfec13b4cda9fea651a0302a4afa8 /ld
parent0c2fae099af0d4761fdfa79cccff8ec8e40c5fb0 (diff)
downloadgdb-ac496d4f7e4b5cb9fcf75c303926a7d55ed86702.zip
gdb-ac496d4f7e4b5cb9fcf75c303926a7d55ed86702.tar.gz
gdb-ac496d4f7e4b5cb9fcf75c303926a7d55ed86702.tar.bz2
Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* ldwrite.c: Removed perform_relocation, copy_and_relocate, and write_norel. All linking is now done via write_relax. Call ldsym_write before calling write_relax. * relax.c: Added copyright. (write_relax): Renamed from write_relaxnorel. Added relocateable argument. seclet_dump renamed to bfd_seclet_link. * relax.h: Added copyright.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog10
-rw-r--r--ld/relax.c23
-rw-r--r--ld/relax.h20
3 files changed, 49 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 55a3044..f9a8a95 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,13 @@
+Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
+
+ * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
+ write_norel. All linking is now done via write_relax. Call
+ ldsym_write before calling write_relax.
+ * relax.c: Added copyright.
+ (write_relax): Renamed from write_relaxnorel. Added relocateable
+ argument. seclet_dump renamed to bfd_seclet_link.
+ * relax.h: Added copyright.
+
Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
* ldmain.c (decode_library_subfile): Patch from
diff --git a/ld/relax.c b/ld/relax.c
index ea156e3..70f35f6 100644
--- a/ld/relax.c
+++ b/ld/relax.c
@@ -1,4 +1,20 @@
+/* Copyright (C) 1992, 1993 Free Software Foundation, Inc.
+This file is part of GLD, the Gnu Linker.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/*
@@ -150,9 +166,10 @@ DEFUN(build_it,(statement),
void
-DEFUN(write_relaxnorel,(output_bfd, data),
+DEFUN(write_relax,(output_bfd, data, relocateable),
bfd *output_bfd AND
- PTR data)
+ PTR data AND
+ boolean relocateable)
{
/* Tie up all the statements to generate an output bfd structure which
bfd can mull over */
@@ -160,7 +177,7 @@ DEFUN(write_relaxnorel,(output_bfd, data),
lang_for_each_statement(build_it);
- seclet_dump(output_bfd, data);
+ bfd_seclet_link(output_bfd, data, relocateable);
}
diff --git a/ld/relax.h b/ld/relax.h
index 7c7d36b..3d1221d 100644
--- a/ld/relax.h
+++ b/ld/relax.h
@@ -1,2 +1,20 @@
-void write_relaxnorel PARAMS ((bfd *output_bfd, PTR data));
+/* Copyright (C) 1992, 1993 Free Software Foundation, Inc.
+
+This file is part of GLD, the Gnu Linker.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+void write_relax PARAMS ((bfd *output_bfd, PTR data, boolean relocateable));
boolean relax_section PARAMS ((lang_statement_union_type **this_ptr));