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