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