Warn unsupported compress type and corrupted compressed section
[external/binutils.git] / binutils / ChangeLog
1 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * readelf.c (dump_section_as_strings): Warn unsupported compress
4         type and corrupted compressed section.
5         (dump_section_as_bytes): Likewise.
6         (load_specific_debug_section): Likewise.
7
8 2015-07-09  Catherine Moore  <clm@codesourcery.com>
9
10         * readelf.c (print_mips_fp_abi_value): Handle
11         Val_GNU_MIPS_ABI_FP_NAN2008.
12
13 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
14
15         * readelf.c (get_mips_dynamic_type): Handle DT_MIPS_RLD_MAP_REL.
16
17 2015-06-22  Nick Clifton  <nickc@redhat.com>
18
19         * objdump.c (disassemble_bytes): Set the stop_vma field in the
20         disassemble_info structure when disassembling code sections with
21         -d.
22         * doc/binutils.texi (objdump): Document the discrepancy between -d
23         and -D.
24
25 2015-06-05  Nick Clifton  <nickc@redhat.com>
26
27         * dwarf.c (read_debug_line_header): Use reloc_at to detect
28         incomplete .debug_line headers
29
30 2015-05-29  Roland McGrath  <mcgrathr@google.com>
31
32         * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize
33         GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL.
34
35 2015-05-29  Stephen Kitt  <steve@sk2.org>
36
37         * dlltool.c (make_one_lib_file): Clear .idata$6 before use.
38         (main): Fail if the output file specified by the -z option cannot
39         be opened.
40
41 2015-05-18  Nick Clifton  <nickc@redhat.com>
42
43         PR binutils/18420
44         * ia64-unwind.c (unw_decode): Add end parameter.  Pass parameter
45         on to decode functions.
46         (unw_devode_p2_p5): Pass end paraemter to UNW_DEC_SPILL_MASK.
47         (UNW_DEC_SPILL_MASK): Add end parameter.  Check that unw_rlen does
48         not take us beyond the end of the buffer.
49         * ia64-unwind.h (unw_decode): Update prototype.
50         * readelf.c (dump_ia64_unwind): Pass end pointer to unw_decode.
51
52 2015-05-15  H.J. Lu  <hongjiu.lu@intel.com>
53
54         * readelf.c (dump_section_as_strings): Change pointers from
55         char * to unsigned char *.
56
57 2015-05-15  H.J. Lu  <hongjiu.lu@intel.com>
58
59         PR binutis/18386
60         * doc/binutils.texi: Document -Mamd64 and -Mintel64.
61
62 2015-05-15  Nick Clifton  <nickc@redhat.com>
63
64         * readelf.c (options): Add "decompress".
65         (usage): Mention -z/--decompress.
66         (parse_args): Handle -z.
67         (uncompress_section_contents): Move to earlier in the file.
68         (dump_section_as_strings): If requested, decompress the section
69         before dumping.
70         (dump_section_as_bytes): Likewise.
71         * doc/binutils.texi: Document the new option.
72
73 2015-05-14  Peter Bergner  <bergner@vnet.ibm.com>
74
75         * MAINTAINERS: Add myself as PPC maintainer.
76
77 2015-05-14  H.J. Lu  <hongjiu.lu@intel.com>
78
79         * readelf.c (uncompress_section_contents): Add a parameter for
80         uncompressed size.  Don't check the zlib header.
81         (load_specific_debug_section): Updated.
82
83 2015-05-15  Nick Clifton  <nickc@redhat.com>
84
85         PR binutils/18374
86         * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs
87         fields.
88         (struct dwarf_section_display): Change bitfield to boolean.
89         (reloc_at): Add prototype.
90         * dwarf.c (display_loc_list): Ignore list terminators if there are
91         relocs against them.
92         (display_debug_loc): Issue a warning if there are relocs against
93         the .debug_loc section.
94         (display_displays): Initialise reloc_info and num_relocs fields.
95         * objdump.c (load_specific_debug_section): Initialise reloc_info
96         and num_relocs fields.
97         (reloc_at): New function.
98         * readelf.c (is_32bit_abs_reloc): Add IA64's R_IA64_DIS32LSB
99         reloc.
100         (reloc_at): New function.
101         (apply_relocations): Add relocs_return and num_relocs_return
102         parameters.  Fill them in with the loaded relocs if non-NULL.
103         (dump_section_as_bytes): Update call to apply_relocations.
104         (load_specific_debug_section): Initialise reloc_info and
105         num_relocs fields.
106
107 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
108
109         * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
110
111 2015-05-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
112
113         * MAINTAINERS: Add myself as s390 and s390x maintainer.
114
115 2015-05-12  Stephen Kitt  <steve@sk2.org>
116
117         * dlltool.c (main): Accept -t as an abbreviation for
118         --temp-prefix.
119
120 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
121
122         * dwarf.c (dwarf_regnames_iamcu): New.
123         (init_dwarf_regnames_iamcu): Likewise.
124         (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
125         * dwarf.h (init_dwarf_regnames_iamcu): New.
126         * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
127         bfd_arch_iamcu.
128
129 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
130
131         * elfedit.c (enum elfclass): New.
132         (input_elf_class): Change type to enum elfclass.
133         (output_elf_class): New.
134         (elf_class): Change return type to enum elfclass.  Support EM_386
135         and EM_IAMCU.
136         (update_elf_header): Check if input and output ELF classes match.
137         (elf_machine): Support EM_386 and EM_IAMCU.
138         (main): Update input_elf_class.  Set output_elf_class.
139         * doc/binutils.texi: Update elfedit.
140
141 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
142
143         * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
144         * readelf.c (guess_is_rela): Likewise.
145         (dump_relocations): Likewise.
146         (get_machine_name): Likewise.
147         (get_elf_section_flags): Likewise.
148         (process_section_headers): Likewise.
149         (is_32bit_abs_reloc): Likewise.
150         (is_32bit_pcrel_reloc): Likewise.
151
152 2015-04-30  Nick Clifton  <nickc@redhat.com>
153
154         * readelf.c (get_machine_flags): Add description of MeP flags.
155
156 2015-04-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
157
158         * readelf.c (display_s390_gnu_attribute): New function.
159         (process_s390_specific): New function.
160         (process_arch_specific): Call process_s390_specific.
161
162 2015-04-24  Nick Clifton  <nickc@redhat.com>
163
164         PR 18313
165         * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
166         * readelf.c (uncompress_section_contents): Zero initialise the
167         zstream structure.
168
169 2015-04-23  H.J. Lu  <hongjiu.lu@intel.com>
170
171         PR binutils/18209
172         * objcopy.c (setup_section): Copy compress status.
173
174 2015-04-15  H.J. Lu  <hongjiu.lu@intel.com>
175
176         * NEWS: Mention
177         --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
178
179 2015-04-14  Nick Clifton  <nickc@redhat.com>
180
181         * readelf.c (target_specific_reloc_handling): Add code to handle
182         RL78 complex relocs.
183
184 2015-04-13  Doug Evans  <dje@google.com>
185
186         PR binutils/18218
187         * readelf.c (printable_section_name): Constify sec argument.
188         (apply_relocations): Ditto.  New arg "size".  All callers updated.
189         (load_specific_debug_section): Constify sec argument.
190         Remove side-effect of modifying sec->sh_size.
191
192 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
193
194         * objcopy.c (do_debug_sections): Use bit patterns.
195         (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
196         and compress_gabi_zlib on non-ELF input.
197         (copy_file): Don't check non-ELF input here.
198
199 2015-04-09  Nick Clifton  <nickc@redhat.com>
200
201         * readelf.c (get_machine_flags): Report the setting of the string
202         insn using bits.
203
204 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
205
206         * objcopy.c (do_debug_sections): Add compress_zlib,
207         compress_gnu_zlib and compress_gabi_zlib.
208         (copy_options): Use optional_argument on compress-debug-sections.
209         (copy_usage): Update --compress-debug-sections.
210         (copy_file): Handle compress_zlib, compress_gnu_zlib and
211         compress_gabi_zlib.
212         (copy_main): Handle
213         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
214         * doc/binutils.texi: Document
215         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
216
217 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
218
219         * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
220         --interleave[=<number>].
221
222 2015-04-05  H.J. Lu  <hongjiu.lu@intel.com>
223
224         * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
225         (get_compression_header): New.
226         (process_section_headers): Dump compression header if needed.
227         (uncompress_section_contents): Don't free compressed_buffer here.
228         (load_specific_debug_section): Free the compressed buffer, update
229         the section buffer and the section size if uncompress is
230         successful.
231
232 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
233
234         * configure: Regenerated.
235
236 2015-04-02  Mike Frysinger  <vapier@gentoo.org>
237
238         * MAINTAINERS: Update my e-mail address.
239
240 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
241
242         * configure: Regenerated.
243
244 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
245
246         * configure.ac: Revert the AM_ZLIB change.
247         * Makefile.in: Regenerated.
248         * aclocal.m4: Likewise.
249         * configure: Likewise.
250
251 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
252
253         * Makefile.am (ZLIB): New.
254         (ZLIBINC): Likewise.
255         (AM_CFLAGS): Add $(ZLIBINC).
256         (readelf_LDADD): Add $(ZLIB).
257         * configure.ac (AM_ZLIB): Removed.
258         (zlibdir): New.  AC_SUBST.
259         (zlibinc): Likewise.
260         Add --with-system-zlib.
261         * Makefile.in: Regenerated.
262         * config.in: Likewise.
263         * configure: Likewise.
264
265 2015-03-19  Nick Clifton  <nickc@redhat.com>
266
267         * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
268
269 2015-03-18  Jon Turney  <jon.turney@dronecode.org.uk>
270             Nick Clifton  <nickc@redhat.com>
271
272         PR binutils/18087
273         * doc/binutils.texi: Note that when objcopy compresses debug
274         sections the compression is only performed if it makes the section
275         smaller.
276
277 2015-03-10  H.J. Lu  <hongjiu.lu@intel.com>
278
279         PR binutils/18101
280         * readelf.c (parse_args): Move nothing to do warning to ...
281         (main): Here.
282
283 2015-03-10  Nick Clifton  <nickc@redhat.com>
284
285         PR binutils/18101
286         * readelf.c (parse_args): Enhance check for nothing to do by
287         accounting for the --wide option.
288
289         PR binutils/17636
290         * objcopy.c (copy_object): Avoid calling fatal as that does not
291         allow the parent to clean up temporary files.
292
293 2015-03-10  Yuri Gribov  <y.gribov@samsung.arm>
294
295         PR ld/16572
296         * readelf.c: Remove support for ELF_ARM_HASENTRY.
297
298 2015-03-05  Nick Clifton  <nickc@redhat.com>
299
300         PR binutils/18064
301         * doc/binutils.texi (objcopy): Extend description of
302         --add-gnu-debuglink option to explain that the separate debug info
303         file must exist.  Add a description of what to do if the debug
304         info file is built in one place but then installed into a separate
305         location.
306
307 2015-03-05  Nick Clifton  <nickc@redhat.com>
308
309         PR binutils/17994
310         * dlltool.c (temp_file_to_remove): New local array.
311         (unlink_temp_files): New functions - unlinks any file in the
312         temp_file_to_remove array, unless dotdeltemps is set.
313         (gen_exp_file): Add temp files to array.
314         (make_head): Likewise.
315         (make_delay_head): Likewise.
316         (make_tail): Likewise.
317         (gen_lib_file): Call unlink_temp_files.
318
319 2015-02-28  Andrew Burgess  <andrew.burgess@embecosm.com>
320
321         * objcopy.c (update_sections): New list.
322         (command_line_switch): Add OPTION_UPDATE_SECTION.
323         (copy_options): Add update-section.
324         (copy_usage): Document new option.
325         (is_update_section): New function.
326         (is_strip_section_1): Add check for attempt to update and remove
327         the same section.
328         (copy_object): Update size and content of requested sections.
329         (skip_section): Don't copy for updated sections.
330         (copy_main): Handle --update-section.
331         * doc/binutils.texi (objcopy): Add description of --update-section
332         option.
333         * NEWS: Mention --update-section option.
334
335 2015-02-26  Nick Clifton  <nickc@redhat.com>
336
337         PR binutils/17512
338         * coffgrok.c (do_type): Check for an out of range tag index.
339         Check for integer overflow computing array dimension.
340         (do_define): Likewise.
341
342 2015-02-26  Andrew Burgess  <andrew.burgess@embecosm.com>
343
344         * objcopy.c (init_section_add): Rename optarg to arg in order to
345         avoid shadowing a global variable.
346
347 2015-02-26  Nick Clifton  <nickc@redhat.com>
348
349         PR binutils/17512
350         * resrc.c (write_rc_messagetable): Tighten check for invalid
351         message lengths.
352
353         * dwarf.c (display_debug_loc): Pacify the undefined behaviour
354         sanitizer by simplifying address difference calculation.
355         (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
356         order to avoid arithmetic overflows.
357         (frame_display_row): Cast cfa_offset before printing it.
358         (display_debug_frames): Likewise.
359         Check for an unexpected segment size.
360         Chnage type of 'l' local to dwarf_vma and cast it back to an int
361         when printing.
362         (process_cu_tu_index): Tighten check for an invalid ncols value.
363         * readelf.c (process_corefile_note_segment): Check for
364         inote.descdata extending beyond the end of the section.
365         (process_v850_notes): Likewise.
366
367 2015-02-26  Terry Guo  <terry.guo@arm.com>
368
369         * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
370         display it.
371
372 2015-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
373
374         * objcopy.c (init_section_add): New function.
375         (section_add_load_file): New function.
376         (copy_main): Make use of new functions.
377
378 2015-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
379
380         * od-elf32_avr.c: Add elf32-avr.h include.
381         (OPT_AVRPROP): Define.
382         (options[]): Add 'avr-prop' entry.
383         (elf32_avr_help): Add avr-prop help text.
384         (elf32_avr_dump_avr_prop): New function.
385         (elf32_avr_dump): Add check for avr-prop.
386
387 2015-02-24  Nick Clifton  <nickc@redhat.com>
388
389         * readelf.c (get_machine_flags): Remove deprecated V850 machine
390         flags.
391         (get_v850_section_type_name): New function.  Handles V850 special
392         sections.
393         (get_section_type_name): Add support for V850.
394         (get_v850_elf_note_type): New function.  Returns the name of a
395         V850 note.
396         (print_v850_note): New function.  Prints a V850 note.
397         (process_v850_notes): New function.  Prints V850 notes.
398         (process_note_sections): Add support for V850.
399
400 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
401
402         PR binutils/17531
403         * readelf.c (process_symbol_table): Declare chained.  Increment it
404         in every loop.  Abort when chained is larger than nchains.  Move
405         error check outside of chain loop.
406
407 2015-02-24  Dmitry Antipov  <dantipov@nvidia.com>
408
409         * readelf.c (find_symbol_for_address): Use a binary search to
410         speed up symbol location.  Skip check for function symbol type.
411         (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
412         list of function symbols.
413         (dump_ia64_unwind): Initialise the funtab and nfuns fields and
414         pass them to find_symbol_for_address.
415         (dump_hppa_unwind): Likewise.
416         (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
417         (dump_arm_unwind): Initialise the funtab and nfuns fields.
418
419 2015-02-24  Nick Clifton  <nickc@redhat.com>
420
421         * objdump.c (dump_section): Extend the warning message displayed
422         when a section cannot be loaded.
423
424 2015-02-21  Mike Frysinger  <vapier@gentoo.org>
425
426         * readelf.c (process_program_headers): Add newline to warning
427         message.
428
429 2015-02-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
430
431         * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
432         NT_S390_VXRS_HIGH.
433
434 2015-02-13  Nick Clifton  <nickc@redhat.com>
435
436         PR binutils/17512
437         * dwarf.c (read_leb128): Fix test for shift becoming too large.
438
439         * coffgrok.c (do_define): Add check for type size overflow.
440         * srconv.c (walk_tree_sfile): Check that enough sections are
441         available before parsing.
442         (prescan): Likewise.
443
444         PR binutils/17531
445         * dwarf.c (display_debug_aranges): Add check for an excessive
446         ar_length value.
447         (process_cu_tu_index): Check for a row * columns sum being too
448         large.
449
450 2015-02-13  Alan Modra  <amodra@gmail.com>
451
452         * dwarf.c: Formatting, whitespace.
453         (process_debug_info): Style fix.
454
455 2015-02-11  Nick Clifton  <nickc@redhat.com>
456
457         * rl78-decode.opc: Add 'a' attribute to instructions that support
458         [HL+0] addressing.
459         * rl78-decode.c: Regenerate.
460         * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
461         addresses.
462
463 2015-02-11  Nick Clifton  <nickc@redhat.com>
464
465         PR binutils/17531
466         * dwarf.c (display_debug_pubnames_worker): Work around compiler
467         bug checking address ranges.
468         (display_debug_frames): Likewise.
469         (display_gdb_index): Likewise.
470         (process_cu_tu_index): Add range check on the ncols value.
471
472 2015-02-10  Nick Clifton  <nickc@redhat.com>
473
474         PR binutils/17512
475         * dwarf.c (eh_addr_size): Use an unsigned type.
476         (size_of_encoded_value): Return an unsigned type.
477         (read_leb128): Break if the shift becomes too big.
478         (process_extended_line_op): Do not read the address if the length
479         is too long.
480         (read_cie): Warn and fail if the pointer size or segment size are
481         too big.
482         * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
483         structure definition.
484         (DWARF2_External_PubNames): Likewise.
485         (DWARF2_External_CompUnit): Likewise.
486         (DWARF2_External_ARange): Likewise.
487         (DWARF2_Internal_LineInfo): Use dwarf_vma type for
488         li_prologue_length.
489         (eh_addr_size): Update prototype.
490
491         PR binutils/17531
492         * dwarf.c (process_debug_info): Zero the debug information array
493         since correct initialisation cannot be relied upon.
494         (process_cu_tu_index): Improve range checks.
495
496         PR binutils/17531
497         * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
498         offset.
499         * readelf.c (dump_relocations): Handle printing offsets which are
500         MIN_INT.
501         (process_corefile_note_segment): Add range check of the namesz
502         field.
503
504 2015-02-09  Mark Wielaard  <mjw@redhat.com>
505
506         * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
507         and DW_LANG_Fortran08.
508
509 2015-02-06  Nick Clifton  <nickc@redhat.com>
510
511         PR binutils/17512
512         * dwarf.c (display_debug_frames): Fix range checks to work on
513         32-bit binaries complied on a 64-bit host.
514
515         PR binutils/17531
516         * dwarf.c (xcmalloc): Fail if the arguments are too big.
517         (xcrealloc): Likewise.
518         (xcalloc2): Likewise.
519         * readelf.c (process_mips_specific): Fail if an option has an
520         invalid size.
521
522 2015-02-05  Alan Modra  <amodra@gmail.com>
523
524         PR binutils/17926
525         * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
526
527 2015-02-04  Nick Clifton  <nickc@redhat.com>
528
529         PR binutils/17531
530         * dwarf.c (read_and_display_attr_value): Test for a block length
531         being so long that it wraps around to before the start of the block.
532         (process_debug_info): Test for section_begin wrapping around to
533         before the start of the section.
534         (display_gdb_index): Test for num_cus being so large that the end
535         address wraps around to before the start of the section.
536         (process_cu_tu_index): Test for j being so large that the section
537         index pool wraps around to before the start of the section.
538
539 2015-02-03  Nick Clifton  <nickc@redhat.com>
540
541         PR binutils/17531
542         * dwarf.c (process_debug_info): Add range check.
543         (display_debug_pubnames_worker): Likewise.
544         (display_gdb_index): Fix range check.
545         (process_cu_tu_index): Add range check.
546         * readelf.c (get_data): Change parameter types from size_t to
547         bfd_size_type.  Add checks for loss of accuracy when casting from
548         bfd_size_type to size_t.
549         (get_dynamic_data): Likewise.
550         (process_section_groups): Limit number of error messages.
551
552 2015-02-03  Nick Clifton  <nickc@redhat.com>
553
554         PR binutils/17512
555         * objdump.c (display_any_bfd): Fail if archives nest too deeply.
556
557 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
558
559         * readelf.c: Add FT32 support.
560
561 2015-01-27  Nick Clifton  <nickc@redhat.com>
562
563         PR binutils/17512
564         * dlltool.c (identify_search_archive): If the last archive was the
565         same as the current archive, terminate the loop.
566
567         * addr2line.c (slurp_symtab): If the symcount is zero, free the
568         symbol table pointer.
569
570         * rcparse.y: Add checks to avoid integer divide by zero.
571         * rescoff.c (read_coff_rsrc): Add check on the size of the
572         resource section.
573         (read_coff_res_dir): Add check on the nesting level.
574         Check for resource names overrunning the buffer.
575         * resrc.c (write_rc_messagetable): Update formatting.
576         Add check of 'elen' being zero.
577
578 2015-01-23  Nick Clifton  <nickc@redhat.com>
579
580         * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
581         by recent delta, when compiling on for a 32-bit host.
582
583 2015-01-21  Nick Clifton  <nickc@redhat.com>
584
585         PR binutils/17512
586         * addr2line.c (main): Call bfd_set_error_program_name.
587         * ar.c (main): Likewise.
588         * coffdump.c (main): Likewise.
589         * cxxfilt.c (main): Likewise.
590         * dlltool.c (main): Likewise.
591         * nlmconv.c (main): Likewise.
592         * nm.c (main): Likewise.
593         * objdump.c (main): Likewise.
594         * size.c (main): Likewise.
595         * srconv.c (main): Likewise.
596         * strings.c (main): Likewise.
597         * sysdump.c (main): Likewise.
598         * windmc.c (main): Likewise.
599         * windres.c (main): Likewise.
600         * objcopy.c (main): Likewise.
601         (copy_relocations_in_section): Check for relocs without associated
602         symbol pointers.
603
604 2015-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
605
606         * MAINTAINERS: Add self to ARM maintainers list.
607
608 2015-01-21  Nick Clifton  <nickc@redhat.com>
609
610         PR binutils/17512
611         * coffgrok.c (do_type): Check that computed ref exists.
612         (doit): Add range checks when computing section for scope.
613
614 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
615
616         * dwarf.c (process_debug_info): Properly check abbrev size.
617
618 2015-01-12  Nick Clifton  <nickc@redhat.com>
619
620         PR binutils/17531
621         * dwarf.c (process_debug_info): Check for abbrev_base being larger
622         than the section size.
623         (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
624         arrays.
625         (xcalloc2): New function.  Like xcalloc, but checks for overflow.
626         (display_debug_addr): Use xcalloc to allocate the debug_addr_info
627         array.  Check for an address_base that is too large.
628
629         * dwarf.h (xcalloc2): Prototype.
630
631 2015-01-12  Alan Modra  <amodra@gmail.com>
632
633         * prdbg.c (print_debugging_info): Don't use void* for function
634         pointer param.
635         * budbg.h (print_debugging_info): Update prototype.
636
637 2015-01-08  Nick Clifton  <nickc@redhat.com>
638
639         PR binutils/17512
640         * ojcopy.c (copy_object): Free the symbol table if no symbols
641         could be loaded.
642         (copy_file): Use bfd_close_all_done to close files that could not
643         be copied.
644
645         * sysdump.c (getINT): Fail if reading off the end of the buffer.
646         Replace call to abort with a call to fatal.
647         (getCHARS): Prevetn reading off the end of the buffer.
648
649         * nlmconv.c (i386_mangle_relocs): Skip relocs without an
650         associated symbol.
651         (powerpc_mangle_relocs): Skip unrecognised relocs.  Check address
652         range before applying a reloc.
653
654 2015-01-07  Nick Clifton  <nickc@redhat.com>
655
656         PR binutils/17512
657         * dlltool.c (scan_obj_file): Break loop if the last archive
658         displayed matches the current archive.
659
660         * objdump.c (display_any_bfd): Add a depth limit to nested archive
661         display in order to avoid infinite loops.
662         * srconv.c: Replace calls to abort with calls to fatal with an
663         error message.
664
665 2015-01-06  Nick Clifton  <nickc@redhat.com>
666
667         PR binutils/17512
668         * coffdump.c (dump_coff_section): Check for a symbol being
669         available before printing its name.
670         (main): Check the return value from coff_grok.
671         * coffgrok.c: Reformat and tidy.
672         Add range checks to most functions.
673         (coff_grok): Return NULL if the input bfd is not in a COFF
674         format.
675         * coffgrok.h: Reformat and tidy.
676         (struct coff_section): Change the nrelocs field to unsigned.
677         * srconv.c (main): Check the return value from coff_grok.
678
679 2015-01-05  Nick Clifton  <nickc@redhat.com>
680
681         PR binutils/17512
682         * nm.c (print_symbol): Add 'is_synthetic' parameter.  Use it to
683         help initialize the info.elfinfo field.
684         (print_size_symbols): Add 'synth_count' parameter.  Use it to set
685         the is_synthetic parameter when calling print_symbol.
686         (print_symbols): Likewise.
687         (display_rel_file): Pass synth_count to printing function.
688         (display_archive): Break loop if the last archive displayed
689         matches the current archive.
690         * size.c (display_archive): Likewise.
691
692 2015-01-05  Nick Clifton  <nickc@redhat.com>
693
694         PR binutils/17531
695         * dwarf.c (alloc_num_debug_info_entries): New variable.
696         (process_debug_info): Set it.  Use it to avoid displaying
697         attributes for which there is no info.
698         (display_debug_abbrev): Check that the debug_info_entry index is
699         valid before using it.
700         (display_loc_list_dwo): Likewise.
701         (process_cu_tu_index): Add range check for an overlarge dw_sect
702         value.
703         (free_debug_memory): Reset alloc_num_debug_info_entries.
704         * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
705         be indentified.
706         (dynamic_section_mips_val): Warn if the timestamp is invalid.
707         (print_mips_got_entry): Add a data_end parameter.  Warn if a read
708         would go beyond the end of the data, and return an error value.
709         (process_mips_specific): Do not read options from beyond the end
710         of the section.
711         Correct code to display optional data at the end of an option.
712         Warn if there are too many GOT symbols.
713         Update calls to print_mips_got_entry, and handle error returns.
714
715 2015-01-05  Daniel Klauer  <daniel.c.klauer@web.de>
716
717         PR binutils/17489
718         * doc/binutils.texi (dlltool): Correct description of --kill-at
719         option.
720
721 2015-01-01  Alan Modra  <amodra@gmail.com>
722
723         * version.c (print_version): Just print current year.
724
725 2015-01-01  Alan Modra  <amodra@gmail.com>
726
727         Update year range in copyright notice of all files.
728
729 For older changes see ChangeLog-2014
730 \f
731 Copyright (C) 2015 Free Software Foundation, Inc.
732
733 Copying and distribution of this file, with or without modification,
734 are permitted in any medium without royalty provided the copyright
735 notice and this notice are preserved.
736
737 Local Variables:
738 mode: change-log
739 left-margin: 8
740 fill-column: 74
741 version-control: never
742 End: