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