diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-12-11 22:55:55 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-12-11 22:55:55 +0000 |
commit | fcf276c4958f7cc906ec389f003aa2a713c98528 (patch) | |
tree | 6f9a19c2ca8cac0625898fa485a46ffeb17c6382 /ld/lderror.c | |
parent | 2c6635a46f894fc4e3c0ea6a9023f0ae43b3451f (diff) | |
download | gdb-fcf276c4958f7cc906ec389f003aa2a713c98528.zip gdb-fcf276c4958f7cc906ec389f003aa2a713c98528.tar.gz gdb-fcf276c4958f7cc906ec389f003aa2a713c98528.tar.bz2 |
Made many changes to eliminate gcc warnings. Made various
cosmetic changes, declared various things in header files, removed
various extern declarations from .c files. No substantive
changes.
Diffstat (limited to 'ld/lderror.c')
-rw-r--r-- | ld/lderror.c | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/ld/lderror.c b/ld/lderror.c index b43282d..83eded5 100644 --- a/ld/lderror.c +++ b/ld/lderror.c @@ -1,4 +1,23 @@ -#include "bfd.h" +/* Copyright (C) 1991, 1993 Free Software Foundation, Inc. + Written by Steve Chamberlain steve@cygnus.com + +This file is part of GLD, the Gnu Linker. + +GLD 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, or (at your option) +any later version. + +GLD 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 GLD; see the file COPYING. If not, write to +the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include <bfd.h> #include "sysdep.h" #include "../bfd/seclet.h" #include "ld.h" @@ -6,11 +25,8 @@ #define MAX_ERRORS_IN_A_ROW 5 -extern ld_config_type config; - extern bfd_error_vector_type bfd_error_vector; - /* BFD has failed to link something, give a better error message */ static void @@ -64,15 +80,12 @@ ld_reloc_truncated (relent, seclet) CONST arelent *relent; bfd_seclet_type *seclet; { - asymbol *s = *(relent->sym_ptr_ptr); asection *section = seclet->u.indirect.section; bfd *abfd = section->owner; einfo("%X%C: relocation truncated to fit %R\n", abfd, section, seclet->u.indirect.symbols, relent->address, relent); - } - void init_bfd_error_vector () |