Back to index

cell-binutils  2.17cvs20070401
Defines | Functions
coff-aux.c File Reference
#include "bfd.h"
#include "sysdep.h"
#include "coff/aux-coff.h"
#include "coff-m68k.c"

Go to the source code of this file.


#define TARGET_SYM   m68kaux_coff_vec
#define TARGET_NAME   "coff-m68k-aux"
#define TARG_AUX
#define COFF_PAGE_SIZE   0x1000
#define coff_link_add_one_symbol   coff_m68k_aux_link_add_one_symbol


static bfd_boolean
PARAMS ((struct bfd_link_info *, bfd *, const char *, flagword, asection *, bfd_vma, const char *, bfd_boolean, bfd_boolean, struct bfd_link_hash_entry **))
static bfd_boolean coff_m68k_aux_link_add_one_symbol (struct bfd_link_info *info, bfd *abfd, const char *name, flagword flags, asection *section, bfd_vma value, const char *string, bfd_boolean copy, bfd_boolean collect, struct bfd_link_hash_entry **hashp)

Define Documentation

Definition at line 34 of file coff-aux.c.

Definition at line 38 of file coff-aux.c.

Definition at line 48 of file coff-aux.c.

Definition at line 28 of file coff-aux.c.

#define COFF_PAGE_SIZE   0x1000

Definition at line 31 of file coff-aux.c.


Definition at line 36 of file coff-aux.c.

#define TARG_AUX

Definition at line 25 of file coff-aux.c.

#define TARGET_NAME   "coff-m68k-aux"

Definition at line 22 of file coff-aux.c.

Definition at line 21 of file coff-aux.c.

Function Documentation

static bfd_boolean coff_m68k_aux_link_add_one_symbol ( struct bfd_link_info info,
bfd abfd,
const char *  name,
flagword  flags,
asection section,
bfd_vma  value,
const char *  string,
bfd_boolean  copy,
bfd_boolean  collect,
struct bfd_link_hash_entry **  hashp 
) [static]

Definition at line 60 of file coff-aux.c.

  struct bfd_link_hash_entry *h;

  if ((flags & (BSF_WARNING | BSF_CONSTRUCTOR | BSF_WEAK)) == 0 &&
      !bfd_is_und_section (section) &&
      !bfd_is_com_section (section))
      /* The new symbol is a definition or an indirect definition */

      /* This bit copied from linker.c */
      if (hashp != NULL && *hashp != NULL)
         h = *hashp;
         BFD_ASSERT (strcmp (h->root.string, name) == 0);
         h = bfd_link_hash_lookup (info->hash, name, TRUE, copy, FALSE);
         if (h == NULL)
             if (hashp != NULL)
              *hashp = NULL;
             return FALSE;

      if (info->notice_hash != (struct bfd_hash_table *) NULL
         && (bfd_hash_lookup (info->notice_hash, name, FALSE, FALSE)
             != (struct bfd_hash_entry *) NULL))
         if (! (*info->callbacks->notice) (info, name, abfd, section, value))
           return FALSE;

      if (hashp != (struct bfd_link_hash_entry **) NULL)
       *hashp = h;
      /* end duplication from linker.c */

      if (h->type == bfd_link_hash_defined
         || h->type == bfd_link_hash_indirect)
         asection *msec;

         if (h->type == bfd_link_hash_defined)
           msec = h->u.def.section;
           msec = bfd_ind_section_ptr;

         if (bfd_is_abs_section (msec) && !bfd_is_abs_section (section))
             h->u.def.section = section;
             h->u.def.value = value;
             return TRUE;
         else if (bfd_is_abs_section (section) && !bfd_is_abs_section (msec))
           return TRUE;

  /* If we didn't exit early, finish processing in the generic routine */
  return _bfd_generic_link_add_one_symbol (info, abfd, name, flags, section,
                                      value, string, copy, collect,

Here is the call graph for this function: