diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-01-12 00:47:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-01-12 00:47:20 +0000 |
commit | ac496d4f7e4b5cb9fcf75c303926a7d55ed86702 (patch) | |
tree | 8605c70a3e6dfec13b4cda9fea651a0302a4afa8 /ld/relax.c | |
parent | 0c2fae099af0d4761fdfa79cccff8ec8e40c5fb0 (diff) | |
download | gdb-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/relax.c')
-rw-r--r-- | ld/relax.c | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -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); } |