diff options
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. |