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