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