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