mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-11 18:06:03 +08:00
* simple.c: Correct placement of ATTRIBUTE_UNUSED.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2002-10-25 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* simple.c: Correct placement of ATTRIBUTE_UNUSED.
|
||||||
|
|
||||||
2002-10-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
|
2002-10-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
|
||||||
|
|
||||||
* aoutx.h (NAME(aout,swap_ext_reloc_in)): Cast bytes->r_index to
|
* aoutx.h (NAME(aout,swap_ext_reloc_in)): Cast bytes->r_index to
|
||||||
|
84
bfd/simple.c
84
bfd/simple.c
@ -25,56 +25,46 @@
|
|||||||
#include "bfdlink.h"
|
#include "bfdlink.h"
|
||||||
|
|
||||||
static boolean simple_dummy_warning
|
static boolean simple_dummy_warning
|
||||||
PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED,
|
PARAMS ((struct bfd_link_info *, const char *, const char *, bfd *,
|
||||||
const char * ATTRIBUTE_UNUSED, const char * ATTRIBUTE_UNUSED,
|
asection *, bfd_vma));
|
||||||
bfd * ATTRIBUTE_UNUSED, asection * ATTRIBUTE_UNUSED,
|
|
||||||
bfd_vma ATTRIBUTE_UNUSED));
|
|
||||||
|
|
||||||
static boolean simple_dummy_undefined_symbol
|
static boolean simple_dummy_undefined_symbol
|
||||||
PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED,
|
PARAMS ((struct bfd_link_info *, const char *, bfd *, asection *,
|
||||||
const char * ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED,
|
bfd_vma, boolean));
|
||||||
asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED,
|
|
||||||
boolean ATTRIBUTE_UNUSED));
|
|
||||||
|
|
||||||
static boolean simple_dummy_reloc_overflow
|
static boolean simple_dummy_reloc_overflow
|
||||||
PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED,
|
PARAMS ((struct bfd_link_info *, const char *, const char *, bfd_vma,
|
||||||
const char * ATTRIBUTE_UNUSED, const char * ATTRIBUTE_UNUSED,
|
bfd *, asection *, bfd_vma));
|
||||||
bfd_vma ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED,
|
|
||||||
asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED));
|
|
||||||
|
|
||||||
static boolean simple_dummy_reloc_dangerous
|
static boolean simple_dummy_reloc_dangerous
|
||||||
PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED,
|
PARAMS ((struct bfd_link_info *, const char *, bfd *, asection *, bfd_vma));
|
||||||
const char * ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED,
|
|
||||||
asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED));
|
|
||||||
|
|
||||||
static boolean simple_dummy_unattached_reloc
|
static boolean simple_dummy_unattached_reloc
|
||||||
PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED,
|
PARAMS ((struct bfd_link_info *, const char *, bfd *, asection *, bfd_vma));
|
||||||
const char * ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED,
|
|
||||||
asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED));
|
|
||||||
|
|
||||||
bfd_byte * bfd_simple_get_relocated_section_contents
|
bfd_byte * bfd_simple_get_relocated_section_contents
|
||||||
PARAMS ((bfd *, asection *, bfd_byte *));
|
PARAMS ((bfd *, asection *, bfd_byte *));
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
simple_dummy_warning (link_info, warning, symbol, abfd, section, address)
|
simple_dummy_warning (link_info, warning, symbol, abfd, section, address)
|
||||||
struct bfd_link_info *link_info;
|
struct bfd_link_info *link_info ATTRIBUTE_UNUSED;
|
||||||
const char *warning;
|
const char *warning ATTRIBUTE_UNUSED;
|
||||||
const char *symbol;
|
const char *symbol ATTRIBUTE_UNUSED;
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
asection *section;
|
asection *section ATTRIBUTE_UNUSED;
|
||||||
bfd_vma address;
|
bfd_vma address ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
simple_dummy_undefined_symbol (link_info, name, abfd, section, address, fatal)
|
simple_dummy_undefined_symbol (link_info, name, abfd, section, address, fatal)
|
||||||
struct bfd_link_info *link_info;
|
struct bfd_link_info *link_info ATTRIBUTE_UNUSED;
|
||||||
const char *name;
|
const char *name ATTRIBUTE_UNUSED;
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
asection *section;
|
asection *section ATTRIBUTE_UNUSED;
|
||||||
bfd_vma address;
|
bfd_vma address ATTRIBUTE_UNUSED;
|
||||||
boolean fatal;
|
boolean fatal ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -82,35 +72,35 @@ simple_dummy_undefined_symbol (link_info, name, abfd, section, address, fatal)
|
|||||||
static boolean
|
static boolean
|
||||||
simple_dummy_reloc_overflow (link_info, name, reloc_name, addend, abfd,
|
simple_dummy_reloc_overflow (link_info, name, reloc_name, addend, abfd,
|
||||||
section, address)
|
section, address)
|
||||||
struct bfd_link_info *link_info;
|
struct bfd_link_info *link_info ATTRIBUTE_UNUSED;
|
||||||
const char *name;
|
const char *name ATTRIBUTE_UNUSED;
|
||||||
const char *reloc_name;
|
const char *reloc_name ATTRIBUTE_UNUSED;
|
||||||
bfd_vma addend;
|
bfd_vma addend ATTRIBUTE_UNUSED;
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
asection *section;
|
asection *section ATTRIBUTE_UNUSED;
|
||||||
bfd_vma address;
|
bfd_vma address ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
simple_dummy_reloc_dangerous (link_info, message, abfd, section, address)
|
simple_dummy_reloc_dangerous (link_info, message, abfd, section, address)
|
||||||
struct bfd_link_info *link_info;
|
struct bfd_link_info *link_info ATTRIBUTE_UNUSED;
|
||||||
const char *message;
|
const char *message ATTRIBUTE_UNUSED;
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
asection *section;
|
asection *section ATTRIBUTE_UNUSED;
|
||||||
bfd_vma address;
|
bfd_vma address ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
simple_dummy_unattached_reloc (link_info, name, abfd, section, address)
|
simple_dummy_unattached_reloc (link_info, name, abfd, section, address)
|
||||||
struct bfd_link_info *link_info;
|
struct bfd_link_info *link_info ATTRIBUTE_UNUSED;
|
||||||
const char *name;
|
const char *name ATTRIBUTE_UNUSED;
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
asection *section;
|
asection *section ATTRIBUTE_UNUSED;
|
||||||
bfd_vma address;
|
bfd_vma address ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user