create_bfd.c File Reference

#include "opjitconv.h"
#include "opd_printf.h"
#include "op_libiberty.h"
#include <bfd.h>
#include <stdint.h>
#include <stdio.h>
Include dependency graph for create_bfd.c:

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)

Detailed Description

Routine to handle elf file creation

Remarks:
Copyright 2007 OProfile authors
Read the file COPYING
Author:
Jens Wilke Maynard Johnson Philippe Elie Daniel Hansel

Copyright IBM Corporation 2007

Definition in file create_bfd.c.


Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1