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