summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-01-26 23:11:47 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-01-26 23:11:47 +0000
commit69eb481f0992ec8ac8e1bb44918b5c4c6f7f89cd (patch)
tree42a1305ff2929f7e18e09ccab6590ebf82a0d75f
parent67332dd35b2591cf5c019c7e811bb8ae3b1c2b59 (diff)
downloadgdb-69eb481f0992ec8ac8e1bb44918b5c4c6f7f89cd.tar.gz
Most of these changes are really only cosmetic. The readelf.c patch
fixes a thinko in get_dynamic_flags. I found at least one message string that included a `%' being passed to printf in the format argument.
-rw-r--r--bfd/ChangeLog11
-rw-r--r--bfd/coff-i386.c3
-rw-r--r--bfd/elflink.c4
-rw-r--r--bfd/trad-core.c4
4 files changed, 16 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 97b85422e35..6a08870a24c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,14 @@
+2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
+
+ * coff-i386.c (i3coff_object_p): Remove prototype.
+ Update copyright.
+
+ * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
+ to name. Update copyright.
+
+ * trad-core.c (trad_unix_core_file_p): Cast core_regsec
+ assignment to avoid warning. Update copyright.
+
2000-01-24 Robert Lipe (robertl@sco.com)
* coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c
index c5afe656f1a..84d4d145c7b 100644
--- a/bfd/coff-i386.c
+++ b/bfd/coff-i386.c
@@ -1,5 +1,5 @@
/* BFD back-end for Intel 386 COFF files.
- Copyright 1990, 91, 92, 93, 94, 95, 96, 97, 98, 1999
+ Copyright 1990, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -45,7 +45,6 @@ static reloc_howto_type *coff_i386_rtype_to_howto
bfd_vma *));
static reloc_howto_type *coff_i386_reloc_type_lookup
PARAMS ((bfd *, bfd_reloc_code_real_type));
-static const bfd_target *i3coff_object_p PARAMS ((bfd *));
#define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (2)
/* The page size is a guess based on ELF. */
diff --git a/bfd/elflink.c b/bfd/elflink.c
index ce78b59400d..91a00e7b31e 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -1,5 +1,5 @@
/* ELF linking support for BFD.
- Copyright 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+ Copyright 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -231,7 +231,7 @@ _bfd_elf_link_record_dynamic_symbol (info, h)
if (h->root.type == bfd_link_hash_undefined)
{
bfd * abfd = h->root.u.undef.abfd;
- char * name = h->root.root.string;
+ const char * name = h->root.root.string;
(*info->callbacks->undefined_symbol)
(info, name, abfd, bfd_und_section_ptr, 0);
diff --git a/bfd/trad-core.c b/bfd/trad-core.c
index 2a6f69bcfd9..92c5b6324eb 100644
--- a/bfd/trad-core.c
+++ b/bfd/trad-core.c
@@ -1,5 +1,5 @@
/* BFD back end for traditional Unix core files (U-area and raw sections)
- Copyright 1988, 89, 91, 92, 93, 94, 95, 96, 98, 1999
+ Copyright 1988, 89, 91, 92, 93, 94, 95, 96, 98, 99, 2000
Free Software Foundation, Inc.
Written by John Gilmore of Cygnus Support.
@@ -202,7 +202,7 @@ trad_unix_core_file_p (abfd)
0 is at the place pointed to by u_ar0 (by setting the vma of the start
of the section to -u_ar0). GDB uses this info to locate the regs,
using minor trickery to get around the offset-or-absolute-addr problem. */
- core_regsec (abfd)->vma = 0 - (bfd_vma) u.u_ar0;
+ core_regsec (abfd)->vma = (asection *) (0 - (bfd_vma) u.u_ar0);
core_datasec (abfd)->filepos = NBPG * UPAGES;
core_stacksec (abfd)->filepos = (NBPG * UPAGES) + NBPG * u.u_dsize