| OLD | NEW |
| 1 @section @code{typedef bfd} | 1 @section @code{typedef bfd} |
| 2 A BFD has type @code{bfd}; objects of this type are the | 2 A BFD has type @code{bfd}; objects of this type are the |
| 3 cornerstone of any application using BFD. Using BFD | 3 cornerstone of any application using BFD. Using BFD |
| 4 consists of making references though the BFD and to data in the BFD. | 4 consists of making references though the BFD and to data in the BFD. |
| 5 | 5 |
| 6 Here is the structure that defines the type @code{bfd}. It | 6 Here is the structure that defines the type @code{bfd}. It |
| 7 contains the major data about the file and pointers | 7 contains the major data about the file and pointers |
| 8 to the rest of the data. | 8 to the rest of the data. |
| 9 | 9 |
| 10 | 10 |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 | 412 |
| 413 @findex bfd_get_error_handler | 413 @findex bfd_get_error_handler |
| 414 @subsubsection @code{bfd_get_error_handler} | 414 @subsubsection @code{bfd_get_error_handler} |
| 415 @strong{Synopsis} | 415 @strong{Synopsis} |
| 416 @example | 416 @example |
| 417 bfd_error_handler_type bfd_get_error_handler (void); | 417 bfd_error_handler_type bfd_get_error_handler (void); |
| 418 @end example | 418 @end example |
| 419 @strong{Description}@* | 419 @strong{Description}@* |
| 420 Return the BFD error handler function. | 420 Return the BFD error handler function. |
| 421 | 421 |
| 422 @subsection BFD assert handler |
| 423 If BFD finds an internal inconsistency, the bfd assert |
| 424 handler is called with information on the BFD version, BFD |
| 425 source file and line. If this happens, most programs linked |
| 426 against BFD are expected to want to exit with an error, or mark |
| 427 the current BFD operation as failed, so it is recommended to |
| 428 override the default handler, which just calls |
| 429 _bfd_error_handler and continues. |
| 430 |
| 431 |
| 432 @example |
| 433 |
| 434 typedef void (*bfd_assert_handler_type) (const char *bfd_formatmsg, |
| 435 const char *bfd_version, |
| 436 const char *bfd_file, |
| 437 int bfd_line); |
| 438 |
| 439 @end example |
| 440 @findex bfd_set_assert_handler |
| 441 @subsubsection @code{bfd_set_assert_handler} |
| 442 @strong{Synopsis} |
| 443 @example |
| 444 bfd_assert_handler_type bfd_set_assert_handler (bfd_assert_handler_type); |
| 445 @end example |
| 446 @strong{Description}@* |
| 447 Set the BFD assert handler function. Returns the previous |
| 448 function. |
| 449 |
| 450 @findex bfd_get_assert_handler |
| 451 @subsubsection @code{bfd_get_assert_handler} |
| 452 @strong{Synopsis} |
| 453 @example |
| 454 bfd_assert_handler_type bfd_get_assert_handler (void); |
| 455 @end example |
| 456 @strong{Description}@* |
| 457 Return the BFD assert handler function. |
| 458 |
| 422 @section Miscellaneous | 459 @section Miscellaneous |
| 423 | 460 |
| 424 | 461 |
| 425 @subsection Miscellaneous functions | 462 @subsection Miscellaneous functions |
| 426 | 463 |
| 427 | 464 |
| 428 @findex bfd_get_reloc_upper_bound | 465 @findex bfd_get_reloc_upper_bound |
| 429 @subsubsection @code{bfd_get_reloc_upper_bound} | 466 @subsubsection @code{bfd_get_reloc_upper_bound} |
| 430 @strong{Synopsis} | 467 @strong{Synopsis} |
| 431 @example | 468 @example |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 | 743 |
| 707 #define bfd_set_arch_mach(abfd, arch, mach)\ | 744 #define bfd_set_arch_mach(abfd, arch, mach)\ |
| 708 BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach)) | 745 BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach)) |
| 709 | 746 |
| 710 #define bfd_relax_section(abfd, section, link_info, again) \ | 747 #define bfd_relax_section(abfd, section, link_info, again) \ |
| 711 BFD_SEND (abfd, _bfd_relax_section, (abfd, section, link_info, again)) | 748 BFD_SEND (abfd, _bfd_relax_section, (abfd, section, link_info, again)) |
| 712 | 749 |
| 713 #define bfd_gc_sections(abfd, link_info) \ | 750 #define bfd_gc_sections(abfd, link_info) \ |
| 714 BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info)) | 751 BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info)) |
| 715 | 752 |
| 716 #define bfd_lookup_section_flags(link_info, flag_info) \ | 753 #define bfd_lookup_section_flags(link_info, flag_info, section) \ |
| 717 BFD_SEND (abfd, _bfd_lookup_section_flags, (link_info, flag_info)) | 754 BFD_SEND (abfd, _bfd_lookup_section_flags, (link_info, flag_info, section
)) |
| 718 | 755 |
| 719 #define bfd_merge_sections(abfd, link_info) \ | 756 #define bfd_merge_sections(abfd, link_info) \ |
| 720 BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info)) | 757 BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info)) |
| 721 | 758 |
| 722 #define bfd_is_group_section(abfd, sec) \ | 759 #define bfd_is_group_section(abfd, sec) \ |
| 723 BFD_SEND (abfd, _bfd_is_group_section, (abfd, sec)) | 760 BFD_SEND (abfd, _bfd_is_group_section, (abfd, sec)) |
| 724 | 761 |
| 725 #define bfd_discard_group(abfd, sec) \ | 762 #define bfd_discard_group(abfd, sec) \ |
| 726 BFD_SEND (abfd, _bfd_discard_group, (abfd, sec)) | 763 BFD_SEND (abfd, _bfd_discard_group, (abfd, sec)) |
| 727 | 764 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 @example | 924 @example |
| 888 char *bfd_demangle (bfd *, const char *, int); | 925 char *bfd_demangle (bfd *, const char *, int); |
| 889 @end example | 926 @end example |
| 890 @strong{Description}@* | 927 @strong{Description}@* |
| 891 Wrapper around cplus_demangle. Strips leading underscores and | 928 Wrapper around cplus_demangle. Strips leading underscores and |
| 892 other such chars that would otherwise confuse the demangler. | 929 other such chars that would otherwise confuse the demangler. |
| 893 If passed a g++ v3 ABI mangled name, returns a buffer allocated | 930 If passed a g++ v3 ABI mangled name, returns a buffer allocated |
| 894 with malloc holding the demangled name. Returns NULL otherwise | 931 with malloc holding the demangled name. Returns NULL otherwise |
| 895 and on memory alloc failure. | 932 and on memory alloc failure. |
| 896 | 933 |
| OLD | NEW |