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