* readelf.c (get_file_type, get_machine_name, get_osabi_name,
authorJakub Jelinek <jakub@redhat.com>
Mon, 28 Feb 2005 15:27:16 +0000 (15:27 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 28 Feb 2005 15:27:16 +0000 (15:27 +0000)
commite9e446227d91e4e0902ee7a3a1381b64eacfcd68
treeb40b0bf61aacfe11b0ec2c8a51e286d99db103ae
parent2da12f1243a8fc0fd8fb420410bce7572992b389
* readelf.c (get_file_type, get_machine_name, get_osabi_name,
get_segment_type, get_section_type_name, get_elf_class,
get_data_encoding, get_group_flags, dynamic_section_mips_val,
get_symbol_binding, get_symbol_type, get_TAG_name, get_FORM_name,
get_AT_name, process_mips_specific, process_gnu_liblist,
get_note_type, get_netbsd_elfcore_note_type): Use snprintf instead of
sprintf where needed.
(get_dynamic_type): Likewise.  Increase buff to 64 bytes.
(get_elf_section_flags): Increase buff to 33 bytes.  Avoid
using strcat.
(get_dynamic_flags): Renamed to...
(print_dynamic_flags): ... this.  Print the flags to stdout instead
of returning them as string.
(process_dynamic_section): Adjust caller.
binutils/ChangeLog
binutils/readelf.c