-
/* 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.
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 */
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));
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.
/*:cache.c*/
+/*:ctor.c*/
+
/*:reloc.c*/
/*:cpu-h8300.c*/
/*:cpu-empty.c*/
-/*:howto.c*/
-
/*:archures.c*/