[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1 File Formats

A format is a BFD concept of high level file contents. The formats supported by BFD are:



[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.0.1 bfd_check_format

Synopsis

boolean bfd_check_format(bfd *abfd, bfd_format format);

Description
This routine is supplied a BFD and a format. It attempts to verify if the file attached to the BFD is indeed compatible with the format specified (ie, one of bfd_object, bfd_archive or bfd_core). If the BFD has been set to a specific target before the call, only the named target and format combination will be checked. If the target has not been set, or has been set to default then all the known target backends will be interrogated to determine a match. The function returns true on success, otherwise false with one of the following error codes:



[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.0.2 bfd_set_format

Synopsis

boolean bfd_set_format(bfd *, bfd_format);

Description
This function sets the file format of the supplied BFD to the format requested. If the target set in the BFD does not support the format requested, the format is illegal or the BFD is not open for writing than an error occurs.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.0.3 bfd_format_string

Synopsis

CONST char *bfd_format_string(bfd_format);

Description
This function takes one argument, and enumerated type (bfd_format) and returns a pointer to a const string invalid, object, archive, core or unknown depending upon the value of the enumeration.


[Top] [Contents] [Index] [ ? ]

About This Document

This document was generated on December 11, 2024 using texi2html 5.0.

The buttons in the navigation panels have the following meaning:

Button Name Go to From 1.2.3 go to
[ << ] FastBack Beginning of this chapter or previous chapter 1
[ < ] Back Previous section in reading order 1.2.2
[ Up ] Up Up section 1.2
[ > ] Forward Next section in reading order 1.2.4
[ >> ] FastForward Next chapter 2
[Top] Top Cover (top) of document  
[Contents] Contents Table of contents  
[Index] Index Index  
[ ? ] About About (help)  

where the Example assumes that the current position is at Subsubsection One-Two-Three of a document of the following structure:


This document was generated on December 11, 2024 using texi2html 5.0.