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