GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
compile-object-load.c File Reference
#include "defs.h"
#include "compile-object-load.h"
#include "compile-internal.h"
#include "command.h"
#include "objfiles.h"
#include "gdbcore.h"
#include "readline/tilde.h"
#include "bfdlink.h"
#include "gdbcmd.h"
#include "regcache.h"
#include "inferior.h"
#include "gdbthread.h"
#include "compile.h"
#include "block.h"
#include "arch-utils.h"
#include <algorithm>

Go to the source code of this file.

Classes

struct  setup_sections_data
 
struct  link_hash_table_cleanup_data
 

Functions

static void link_callbacks_multiple_definition (struct bfd_link_info *link_info, struct bfd_link_hash_entry *h, bfd *nbfd, asection *nsec, bfd_vma nval)
 
static void link_callbacks_warning (struct bfd_link_info *link_info, const char *xwarning, const char *symbol, bfd *abfd, asection *section, bfd_vma address)
 
static void link_callbacks_undefined_symbol (struct bfd_link_info *link_info, const char *name, bfd *abfd, asection *section, bfd_vma address, bfd_boolean is_fatal)
 
static void link_callbacks_reloc_overflow (struct bfd_link_info *link_info, struct bfd_link_hash_entry *entry, const char *name, const char *reloc_name, bfd_vma addend, bfd *abfd, asection *section, bfd_vma address)
 
static void link_callbacks_reloc_dangerous (struct bfd_link_info *link_info, const char *message, bfd *abfd, asection *section, bfd_vma address)
 
static void link_callbacks_unattached_reloc (struct bfd_link_info *link_info, const char *name, bfd *abfd, asection *section, bfd_vma address)
 
static void link_callbacks_einfo (const char *fmt,...) ATTRIBUTE_PRINTF(1
 
static void copy_sections (bfd *abfd, asection *sect, void *data)
 
static struct typeget_out_value_type (struct symbol *func_sym, struct objfile *objfile, enum compile_i_scope_types scope)
 
static struct typeget_regs_type (struct symbol *func_sym, struct objfile *objfile)
 
static void store_regs (struct type *regs_type, CORE_ADDR regs_base)
 
compile_module_up compile_object_load (const compile_file_names &file_names, enum compile_i_scope_types scope, void *scope_data)
 

Variables

static const struct bfd_link_callbacks link_callbacks
 

Function Documentation

◆ compile_object_load()

compile_module_up compile_object_load ( const compile_file_names & file_names,
enum compile_i_scope_types scope,
void * scope_data )

◆ copy_sections()

static void copy_sections ( bfd * abfd,
asection * sect,
void * data )
static

◆ get_out_value_type()

static struct type * get_out_value_type ( struct symbol * func_sym,
struct objfile * objfile,
enum compile_i_scope_types scope )
static

◆ get_regs_type()

static struct type * get_regs_type ( struct symbol * func_sym,
struct objfile * objfile )
static

◆ link_callbacks_einfo()

static void static void link_callbacks_einfo ( const char * fmt,
... )
static

Definition at line 274 of file compile-object-load.c.

◆ link_callbacks_multiple_definition()

static void link_callbacks_multiple_definition ( struct bfd_link_info * link_info,
struct bfd_link_hash_entry * h,
bfd * nbfd,
asection * nsec,
bfd_vma nval )
static

Definition at line 195 of file compile-object-load.c.

◆ link_callbacks_reloc_dangerous()

static void link_callbacks_reloc_dangerous ( struct bfd_link_info * link_info,
const char * message,
bfd * abfd,
asection * section,
bfd_vma address )
static

Definition at line 245 of file compile-object-load.c.

◆ link_callbacks_reloc_overflow()

static void link_callbacks_reloc_overflow ( struct bfd_link_info * link_info,
struct bfd_link_hash_entry * entry,
const char * name,
const char * reloc_name,
bfd_vma addend,
bfd * abfd,
asection * section,
bfd_vma address )
static

Definition at line 234 of file compile-object-load.c.

◆ link_callbacks_unattached_reloc()

static void link_callbacks_unattached_reloc ( struct bfd_link_info * link_info,
const char * name,
bfd * abfd,
asection * section,
bfd_vma address )
static

Definition at line 258 of file compile-object-load.c.

References name.

◆ link_callbacks_undefined_symbol()

static void link_callbacks_undefined_symbol ( struct bfd_link_info * link_info,
const char * name,
bfd * abfd,
asection * section,
bfd_vma address,
bfd_boolean is_fatal )
static

Definition at line 222 of file compile-object-load.c.

References name.

◆ link_callbacks_warning()

static void link_callbacks_warning ( struct bfd_link_info * link_info,
const char * xwarning,
const char * symbol,
bfd * abfd,
asection * section,
bfd_vma address )
static

Definition at line 210 of file compile-object-load.c.

◆ store_regs()

static void store_regs ( struct type * regs_type,
CORE_ADDR regs_base )
static

Variable Documentation

◆ link_callbacks

const struct bfd_link_callbacks link_callbacks
static
Initial value:
=
{
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static void link_callbacks_multiple_definition(struct bfd_link_info *link_info, struct bfd_link_hash_entry *h, bfd *nbfd, asection *nsec, bfd_vma nval)
static void link_callbacks_einfo(const char *fmt,...) ATTRIBUTE_PRINTF(1
static void link_callbacks_reloc_dangerous(struct bfd_link_info *link_info, const char *message, bfd *abfd, asection *section, bfd_vma address)
static void link_callbacks_warning(struct bfd_link_info *link_info, const char *xwarning, const char *symbol, bfd *abfd, asection *section, bfd_vma address)
static void link_callbacks_unattached_reloc(struct bfd_link_info *link_info, const char *name, bfd *abfd, asection *section, bfd_vma address)
static void link_callbacks_reloc_overflow(struct bfd_link_info *link_info, struct bfd_link_hash_entry *entry, const char *name, const char *reloc_name, bfd_vma addend, bfd *abfd, asection *section, bfd_vma address)
static void link_callbacks_undefined_symbol(struct bfd_link_info *link_info, const char *name, bfd *abfd, asection *section, bfd_vma address, bfd_boolean is_fatal)

Definition at line 289 of file compile-object-load.c.

Referenced by copy_sections().