diff options
author | Steve Chamberlain <steve@cygnus> | 1991-10-28 01:08:51 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-10-28 01:08:51 +0000 |
commit | 01dd1b2b474c599efacfa7e6740172e4db0f0ee4 (patch) | |
tree | 020577c23e31ec64f3ac64584d8c78f6162c4c4f /bfd/libbfd-in.h | |
parent | 2f192e9b95ba6cf6ae5389cb98d7007c12640bae (diff) | |
download | gdb-01dd1b2b474c599efacfa7e6740172e4db0f0ee4.zip gdb-01dd1b2b474c599efacfa7e6740172e4db0f0ee4.tar.gz gdb-01dd1b2b474c599efacfa7e6740172e4db0f0ee4.tar.bz2 |
Sun Oct 27 16:56:58 1991 Steve Chamberlain (steve at cygnus.com)
* configure.in: add motorola delta88 cases
* libbfd.h, libbfd-in.h, archive.c, ieee.c, elf.c, srec.c: fix
write_armap prototype
* libbfd.c: add doc on bfd_write_bigendian_4byte_int
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r-- | bfd/libbfd-in.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index 57d8f7e..3114d05 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -21,6 +21,11 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +/* 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 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 */ #define DEFAULT_BUFFERSIZE 8192 @@ -129,10 +134,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)); @@ -140,7 +145,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. |