#include "opjitconv.h"#include "opd_printf.h"#include "op_libiberty.h"#include <bfd.h>#include <stdint.h>#include <stdio.h>
Go to the source code of this file.
Functions | |
| static int | fill_symtab (void) |
| asection * | create_section (bfd *abfd, char const *section_name, size_t size, bfd_vma vma, flagword flags) |
| static int | create_text_section (int start_idx, int end_idx) |
| int | fill_section_content (bfd *abfd, asection *section, void const *b, file_ptr offset, size_t sz) |
| static int | fill_text_section_content (asection *section, int start_idx, int end_idx) |
| int | partition_sections (void) |
| int | fill_sections (void) |
| bfd * | open_elf (char const *filename) |
Routine to handle elf file creation
Copyright IBM Corporation 2007
Definition in file create_bfd.c.
| asection* create_section | ( | bfd * | abfd, | |
| char const * | section_name, | |||
| size_t | size, | |||
| bfd_vma | vma, | |||
| flagword | flags | |||
| ) |
Definition at line 75 of file create_bfd.c.
References debug, error(), jitentry::section, and verbprintf.
Referenced by create_text_section(), and init_debug_line_info().


| static int create_text_section | ( | int | start_idx, | |
| int | end_idx | |||
| ) | [static] |
Definition at line 105 of file create_bfd.c.
References jitentry::code_size, create_section(), cur_bfd, debug, entries_address_ascending, OP_JIT_CONV_FAIL, OP_JIT_CONV_OK, jitentry::section, verbprintf, and jitentry::vma.
Referenced by partition_sections().


| int fill_section_content | ( | bfd * | abfd, | |
| asection * | section, | |||
| void const * | b, | |||
| file_ptr | offset, | |||
| size_t | sz | |||
| ) |
Definition at line 133 of file create_bfd.c.
References OP_JIT_CONV_FAIL, and OP_JIT_CONV_OK.
Referenced by fill_text_section_content(), and finalize_debug_line_info().

| int fill_sections | ( | void | ) |
Definition at line 216 of file create_bfd.c.
References debug, entries_address_ascending, entry_count, fill_symtab(), fill_text_section_content(), OP_JIT_CONV_FAIL, OP_JIT_CONV_OK, jitentry::section, and verbprintf.
Referenced by op_jit_convert().


| static int fill_symtab | ( | void | ) | [static] |
Definition at line 27 of file create_bfd.c.
References cur_bfd, debug, entries_address_ascending, entry_count, OP_JIT_CONV_FAIL, OP_JIT_CONV_OK, jitentry::section, jitentry::symbol_name, syms, verbprintf, and jitentry::vma.
Referenced by fill_sections().

| static int fill_text_section_content | ( | asection * | section, | |
| int | start_idx, | |||
| int | end_idx | |||
| ) | [static] |
Definition at line 147 of file create_bfd.c.
References jitentry::code, jitentry::code_size, cur_bfd, debug, entries_address_ascending, fill_section_content(), OP_JIT_CONV_OK, jitentry::symbol_name, verbprintf, and jitentry::vma.
Referenced by fill_sections().


| bfd* open_elf | ( | char const * | filename | ) |
Definition at line 250 of file create_bfd.c.
References dump_bfd_arch, dump_bfd_mach, dump_bfd_target_name, and error().
Referenced by op_jit_convert().


| int partition_sections | ( | void | ) |
Definition at line 184 of file create_bfd.c.
References jitentry::code_size, create_text_section(), entries_address_ascending, entry_count, OP_JIT_CONV_FAIL, OP_JIT_CONV_OK, and jitentry::vma.
Referenced by op_jit_convert().


1.6.1