#include "bfd.h"#include "sysdep.h"#include "libbfd.h"#include "safe-ctype.h"#include "bfdlink.h"#include "aout/stab_gnu.h"

Go to the source code of this file.
| #define DESCOFF (6) |
| #define OTHEROFF (5) |
| #define STABSIZE (12) |
| #define STRDXOFF (0) |
| #define TYPEOFF (4) |
| #define VALOFF (8) |
| long _bfd_generic_read_minisymbols | ( | bfd * | abfd, | |
| bfd_boolean | dynamic, | |||
| void ** | minisymsp, | |||
| unsigned int * | sizep | |||
| ) |
Definition at line 776 of file syms.c.
References bfd_canonicalize_dynamic_symtab, bfd_canonicalize_symtab, bfd_error_no_symbols, bfd_get_dynamic_symtab_upper_bound, bfd_get_symtab_upper_bound, bfd_malloc(), bfd_set_error(), free(), NULL, storage, and symcount.
Referenced by NAME(), and vms_read_minisymbols().
| bfd_boolean _bfd_stab_section_find_nearest_line | ( | bfd * | abfd, | |
| asymbol ** | symbols, | |||
| asection * | section, | |||
| bfd_vma | offset, | |||
| bfd_boolean * | pfound, | |||
| const char ** | pfilename, | |||
| const char ** | pfnname, | |||
| unsigned int * | pline, | |||
| void ** | pinfo | |||
| ) |
Definition at line 903 of file syms.c.
References _, reloc_cache_entry::addend, reloc_cache_entry::address, bfd_alloc(), bfd_canonicalize_reloc(), bfd_error_invalid_operation, bfd_get_16, bfd_get_32, bfd_get_filename, bfd_get_reloc_upper_bound(), bfd_get_section_by_name(), bfd_get_section_contents(), bfd_get_section_vma, bfd_malloc(), bfd_put_32, bfd_set_error(), bfd_zalloc(), reloc_howto_struct::bitpos, reloc_howto_struct::bitsize, stab_find_info::cached_file_name, stab_find_info::cached_indexentry, stab_find_info::cached_offset, stab_find_info::cached_stab, cmpindexentry(), DESCOFF, indexentry::directory_name, reloc_howto_struct::dst_mask, FALSE, file_name, indexentry::file_name, stab_find_info::filename, free(), indexentry::function_name, high, reloc_cache_entry::howto, i, stab_find_info::indextable, stab_find_info::indextablesize, info, IS_ABSOLUTE_PATH, len, low, memcpy, NULL, reloc_howto_struct::pc_relative, pr, qsort(), r, bfd_section::rawsize, reloc_howto_struct::rightshift, s, bfd_symbol::section, bfd_section::size, reloc_howto_struct::size, reloc_howto_struct::src_mask, indexentry::stab, stab_find_info::stabs, stab_find_info::stabsec, STABSIZE, str, indexentry::str, strchr, strcmp(), STRDXOFF, strlen(), strncmp(), stab_find_info::strs, stab_find_info::strsec, strsize, sym, reloc_cache_entry::sym_ptr_ptr, TRUE, TYPEOFF, val, indexentry::val, VALOFF, bfd_symbol::value, and bfd_section::vma.
Referenced by _bfd_elf_find_nearest_line(), and coff_find_nearest_line().
| int bfd_decode_symclass | ( | asymbol * | symbol | ) |
Definition at line 645 of file syms.c.
References bfd_is_abs_section, bfd_is_com_section, bfd_is_ind_section, bfd_is_und_section, BSF_GLOBAL, BSF_LOCAL, BSF_OBJECT, BSF_WEAK, c, coff_section_type(), decode_section_type(), bfd_symbol::flags, bfd_section::name, bfd_symbol::section, and TOUPPER.
Referenced by bfd_symbol_info(), and tekhex_write_object_contents().
Definition at line 357 of file syms.c.
References bfd_is_local_label_name, BSF_FILE, BSF_GLOBAL, BSF_SECTION_SYM, BSF_WEAK, FALSE, bfd_symbol::flags, bfd_symbol::name, and NULL.
Referenced by _bfd_generic_link_output_symbols(), and srec_write_symbols().
| bfd_boolean bfd_is_undefined_symclass | ( | int | symclass | ) |
Definition at line 460 of file syms.c.
References bfd_fprintf_vma(), BSF_CONSTRUCTOR, BSF_DEBUGGING, BSF_DYNAMIC, BSF_FILE, BSF_FUNCTION, BSF_GLOBAL, BSF_INDIRECT, BSF_LOCAL, BSF_OBJECT, BSF_WARNING, BSF_WEAK, bfd_symbol::flags, fprintf(), NULL, bfd_symbol::section, bfd_symbol::value, and bfd_section::vma.
Referenced by bfd_elf_print_symbol(), bfd_mach_o_print_symbol(), bfd_pef_print_symbol(), coff_print_symbol(), ieee_print_symbol(), mmo_print_symbol(), NAME(), oasys_print_symbol(), srec_print_symbol(), tekhex_print_symbol(), versados_print_symbol(), and vms_print_symbol().
Definition at line 435 of file syms.c.
References bfd_error_invalid_operation, bfd_get_outsymbols, bfd_get_symcount, bfd_object, bfd_read_p, bfd_set_error(), FALSE, bfd::format, and TRUE.
Referenced by elf_map_symbols(), make_head(), make_import_fixup_entry(), make_one(), make_runtime_pseudo_reloc(), make_singleton_name_thunk(), make_tail(), and pe_create_runtime_relocator_reference().
| void bfd_symbol_info | ( | asymbol * | symbol, | |
| symbol_info * | ret | |||
| ) |
Definition at line 736 of file syms.c.
References bfd_decode_symclass(), bfd_is_undefined_symclass(), _symbol_info::name, bfd_symbol::name, bfd_symbol::section, _symbol_info::type, bfd_symbol::value, _symbol_info::value, and bfd_section::vma.
Referenced by _bfd_ecoff_get_symbol_info(), _bfd_elf_get_symbol_info(), bfd_mach_o_get_symbol_info(), bfd_pef_get_symbol_info(), bfd_sym_get_symbol_info(), binary_get_symbol_info(), coff_get_symbol_info(), ieee_get_symbol_info(), mmo_get_symbol_info(), NAME(), oasys_get_symbol_info(), ppcboot_get_symbol_info(), srec_get_symbol_info(), tekhex_get_symbol_info(), and versados_get_symbol_info().
Definition at line 859 of file syms.c.
References indexentry::val.
Referenced by _bfd_stab_section_find_nearest_line().
| static char coff_section_type | ( | const char * | s | ) | [static] |
Definition at line 586 of file syms.c.
References section_to_type::section, strlen(), strncmp(), and section_to_type::type.
Referenced by bfd_decode_symclass().
| static char decode_section_type | ( | const struct bfd_section * | section | ) | [static] |
Definition at line 605 of file syms.c.
References bfd_section::flags, SEC_CODE, SEC_DATA, SEC_DEBUGGING, SEC_HAS_CONTENTS, SEC_READONLY, and SEC_SMALL_DATA.
Referenced by bfd_decode_symclass().
struct section_to_type stt[] [static] |
Initial value:
{
{".bss", 'b'},
{"code", 't'},
{".data", 'd'},
{"*DEBUG*", 'N'},
{".debug", 'N'},
{".drectve", 'i'},
{".edata", 'e'},
{".fini", 't'},
{".idata", 'i'},
{".init", 't'},
{".pdata", 'p'},
{".rdata", 'r'},
{".rodata", 'r'},
{".sbss", 's'},
{".scommon", 'c'},
{".sdata", 'g'},
{".text", 't'},
{"vars", 'd'},
{"zerovars", 'b'},
{0, 0}
}
Definition at line 555 of file syms.c.
Referenced by ElfSymbol::decode_st_type(), and swap_out_syms().
1.5.6