aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-07-03 22:25:33 +0000
committerNick Clifton <nickc@redhat.com>2000-07-03 22:25:33 +0000
commit00d2865b835b1bba05334dcbb20201b6d99534d6 (patch)
tree7e0c931ab3e73f75424dfc50ef7c19190ef67401 /bfd
parentc07ab2ec0cc5730de491dc2164d3af73ac5f904c (diff)
downloadgdb-00d2865b835b1bba05334dcbb20201b6d99534d6.zip
gdb-00d2865b835b1bba05334dcbb20201b6d99534d6.tar.gz
gdb-00d2865b835b1bba05334dcbb20201b6d99534d6.tar.bz2
Tidy up formatting.
Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog9
-rw-r--r--bfd/elf32-avr.c16
2 files changed, 17 insertions, 8 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d6d0d48..8b1f9bd 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,12 @@
+2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
+
+ * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
+ Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
+ (avr_info_to_howto_rela): Likewise.
+ (elf32_avr_gc_mark_hook): Likewise.
+ (elf32_avr_gc_sweep_hook): Likewise.
+ (elf32_avr_relocate_section): Likewise.
+
2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
* cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
diff --git a/bfd/elf32-avr.c b/bfd/elf32-avr.c
index c99d667..ccdd6b5 100644
--- a/bfd/elf32-avr.c
+++ b/bfd/elf32-avr.c
@@ -369,7 +369,7 @@ struct avr_reloc_map
static reloc_howto_type *
bfd_elf32_bfd_reloc_type_lookup (abfd, code)
- bfd *abfd;
+ bfd *abfd ATTRIBUTE_UNUSED;
bfd_reloc_code_real_type code;
{
unsigned int i;
@@ -389,7 +389,7 @@ bfd_elf32_bfd_reloc_type_lookup (abfd, code)
static void
avr_info_to_howto_rela (abfd, cache_ptr, dst)
- bfd *abfd;
+ bfd *abfd ATTRIBUTE_UNUSED;
arelent *cache_ptr;
Elf32_Internal_Rela *dst;
{
@@ -403,7 +403,7 @@ avr_info_to_howto_rela (abfd, cache_ptr, dst)
static asection *
elf32_avr_gc_mark_hook (abfd, info, rel, h, sym)
bfd *abfd;
- struct bfd_link_info *info;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
Elf_Internal_Rela *rel;
struct elf_link_hash_entry *h;
Elf_Internal_Sym *sym;
@@ -442,10 +442,10 @@ elf32_avr_gc_mark_hook (abfd, info, rel, h, sym)
static boolean
elf32_avr_gc_sweep_hook (abfd, info, sec, relocs)
- bfd *abfd;
- struct bfd_link_info *info;
- asection *sec;
- const Elf_Internal_Rela *relocs;
+ bfd *abfd ATTRIBUTE_UNUSED;
+ struct bfd_link_info *info ATTRIBUTE_UNUSED;
+ asection *sec ATTRIBUTE_UNUSED;
+ const Elf_Internal_Rela *relocs ATTRIBUTE_UNUSED;
{
/* We don't use got and plt entries for avr. */
return true;
@@ -717,7 +717,7 @@ avr_final_link_relocate (howto, input_bfd, input_section,
static boolean
elf32_avr_relocate_section (output_bfd, info, input_bfd, input_section,
contents, relocs, local_syms, local_sections)
- bfd *output_bfd;
+ bfd *output_bfd ATTRIBUTE_UNUSED;
struct bfd_link_info *info;
bfd *input_bfd;
asection *input_section;