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