diff options
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/elf32-xtensa.c | 4 | ||||
-rw-r--r-- | bfd/vms.h | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8bc7644..be2478b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * elf32-xtensa.c (vsprint_msg): Add format attribute. Fix + format bugs. + * vms.h (_bfd_vms_debug): Add format attribute. + (_bfd_vms_debug, _bfd_hexdump): Fix typos. + 2005-07-07 H.J. Lu <hongjiu.lu@intel.com> PR 975 diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index b18003c..c97aea2 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -1775,7 +1775,7 @@ elf_xtensa_do_reloc (reloc_howto_type *howto, } -static char * +static char * ATTRIBUTE_PRINTF(2,4) vsprint_msg (const char *origmsg, const char *fmt, int arglen, ...) { /* To reduce the size of the memory leak, @@ -2355,7 +2355,7 @@ elf_xtensa_relocate_section (bfd *output_bfd, else error_message = vsprint_msg (error_message, ": (%s+0x%x)", strlen (name) + 22, - name, rel->r_addend); + name, (int)rel->r_addend); } if (!((*info->callbacks->reloc_dangerous) @@ -620,8 +620,8 @@ struct vms_private_data_struct #define SECTION_NAME_TEMPLATE "__SEC__%d" #if VMS_DEBUG -extern void _bfd_vms_debug (int, char *, ..); -extern void _bfd_hexdump (int, unsignedchar *, int, int); +extern void _bfd_vms_debug (int, char *, ...) ATTRIBUTE_PRINTF_2; +extern void _bfd_hexdump (int, unsigned char *, int, int); #define vms_debug _bfd_vms_debug #endif |