Line 1... |
Line 1... |
/* BFD back-end for Intel 960 COFF files.
|
/* BFD back-end for Intel 960 COFF files.
|
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1997, 1999, 2000, 2001,
|
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1997, 1999, 2000, 2001,
|
2002, 2003, 2004, 2007 Free Software Foundation, Inc.
|
2002, 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
Written by Cygnus Support.
|
Written by Cygnus Support.
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
|
|
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
Line 26... |
Line 26... |
#include "sysdep.h"
|
#include "sysdep.h"
|
#include "bfd.h"
|
#include "bfd.h"
|
#include "libbfd.h"
|
#include "libbfd.h"
|
#include "coff/i960.h"
|
#include "coff/i960.h"
|
#include "coff/internal.h"
|
#include "coff/internal.h"
|
#include "libcoff.h" /* to allow easier abstraction-breaking */
|
|
|
#ifndef bfd_pe_print_pdata
|
|
#define bfd_pe_print_pdata NULL
|
|
#endif
|
|
|
|
#include "libcoff.h" /* To allow easier abstraction-breaking. */
|
|
|
static bfd_boolean coff_i960_is_local_label_name
|
static bfd_boolean coff_i960_is_local_label_name
|
PARAMS ((bfd *, const char *));
|
PARAMS ((bfd *, const char *));
|
static bfd_reloc_status_type optcall_callback
|
static bfd_reloc_status_type optcall_callback
|
PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **));
|
PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **));
|
Line 481... |
Line 486... |
|
|
done = FALSE;
|
done = FALSE;
|
|
|
if (howto->type == R_OPTCALL && ! info->relocatable && symndx != -1)
|
if (howto->type == R_OPTCALL && ! info->relocatable && symndx != -1)
|
{
|
{
|
int class;
|
int class_val;
|
|
|
if (h != NULL)
|
if (h != NULL)
|
class = h->class;
|
class_val = h->symbol_class;
|
else
|
else
|
class = sym->n_sclass;
|
class_val = sym->n_sclass;
|
|
|
switch (class)
|
switch (class_val)
|
{
|
{
|
case C_NULL:
|
case C_NULL:
|
/* This symbol is apparently not from a COFF input file.
|
/* This symbol is apparently not from a COFF input file.
|
We warn, and then assume that it is not a leaf
|
We warn, and then assume that it is not a leaf
|
function. */
|
function. */
|