Checkpoint. Can now read relocs.
[deliverable/binutils-gdb.git] / bfd / libbfd-in.h
index 9932071c93013277909f7ed0a24efd0ddc537413..c85be242256fd7121670de65a86d49bd10444ab6 100644 (file)
@@ -1,7 +1,6 @@
-
 /* libbfd.h -- Declarations used by bfd library *implementation*.
    (This include file is not for users of the library.)
-   Copyright (C) 1990-1991 Free Software Foundation, Inc.
+   Copyright 1990, 1991 Free Software Foundation, Inc.
    Written by Cygnus Support.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -20,7 +19,11 @@ 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.  */
 
-/* $Id$ */
+
+/* Align an address upward to a boundary, expressed as a number of bytes.
+   E.g. align to an 8-byte boundary with argument of 8.  */
+#define BFD_ALIGN(this, boundary) \
+  ((( (this) + ((boundary) -1)) & (~((boundary)-1))))
 
 /* If you want to read and write large blocks, you might want to do it
    in quanta of this amount */
@@ -130,10 +133,10 @@ PROTO (void, bfd_gnu_truncate_arname, (bfd *abfd, CONST char *filename,
                                        char *hdr));
 
 PROTO (boolean, bsd_write_armap, (bfd *arch, unsigned int elength,
-                                 struct orl *map, int orl_count, int stridx));
+                                 struct orl *map, unsigned int orl_count, int stridx));
 
 PROTO (boolean, coff_write_armap, (bfd *arch, unsigned int elength,
-                                  struct orl *map, int orl_count, int stridx));
+                                  struct orl *map, unsigned int orl_count, int stridx));
 
 PROTO (bfd *, bfd_generic_openr_next_archived_file, (bfd *archive,
                                                     bfd *last_file));
@@ -141,7 +144,12 @@ PROTO (bfd *, bfd_generic_openr_next_archived_file, (bfd *archive,
 PROTO(int, bfd_generic_stat_arch_elt, (bfd *, struct stat *));
 
 PROTO(boolean, bfd_generic_get_section_contents,
-      (bfd *abfd, sec_ptr section, PTR location, file_ptr offset, bfd_size_type count));
+      (bfd *abfd, sec_ptr section, PTR location, file_ptr offset,
+       bfd_size_type count));
+
+PROTO(boolean, bfd_generic_set_section_contents,
+      (bfd *abfd, sec_ptr section, PTR location, file_ptr offset,
+       bfd_size_type count));
 
 /* Macros to tell if bfds are read or write enabled.
 
@@ -186,6 +194,8 @@ extern bfd *bfd_last_cache;
 
 /*:cache.c*/
 
+/*:ctor.c*/
+
 /*:reloc.c*/
 
 /*:cpu-h8300.c*/
@@ -194,7 +204,5 @@ extern bfd *bfd_last_cache;
 
 /*:cpu-empty.c*/
 
-/*:howto.c*/
-
 /*:archures.c*/
 
This page took 0.029023 seconds and 4 git commands to generate.