aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-06-24 04:56:01 +0000
committerFred Fish <fnf@specifix.com>1992-06-24 04:56:01 +0000
commitec6b2951dab0ccf32cef4cc4b8f6eb0857eb7172 (patch)
treeaad810bb13c3b08a70df463ac7db75da76fef633
parente676a15f0b9ef089973311249917e203917b3903 (diff)
downloadgdb-ec6b2951dab0ccf32cef4cc4b8f6eb0857eb7172.zip
gdb-ec6b2951dab0ccf32cef4cc4b8f6eb0857eb7172.tar.gz
gdb-ec6b2951dab0ccf32cef4cc4b8f6eb0857eb7172.tar.bz2
* libbfd.h, libbfd-in.h (bfd_seek): Make prototype match definition.
* reloc.c (bfd_default_reloc_type_lookup): Make cast on return type match actual return type. * elf_print_symbol (section_name): Make CONST.
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/elf.c2
-rw-r--r--bfd/libbfd.h2
3 files changed, 9 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d2e4371..9eb249e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+Tue Jun 23 21:54:44 1992 Fred Fish (fnf@cygnus.com)
+
+ * libbfd.h, libbfd-in.h (bfd_seek): Make prototype match definition.
+ * reloc.c (bfd_default_reloc_type_lookup): Make cast on return
+ type match actual return type.
+ * elf_print_symbol (section_name): Make CONST.
+
Mon Jun 22 17:35:24 1992 Per Bothner (bothner@cygnus.com)
* i386linux.c, hosts/i386linux.h, config/i386-linux.mt:
diff --git a/bfd/elf.c b/bfd/elf.c
index f437ce9..26b2a1e 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2357,7 +2357,7 @@ DEFUN (elf_print_symbol,(ignore_abfd, filep, symbol, how),
case bfd_print_symbol_nm:
case bfd_print_symbol_all:
{
- char *section_name;
+ CONST char *section_name;
section_name = symbol->section? symbol->section->name : "(*none*)";
bfd_print_symbol_vandf((PTR) file, symbol);
fprintf(file, " %-5s %s %s %s",
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index be1622e..aee8fdc 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -80,7 +80,7 @@ PROTO (bfd_size_type, bfd_write, (CONST PTR ptr, bfd_size_type size, bfd_size_ty
-PROTO (int, bfd_seek,(bfd* abfd, file_ptr fp , int direction));
+PROTO (int, bfd_seek,(bfd* CONST abfd, CONST file_ptr fp , CONST int direction));
PROTO (long, bfd_tell, (bfd *abfd));
PROTO (bfd *, _bfd_create_empty_archive_element_shell, (bfd *obfd));
PROTO (bfd *, look_for_bfd_in_cache, (bfd *arch_bfd, file_ptr index));