diff options
author | Dave Anglin <dave.anglin@nrc.ca> | 2002-10-25 03:19:29 +0000 |
---|---|---|
committer | Dave Anglin <dave.anglin@nrc.ca> | 2002-10-25 03:19:29 +0000 |
commit | 5d661875b3c1406af78d1f690d14f514c07dd0ac (patch) | |
tree | 800dd8caa141344a0a2788c86246a554275e7c46 /bfd/simple.c | |
parent | d45913a06f533285d66d3b10132d0b70dc872782 (diff) | |
download | gdb-5d661875b3c1406af78d1f690d14f514c07dd0ac.zip gdb-5d661875b3c1406af78d1f690d14f514c07dd0ac.tar.gz gdb-5d661875b3c1406af78d1f690d14f514c07dd0ac.tar.bz2 |
Files missed in previous commit.
Diffstat (limited to 'bfd/simple.c')
-rw-r--r-- | bfd/simple.c | 101 |
1 files changed, 70 insertions, 31 deletions
diff --git a/bfd/simple.c b/bfd/simple.c index f2ee576..0c61cb4 100644 --- a/bfd/simple.c +++ b/bfd/simple.c @@ -24,56 +24,93 @@ #include "libbfd.h" #include "bfdlink.h" +static boolean simple_dummy_warning + PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED, + const char * ATTRIBUTE_UNUSED, const char * ATTRIBUTE_UNUSED, + bfd * ATTRIBUTE_UNUSED, asection * ATTRIBUTE_UNUSED, + bfd_vma ATTRIBUTE_UNUSED)); + +static boolean simple_dummy_undefined_symbol + PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED, + const char * ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED, + asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED, + boolean ATTRIBUTE_UNUSED)); + +static boolean simple_dummy_reloc_overflow + PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED, + const char * ATTRIBUTE_UNUSED, const char * ATTRIBUTE_UNUSED, + bfd_vma ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED, + asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED)); + +static boolean simple_dummy_reloc_dangerous + PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED, + const char * ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED, + asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED)); + +static boolean simple_dummy_unattached_reloc + PARAMS ((struct bfd_link_info * ATTRIBUTE_UNUSED, + const char * ATTRIBUTE_UNUSED, bfd * ATTRIBUTE_UNUSED, + asection * ATTRIBUTE_UNUSED, bfd_vma ATTRIBUTE_UNUSED)); + +bfd_byte * bfd_simple_get_relocated_section_contents + PARAMS ((bfd *, asection *, bfd_byte *)); + static boolean -simple_dummy_warning (struct bfd_link_info *link_info ATTRIBUTE_UNUSED, - const char *warning ATTRIBUTE_UNUSED, - const char *symbol ATTRIBUTE_UNUSED, - bfd *abfd ATTRIBUTE_UNUSED, - asection *section ATTRIBUTE_UNUSED, - bfd_vma address ATTRIBUTE_UNUSED) +simple_dummy_warning (link_info, warning, symbol, abfd, section, address) + struct bfd_link_info *link_info; + const char *warning; + const char *symbol; + bfd *abfd; + asection *section; + bfd_vma address; { return true; } static boolean -simple_dummy_undefined_symbol (struct bfd_link_info *link_info ATTRIBUTE_UNUSED, - const char *name ATTRIBUTE_UNUSED, - bfd *abfd ATTRIBUTE_UNUSED, - asection *section ATTRIBUTE_UNUSED, - bfd_vma address ATTRIBUTE_UNUSED, - boolean fatal ATTRIBUTE_UNUSED) +simple_dummy_undefined_symbol (link_info, name, abfd, section, address, fatal) + struct bfd_link_info *link_info; + const char *name; + bfd *abfd; + asection *section; + bfd_vma address; + boolean fatal; { return true; } static boolean -simple_dummy_reloc_overflow (struct bfd_link_info *link_info ATTRIBUTE_UNUSED, - const char *name ATTRIBUTE_UNUSED, - const char *reloc_name ATTRIBUTE_UNUSED, - bfd_vma addend ATTRIBUTE_UNUSED, - bfd *abfd ATTRIBUTE_UNUSED, - asection *section ATTRIBUTE_UNUSED, - bfd_vma address ATTRIBUTE_UNUSED) +simple_dummy_reloc_overflow (link_info, name, reloc_name, addend, abfd, + section, address) + struct bfd_link_info *link_info; + const char *name; + const char *reloc_name; + bfd_vma addend; + bfd *abfd; + asection *section; + bfd_vma address; { return true; } static boolean -simple_dummy_reloc_dangerous (struct bfd_link_info *link_info ATTRIBUTE_UNUSED, - const char *message ATTRIBUTE_UNUSED, - bfd *abfd ATTRIBUTE_UNUSED, - asection *section ATTRIBUTE_UNUSED, - bfd_vma address ATTRIBUTE_UNUSED) +simple_dummy_reloc_dangerous (link_info, message, abfd, section, address) + struct bfd_link_info *link_info; + const char *message; + bfd *abfd; + asection *section; + bfd_vma address; { return true; } static boolean -simple_dummy_unattached_reloc (struct bfd_link_info *link_info ATTRIBUTE_UNUSED, - const char *name ATTRIBUTE_UNUSED, - bfd *abfd ATTRIBUTE_UNUSED, - asection *section ATTRIBUTE_UNUSED, - bfd_vma address ATTRIBUTE_UNUSED) +simple_dummy_unattached_reloc (link_info, name, abfd, section, address) + struct bfd_link_info *link_info; + const char *name; + bfd *abfd; + asection *section; + bfd_vma address; { return true; } @@ -99,8 +136,10 @@ DESCRIPTION */ bfd_byte * -bfd_simple_get_relocated_section_contents (bfd *abfd, asection *sec, - bfd_byte *outbuf) +bfd_simple_get_relocated_section_contents (abfd, sec, outbuf) + bfd *abfd; + asection *sec; + bfd_byte *outbuf; { struct bfd_link_info link_info; struct bfd_link_order link_order; |