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