#include "globals.h"

Go to the source code of this file.
| #define DW_SECTION_REL_DEBUG_ABBREV 3 |
Definition at line 42 of file print_reloc.c.
Referenced by print_relocinfo_32(), and print_relocinfo_64().
| #define DW_SECTION_REL_DEBUG_ARANGES 4 |
Definition at line 43 of file print_reloc.c.
Referenced by print_relocinfo_32(), and print_relocinfo_64().
| #define DW_SECTION_REL_DEBUG_FRAME 5 |
Definition at line 44 of file print_reloc.c.
Referenced by print_relocinfo_32(), and print_relocinfo_64().
| #define DW_SECTION_REL_DEBUG_INFO 0 |
Definition at line 39 of file print_reloc.c.
Referenced by print_relocinfo_32(), and print_relocinfo_64().
| #define DW_SECTION_REL_DEBUG_LINE 1 |
Definition at line 40 of file print_reloc.c.
Referenced by print_relocinfo_32(), and print_relocinfo_64().
| #define DW_SECTION_REL_DEBUG_NUM 6 |
Definition at line 45 of file print_reloc.c.
Referenced by print_relocinfo(), print_relocinfo_32(), and print_relocinfo_64().
| #define DW_SECTION_REL_DEBUG_PUBNAME 2 |
Definition at line 41 of file print_reloc.c.
Referenced by print_relocinfo_32(), and print_relocinfo_64().
| #define DW_SECTNAME_REL_DEBUG_ABBREV ".rel.debug_abbrev" |
Definition at line 50 of file print_reloc.c.
| #define DW_SECTNAME_REL_DEBUG_ARANGES ".rel.debug_aranges" |
Definition at line 51 of file print_reloc.c.
| #define DW_SECTNAME_REL_DEBUG_FRAME ".rel.debug_frame" |
Definition at line 52 of file print_reloc.c.
| #define DW_SECTNAME_REL_DEBUG_INFO ".rel.debug_info" |
Definition at line 47 of file print_reloc.c.
| #define DW_SECTNAME_REL_DEBUG_LINE ".rel.debug_line" |
Definition at line 48 of file print_reloc.c.
| #define DW_SECTNAME_REL_DEBUG_PUBNAME ".rel.debug_pubname" |
Definition at line 49 of file print_reloc.c.
| #define ELF64_R_SYM | ( | x | ) | 0 |
Definition at line 356 of file print_reloc.c.
| #define ELF64_R_TYPE | ( | x | ) | 0 |
Definition at line 353 of file print_reloc.c.
| #define ELF64_ST_BIND | ( | x | ) | 0 |
Definition at line 362 of file print_reloc.c.
| #define ELF64_ST_TYPE | ( | x | ) | 0 |
Definition at line 359 of file print_reloc.c.
| #define SECT_DATA_SET | ( | x | ) |
Value:
{ \
if (sect_data[(x)].buf != NULL) { \
print_error(dbg, error_msg_duplicate[(x)],DW_DLV_OK, err); \
} \
if ((data = elf_getdata(scn, 0)) == NULL || data->d_size == 0) { \
print_error(dbg, error_msg_null[(x)],DW_DLV_OK, err); \
} \
sect_data[(x)].buf = data -> d_buf; \
sect_data[(x)].size = data -> d_size; \
}
Definition at line 84 of file print_reloc.c.
Referenced by print_relocinfo_32(), and print_relocinfo_64().
| #define STRING_FOR_DUPLICATE " duplicate" |
Definition at line 54 of file print_reloc.c.
| #define STRING_FOR_NULL " null" |
Definition at line 55 of file print_reloc.c.
| static char* get_reloc_type_names | ( | int | index | ) | [static] |
Definition at line 128 of file print_reloc.c.
References buf, reloc_type_names, and sprintf().
Referenced by print_reloc_information_32(), and print_reloc_information_64().
Definition at line 462 of file print_reloc.c.
References Elf_Data::d_buf, Elf_Data::d_size, elf_getdata(), and NULL.
Referenced by print_relocinfo_32(), and print_relocinfo_64().
| static void print_reloc_information_32 | ( | int | section_no, | |
| Dwarf_Small * | buf, | |||
| Dwarf_Unsigned | size | |||
| ) | [static] |
Definition at line 398 of file print_reloc.c.
References ELF32_R_SYM, ELF32_R_TYPE, get_reloc_type_names(), SYM::name, p, printf(), Elf32_Rel::r_info, Elf32_Rel::r_offset, and sectnames.
Referenced by print_relocinfo_32().
| static void print_reloc_information_64 | ( | int | section_no, | |
| Dwarf_Small * | buf, | |||
| Dwarf_Unsigned | size | |||
| ) | [static] |
Definition at line 367 of file print_reloc.c.
References ELF64_R_SYM, ELF64_R_TYPE, get_reloc_type_names(), SYM::name, p, printf(), Elf64_Rel::r_info, Elf64_Rel::r_offset, and sectnames.
Referenced by print_relocinfo_64().
| void print_relocinfo | ( | Dwarf_Debug | dbg | ) |
Definition at line 194 of file print_reloc.c.
References DW_DLV_OK, DW_SECTION_REL_DEBUG_NUM, dwarf_get_elf(), EI_CLASS, elf_getident(), ELFCLASS64, err, i, NULL, print_error(), print_relocinfo_32(), print_relocinfo_64(), and sect_data.
Referenced by process_one_file().
| static void print_relocinfo_32 | ( | Dwarf_Debug | dbg, | |
| Elf * | elf | |||
| ) | [static] |
Definition at line 288 of file print_reloc.c.
References buf, count, DW_DLV_OK, DW_SECTION_REL_DEBUG_ABBREV, DW_SECTION_REL_DEBUG_ARANGES, DW_SECTION_REL_DEBUG_FRAME, DW_SECTION_REL_DEBUG_INFO, DW_SECTION_REL_DEBUG_LINE, DW_SECTION_REL_DEBUG_NUM, DW_SECTION_REL_DEBUG_PUBNAME, Elf32_Ehdr::e_shstrndx, elf32_getehdr(), elf32_getshdr(), elf_nextscn(), elf_strptr(), err, get_scndata(), i, NULL, print_error(), print_reloc_information_32(), readsyms(), sect_data, SECT_DATA_SET, Elf32_Shdr::sh_link, Elf32_Shdr::sh_name, Elf32_Shdr::sh_type, SHT_SYMTAB, size, strcmp(), strncmp(), and sym_size.
Referenced by print_relocinfo().
| static void print_relocinfo_64 | ( | Dwarf_Debug | dbg, | |
| Elf * | elf | |||
| ) | [static] |
Definition at line 222 of file print_reloc.c.
References buf, count, DW_DLV_OK, DW_SECTION_REL_DEBUG_ABBREV, DW_SECTION_REL_DEBUG_ARANGES, DW_SECTION_REL_DEBUG_FRAME, DW_SECTION_REL_DEBUG_INFO, DW_SECTION_REL_DEBUG_LINE, DW_SECTION_REL_DEBUG_NUM, DW_SECTION_REL_DEBUG_PUBNAME, Elf64_Ehdr::e_shstrndx, elf64_getehdr(), elf64_getshdr(), elf_nextscn(), elf_strptr(), err, get_scndata(), i, NULL, print_error(), print_reloc_information_64(), read_64_syms(), sect_data, SECT_DATA_SET, SHT_SYMTAB, size, strcmp(), strncmp(), sym_64, and sym_size.
Referenced by print_relocinfo().
| static SYM64 * read_64_syms | ( | Elf64_Sym * | data, | |
| size_t | num, | |||
| Elf * | elf, | |||
| Elf64_Word | link | |||
| ) | [static] |
Definition at line 435 of file print_reloc.c.
References SYM64::bind, buf, calloc(), ELF64_ST_BIND, ELF64_ST_TYPE, elf_strptr(), i, SYM64::indx, SYM64::name, NULL, SYM64::other, s, SYM64::shndx, SYM64::size, SYM64::type, and SYM64::value.
Referenced by print_relocinfo_64().
| static SYM * readsyms | ( | Elf32_Sym * | data, | |
| size_t | num, | |||
| Elf * | elf, | |||
| Elf32_Word | link | |||
| ) | [static] |
Definition at line 413 of file print_reloc.c.
References SYM::bind, buf, calloc(), ELF32_ST_BIND, ELF32_ST_TYPE, elf_strptr(), i, SYM::indx, SYM::name, NULL, SYM::other, s, SYM::shndx, SYM::size, SYM::type, and SYM::value.
Referenced by print_relocinfo_32().
Definition at line 145 of file print_reloc.c.
char* error_msg_duplicate[] [static] |
Initial value:
{
DW_SECTNAME_REL_DEBUG_INFO STRING_FOR_DUPLICATE,
DW_SECTNAME_REL_DEBUG_LINE STRING_FOR_DUPLICATE,
DW_SECTNAME_REL_DEBUG_PUBNAME STRING_FOR_DUPLICATE,
DW_SECTNAME_REL_DEBUG_ABBREV STRING_FOR_DUPLICATE,
DW_SECTNAME_REL_DEBUG_ARANGES STRING_FOR_DUPLICATE,
DW_SECTNAME_REL_DEBUG_FRAME STRING_FOR_DUPLICATE,
}
Definition at line 66 of file print_reloc.c.
char* error_msg_null[] [static] |
Initial value:
{
DW_SECTNAME_REL_DEBUG_INFO STRING_FOR_NULL,
DW_SECTNAME_REL_DEBUG_LINE STRING_FOR_NULL,
DW_SECTNAME_REL_DEBUG_PUBNAME STRING_FOR_NULL,
DW_SECTNAME_REL_DEBUG_ABBREV STRING_FOR_NULL,
DW_SECTNAME_REL_DEBUG_ARANGES STRING_FOR_NULL,
DW_SECTNAME_REL_DEBUG_FRAME STRING_FOR_NULL,
}
Definition at line 75 of file print_reloc.c.
char* reloc_type_names[] [static] |
Initial value:
{
"R_MIPS_NONE", "R_MIPS_16", "R_MIPS_32", "R_MIPS_REL32",
"R_MIPS_26", "R_MIPS_HI16", "R_MIPS_LO16", "R_MIPS_GPREL16",
"R_MIPS_LITERAL", "R_MIPS_GOT16", "R_MIPS_PC16", "R_MIPS_CALL16",
"R_MIPS_GPREL32",
"reloc type 13?", "reloc type 14?", "reloc type 15?",
"R_MIPS_SHIFT5",
"R_MIPS_SHIFT6",
"R_MIPS_64",
"R_MIPS_GOT_DISP",
"R_MIPS_GOT_PAGE",
"R_MIPS_GOT_OFST",
"R_MIPS_GOT_HI16",
"R_MIPS_GOT_LO16",
"R_MIPS_SUB",
"R_MIPS_INSERT_A",
"R_MIPS_INSERT_B",
"R_MIPS_DELETE",
"R_MIPS_HIGHER",
"R_MIPS_HIGHEST",
"R_MIPS_CALL_HI16",
"R_MIPS_CALL_LO16",
"R_MIPS_SCN_DISP",
"R_MIPS_REL16",
"R_MIPS_ADD_IMMEDIATE",
}
Definition at line 95 of file print_reloc.c.
Referenced by get_reloc_type_names().
struct { ... } sect_data[DW_SECTION_REL_DEBUG_NUM] [static] |
Referenced by print_relocinfo(), print_relocinfo_32(), and print_relocinfo_64().
char* sectnames[] [static] |
Initial value:
{
DW_SECTNAME_REL_DEBUG_INFO,
DW_SECTNAME_REL_DEBUG_LINE,
DW_SECTNAME_REL_DEBUG_PUBNAME,
DW_SECTNAME_REL_DEBUG_ABBREV,
DW_SECTNAME_REL_DEBUG_ARANGES,
DW_SECTNAME_REL_DEBUG_FRAME,
}
Definition at line 57 of file print_reloc.c.
Referenced by print_reloc_information_32(), and print_reloc_information_64().
Definition at line 146 of file print_reloc.c.
Definition at line 189 of file print_reloc.c.
Elf64_Sym* sym_64 [static] |
Definition at line 190 of file print_reloc.c.
Referenced by print_relocinfo_64(), and xcoff_write_armap_big().
Definition at line 191 of file print_reloc.c.
SYM64* sym_data_64 [static] |
Definition at line 192 of file print_reloc.c.
1.5.6