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