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