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