Back to index

cell-binutils  2.17cvs20070401
Defines | Functions | Variables
elf64-gen.c File Reference
#include "bfd.h"
#include "sysdep.h"
#include "libbfd.h"
#include "elf-bfd.h"
#include "elf64-target.h"

Go to the source code of this file.

Defines

#define TARGET_LITTLE_SYM   bfd_elf64_little_generic_vec
#define TARGET_LITTLE_NAME   "elf64-little"
#define TARGET_BIG_SYM   bfd_elf64_big_generic_vec
#define TARGET_BIG_NAME   "elf64-big"
#define ELF_ARCH   bfd_arch_unknown
#define ELF_MACHINE_CODE   EM_NONE
#define ELF_MAXPAGESIZE   0x1
#define bfd_elf64_bfd_reloc_type_lookup   bfd_default_reloc_type_lookup
#define bfd_elf64_bfd_reloc_name_lookup   _bfd_norelocs_bfd_reloc_name_lookup
#define bfd_elf64_bfd_link_add_symbols   elf64_generic_link_add_symbols
#define elf_info_to_howto   elf_generic_info_to_howto
#define elf_info_to_howto_rel   elf_generic_info_to_howto_rel

Functions

static void elf_generic_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *bfd_reloc, Elf_Internal_Rela *elf_reloc ATTRIBUTE_UNUSED)
static void elf_generic_info_to_howto_rel (bfd *abfd ATTRIBUTE_UNUSED, arelent *bfd_reloc, Elf_Internal_Rela *elf_reloc ATTRIBUTE_UNUSED)
static void check_for_relocs (bfd *abfd, asection *o, void *failed)
static bfd_boolean elf64_generic_link_add_symbols (bfd *abfd, struct bfd_link_info *info)

Variables

static reloc_howto_type dummy

Define Documentation

Definition at line 98 of file elf64-gen.c.

Definition at line 97 of file elf64-gen.c.

Definition at line 96 of file elf64-gen.c.

#define ELF_ARCH   bfd_arch_unknown

Definition at line 93 of file elf64-gen.c.

Definition at line 99 of file elf64-gen.c.

Definition at line 100 of file elf64-gen.c.

#define ELF_MACHINE_CODE   EM_NONE

Definition at line 94 of file elf64-gen.c.

#define ELF_MAXPAGESIZE   0x1

Definition at line 95 of file elf64-gen.c.

#define TARGET_BIG_NAME   "elf64-big"

Definition at line 92 of file elf64-gen.c.

Definition at line 91 of file elf64-gen.c.

#define TARGET_LITTLE_NAME   "elf64-little"

Definition at line 90 of file elf64-gen.c.

Definition at line 89 of file elf64-gen.c.


Function Documentation

static void check_for_relocs ( bfd abfd,
asection o,
void *  failed 
) [static]

Definition at line 61 of file elf64-gen.c.

{
  if ((o->flags & SEC_RELOC) != 0)
    {
      Elf_Internal_Ehdr *ehdrp;

      ehdrp = elf_elfheader (abfd);
      _bfd_error_handler (_("%B: Relocations in generic ELF (EM: %d)"),
                       abfd, ehdrp->e_machine);

      bfd_set_error (bfd_error_wrong_format);
      * (bfd_boolean *) failed = TRUE;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static bfd_boolean elf64_generic_link_add_symbols ( bfd abfd,
struct bfd_link_info info 
) [static]

Definition at line 77 of file elf64-gen.c.

{
  bfd_boolean failed = FALSE;

  /* Check if there are any relocations.  */
  bfd_map_over_sections (abfd, check_for_relocs, & failed);

  if (failed)
    return FALSE;
  return bfd_elf_link_add_symbols (abfd, info);
}

Here is the call graph for this function:

static void elf_generic_info_to_howto ( bfd *abfd  ATTRIBUTE_UNUSED,
arelent bfd_reloc,
Elf_Internal_Rela *elf_reloc  ATTRIBUTE_UNUSED 
) [static]

Definition at line 45 of file elf64-gen.c.

{
  bfd_reloc->howto = &dummy;
}
static void elf_generic_info_to_howto_rel ( bfd *abfd  ATTRIBUTE_UNUSED,
arelent bfd_reloc,
Elf_Internal_Rela *elf_reloc  ATTRIBUTE_UNUSED 
) [static]

Definition at line 53 of file elf64-gen.c.

{
  bfd_reloc->howto = &dummy;
}

Variable Documentation

reloc_howto_type dummy [static]
Initial value:
  HOWTO (0,                 
        0,                  
        0,                  
        0,                  
        FALSE,                     
        0,                  
        complain_overflow_dont, 
        NULL,               
        "UNKNOWN",          
        FALSE,                     
        0,                  
        0,                  
        FALSE)

Definition at line 29 of file elf64-gen.c.