summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/bfd/doc/opncls.texi
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/bfd/doc/opncls.texi')
-rw-r--r--contrib/binutils/bfd/doc/opncls.texi31
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/binutils/bfd/doc/opncls.texi b/contrib/binutils/bfd/doc/opncls.texi
index 4fbb0a7..fcea49b 100644
--- a/contrib/binutils/bfd/doc/opncls.texi
+++ b/contrib/binutils/bfd/doc/opncls.texi
@@ -116,6 +116,37 @@ Create a new BFD in the manner of
takes the target from the target used by @var{template}. The
format is always set to @code{bfd_object}.
+@findex bfd_make_writable
+@subsubsection @code{bfd_make_writable}
+@strong{Synopsis}
+@example
+boolean bfd_make_writable(bfd *abfd);
+@end example
+@strong{Description}@*
+Takes a BFD as created by @code{bfd_create} and converts it
+into one like as returned by @code{bfd_openw}. It does this
+by converting the BFD to BFD_IN_MEMORY. It's assumed that
+you will call @code{bfd_make_readable} on this bfd later.
+
+@strong{Returns}@*
+@code{true} is returned if all is ok, otherwise @code{false}.
+
+@findex bfd_make_readable
+@subsubsection @code{bfd_make_readable}
+@strong{Synopsis}
+@example
+boolean bfd_make_readable(bfd *abfd);
+@end example
+@strong{Description}@*
+Takes a BFD as created by @code{bfd_create} and
+@code{bfd_make_writable} and converts it into one like as
+returned by @code{bfd_openr}. It does this by writing the
+contents out to the memory buffer, then reversing the
+direction.
+
+@strong{Returns}@*
+@code{true} is returned if all is ok, otherwise @code{false}.
+
@findex bfd_alloc
@subsubsection @code{bfd_alloc}
@strong{Synopsis}
OpenPOWER on IntegriCloud