]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
a4f8732b
RH
12015-11-20 Ronald Hoogenboom <hoogenboom30@zonnet.nl>
2
3 * objcopy.c (parse_symflags): Use xstrndup in place of strndup.
4 (copy_main): Likewise.
5
f8c2a965
NC
62015-11-20 Nick Clifton <nickc@redhat.com>
7
8 * po/ca.po: New Catalan translation.
9 * configure.ac (ALL_LINGUAS): Add ca.
10 * configure: Regenerate.
11
b53e4c0e
TG
122015-11-18 Tristan Gingold <gingold@adacore.com>
13
14 * od-macho.c (bfd_mach_o_load_command_name): Add new
15 entries.
16 (dump_unwind_encoding_arm64): New function.
17 (dump_unwind_encoding): Handle arm64.
18
d8bd95ef
TG
192015-11-13 Tristan Gingold <gingold@adacore.com>
20
21 * configure: Regenerate.
22
7feec526
TG
232015-11-13 Tristan Gingold <gingold@adacore.com>
24
25 * NEWS: Add marker for 2.26.
26
c4e0beac
DV
272015-11-09 Dominik Vogt <vogt@linux.vnet.ibm.com>
28
29 * dwarf.c (read_leb128): Fix left shift of negative value.
30
ab273396
AM
312015-11-03 Alan Modra <amodra@gmail.com>
32
33 * readelf (process_version_sections): Check DT_VERNEED and
34 DT_VERDEF for all symbols. Report "*both*" should a symbol
35 have both a verneed and verdef.
36 (get_symbol_version_string): Reduce indentation by early
37 exits. Don't use SHT_NOBITS heuristic to detect case where a
38 defined symbol has a verneed entry.
39
26f187cd
NC
402015-10-30 Nick Clifton <nickc@redhat.com>
41
42 * po/zh_CN.po: Updated (simplified) Chinese translation.
43
c6056a74
SF
442015-10-27 Stephen Fisher <sfisher@panix.com>
45
46 * binutils.c (process_netbsd_elf_note): New function.
47 (process_note): Call the new function for NetBSD core notes.
48
64e59d8e
HPN
492015-10-22 Hans-Peter Nilsson <hp@bitrange.com>
50
51 * objcopy.c (setup_section): Don't omit bfd_copy_private_bfd_data
52 call when extract_symbol.
53
397dd9a5 542015-10-21 Ronald Hoogenboom <rhoogenboom@irdeto.com>
2b35fb28
RH
55
56 PR binutils/19104
57 * objcopy.c (command_line_switch): Add OPTION_ADD_SYMBOL.
58 (copy_options): Add add-symbol.
59 (copy_usage): Likewise.
60 (parse_symflags): New function.
61 (need_sym_before): New function.
62 (create_new_symbol): New function.
63 (filter_symbols): Add code to insert new symbols.
64 (copy_main): Process OPTION_ADD_SYMBOL.
65 * doc/binutils.texi: Document new feature.
66 * NEWS: Add note about the new feature.
67
595712bb
PP
682015-10-18 Paul Pluzhnikov <ppluzhnikov@google.com>
69
70 PR binutils/19147
71 * readelf.c (print_core_note): Fix off-by-one bug.
72
e43fb831
AM
732015-10-15 Alan Modra <amodra@gmail.com>
74
75 * objcopy.c (copy_object): Don't omit bfd_copy_private_bfd_data
76 call when extract_symbol.
77
431ff075
AB
782015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
79
80 * od-elf32_avr.c (elf32_avr_dump_avr_prop): Fix printing of align
81 specific data, fix formatting for align and org data.
82
886a2506
NC
832015-09-01 Claudiu Zissulescu <claziss@synopsys.com>
84 Cupertino Miranda <cmiranda@synopsys.com>
85
86 * readelf.c (get_machine_name): Remove A5 reference. Add ARCompact
87 and ARCv2.
88 (get_machine_flags): Handle EM_ARCV2 and EM_ARCOMPACT.
89 (guess_is_rela): Likewise.
90 (dump_relocations): Likewise.
91 (is_32bit_abs_reloc): Likewise.
92 (is_16bit_abs_reloc): Likewise.
93 (is_none_reloc): Likewise.
94 * NEWS: Mention the new feature.
95
cbd44e24
L
962015-09-29 Andrew Stubbs <ams@codesourcery.com>
97 H.J. Lu <hongjiu.lu@intel.com>
98
99 PR binutils/19020
100 * objcopy.c (copy_object): Don't adjust the output section size
101 when copying from input sections.
102 (copy_section): Use input section size for the copy. Get the
103 updated section size from bfd_convert_section_contents.
104
c68c1637
L
1052015-09-29 H.J. Lu <hongjiu.lu@intel.com>
106
107 PR binutils/19005
108 * objcopy.c (copy_object): Adjust the output section size to
109 skip gap fills between sections when copying from input sections
110 to output sections.
111
b08b78e7
NC
1122015-09-28 Nick Clifton <nickc@redhat.com>
113
114 * po/fr.po: Updated French translation.
115
9a09557a 1162015-09-25 James Bowman <james.bowman@ftdichip.com>
117
118 * ft32-dis.c (print_insn_ft32): Fix incorrect data field mask.
119
6a40cf0c
NC
1202015-09-23 Nick Clifton <nickc@redhat.com>
121
122 PR binutils/15835
123 * readelf.c (struct elf_section_list): New structure.
124 (symtab_shndx_hdr): Replace with symtab_shndx_list.
125 (get_32bit_elf_symbols): Scan for a symbol index table matching
126 the symbol table in use.
127 (get_64bit_elf_symbols): Likewise.
128 (process_section_headers): Handle multiple symbol index sections.
129
5c383f02
RO
1302015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
131
132 * readelf.c (process_dynamic_section): Handle DF_1_STUB, DF_1_PIE.
133
55edd97b
EA
1342015-09-10 Erik Ackermann <kurterikackermann@gmail.com>
135
136 * strings.c: Add -s/--output-separator option to specify custom
137 separator string.
138 * NEWS: Mention the new feature.
139 * doc/binutils.text (strings): Document the new command line
140 option.
141
d8f187c1
NC
1422015-09-09 Nick Clifton <nickc@redhat.com>
143
144 * doc/binutils.texi (ar): Remove bogus sentance concerning thin
145 archives and invalid paths.
146
1a915552
NC
1472015-09-03 Nick Clifton <nickc@redhat.com>
148
149 PR binutils/18879
150 * readelf.c (get_unwind_section_word): Check for negative offsets
151 and very small sections.
152 (dump_arm_unwind): Warn if the table offset is too large.
153
32a40e8e
L
1542015-08-28 H.J. Lu <hongjiu.lu@intel.com>
155
156 * Makefile.am (TOOL_PROGS): Add readelf.
157 * Makefile.in: Regenerated.
158
cfe101c6
YS
1592015-08-24 Yaakov Selkowitz <yselkowi@redhat.com>
160
161 * configure: Regenerate.
162
2309f875
AM
1632015-08-17 Alan Modra <amodra@gmail.com>
164
165 * configure: Regenerate.
166
0b45135e
AB
1672015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
168
169 * objcopy.c (is_specified_symbol_predicate): Don't stop at first
170 match. Non-match rules set found to FALSE.
171
016a3251
DD
1722015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
173
174 * configure: Regenerate.
175
63b9bbb7
NC
1762015-08-05 Nick Clifton <nickc@redhat.com>
177
178 * doc/binutils.texi: Document that the --only-keep-debug option
179 to strip and objcopy preserves the section headers of stripped
180 sections.
181
7e27a9d5
YK
1822015-08-04 Yuriy M. Kaminskiy" <yumkam@gmail.com>
183 Tyler Hicks <tyhicks@canonical.com>
184
185 PR binutils/18750
186 * readelf.c (process_mips_specific): Fix incorrect escape
187 sequence handling.
188
1892015-08-04 Nick Clifton <nickc@redhat.com>
190
191 * ar.c (extract_file): Free cbuf if the path is invalid.
192
37a42ee9
L
1932015-07-27 H.J. Lu <hongjiu.lu@intel.com>
194
195 * configure: Regenerated.
196
7cb9e39b
L
1972015-07-24 H.J. Lu <hongjiu.lu@intel.com>
198
199 * stabs.c (parse_stab_range_type): Use 0xffffffffffffffffLL.
200
7360e63f
AM
2012015-07-22 Alan Modra <amodra@gmail.com>
202
203 * readelf.c (dump_relocations): Show MIN_INT addends as negative.
204
f2d7e0f4
AM
2052015-07-20 Alan Modra <amodra@gmail.com>
206
207 * doc/Makefile.in: Regenerate.
208
53c3012c
AM
2092015-07-16 Alan Modra <amodra@gmail.com>
210
211 PR binutils/18672
212 * readelf.c (get_32bit_dynamic_section): Correct buffer limit test.
213 (get_64bit_dynamic_section): Likewise.
214
19a7fe52
L
2152015-07-14 H.J. Lu <hongjiu.lu@intel.com>
216
217 * objcopy.c (copy_file): Set BFD_COMPRESS_GABI if not
218 zlib-gnu.
219 * doc/binutils.texi: Change --compress-debug-sections and
220 --compress-debug-sections=zlib to zlib-gabi.
221
88988473
L
2222015-07-10 H.J. Lu <hongjiu.lu@intel.com>
223
224 PR binutils/18656
225 * objcopy.c (setup_section): Call bfd_convert_section_size
226 to get the output section size.
227 (copy_section): Get the section size from the output section
228 and call bfd_get_full_section_contents to convert section
229 contents for output.
230
813dabb9
L
2312015-07-10 H.J. Lu <hongjiu.lu@intel.com>
232
233 * readelf.c (dump_section_as_strings): Warn unsupported compress
234 type and corrupted compressed section.
235 (dump_section_as_bytes): Likewise.
236 (load_specific_debug_section): Likewise.
237
3350cc01
CM
2382015-07-09 Catherine Moore <clm@codesourcery.com>
239
72f4393d
L
240 * readelf.c (print_mips_fp_abi_value): Handle
241 Val_GNU_MIPS_ABI_FP_NAN2008.
3350cc01 242
a5499fa4
MF
2432015-06-26 Matthew Fortune <matthew.fortune@imgtec.com>
244
245 * readelf.c (get_mips_dynamic_type): Handle DT_MIPS_RLD_MAP_REL.
246
bdc4de1b
NC
2472015-06-22 Nick Clifton <nickc@redhat.com>
248
249 * objdump.c (disassemble_bytes): Set the stop_vma field in the
250 disassemble_info structure when disassembling code sections with
251 -d.
252 * doc/binutils.texi (objdump): Document the discrepancy between -d
253 and -D.
254
8fcc61b4
NC
2552015-06-05 Nick Clifton <nickc@redhat.com>
256
257 * dwarf.c (read_debug_line_header): Use reloc_at to detect
258 incomplete .debug_line headers
259
14ae95f2
RM
2602015-05-29 Roland McGrath <mcgrathr@google.com>
261
262 * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize
263 GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL.
264
030f4c7f
SK
2652015-05-29 Stephen Kitt <steve@sk2.org>
266
267 * dlltool.c (make_one_lib_file): Clear .idata$6 before use.
268 (main): Fail if the output file specified by the -z option cannot
269 be opened.
270
b4477bc8
NC
2712015-05-18 Nick Clifton <nickc@redhat.com>
272
273 PR binutils/18420
274 * ia64-unwind.c (unw_decode): Add end parameter. Pass parameter
275 on to decode functions.
276 (unw_devode_p2_p5): Pass end paraemter to UNW_DEC_SPILL_MASK.
277 (UNW_DEC_SPILL_MASK): Add end parameter. Check that unw_rlen does
278 not take us beyond the end of the buffer.
279 * ia64-unwind.h (unw_decode): Update prototype.
280 * readelf.c (dump_ia64_unwind): Pass end pointer to unw_decode.
281
fd8008d8
L
2822015-05-15 H.J. Lu <hongjiu.lu@intel.com>
283
284 * readelf.c (dump_section_as_strings): Change pointers from
285 char * to unsigned char *.
286
5db04b09
L
2872015-05-15 H.J. Lu <hongjiu.lu@intel.com>
288
289 PR binutis/18386
290 * doc/binutils.texi: Document -Mamd64 and -Mintel64.
291
0e602686
NC
2922015-05-15 Nick Clifton <nickc@redhat.com>
293
294 * readelf.c (options): Add "decompress".
295 (usage): Mention -z/--decompress.
296 (parse_args): Handle -z.
297 (uncompress_section_contents): Move to earlier in the file.
298 (dump_section_as_strings): If requested, decompress the section
299 before dumping.
300 (dump_section_as_bytes): Likewise.
301 * doc/binutils.texi: Document the new option.
302
4bc0608a
PB
3032015-05-14 Peter Bergner <bergner@vnet.ibm.com>
304
305 * MAINTAINERS: Add myself as PPC maintainer.
306
dab394de
L
3072015-05-14 H.J. Lu <hongjiu.lu@intel.com>
308
309 * readelf.c (uncompress_section_contents): Add a parameter for
310 uncompressed size. Don't check the zlib header.
311 (load_specific_debug_section): Updated.
312
d1c4b12b
NC
3132015-05-15 Nick Clifton <nickc@redhat.com>
314
315 PR binutils/18374
316 * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs
317 fields.
318 (struct dwarf_section_display): Change bitfield to boolean.
319 (reloc_at): Add prototype.
320 * dwarf.c (display_loc_list): Ignore list terminators if there are
321 relocs against them.
322 (display_debug_loc): Issue a warning if there are relocs against
323 the .debug_loc section.
324 (display_displays): Initialise reloc_info and num_relocs fields.
325 * objdump.c (load_specific_debug_section): Initialise reloc_info
326 and num_relocs fields.
327 (reloc_at): New function.
328 * readelf.c (is_32bit_abs_reloc): Add IA64's R_IA64_DIS32LSB
329 reloc.
330 (reloc_at): New function.
331 (apply_relocations): Add relocs_return and num_relocs_return
332 parameters. Fill them in with the loaded relocs if non-NULL.
333 (dump_section_as_bytes): Update call to apply_relocations.
334 (load_specific_debug_section): Initialise reloc_info and
335 num_relocs fields.
336
aa9f7286
L
3372015-05-13 H.J. Lu <hongjiu.lu@intel.com>
338
339 * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
340
6604eb5f
AK
3412015-05-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
342
343 * MAINTAINERS: Add myself as s390 and s390x maintainer.
344
5b155b95
SK
3452015-05-12 Stephen Kitt <steve@sk2.org>
346
347 * dlltool.c (main): Accept -t as an abbreviation for
348 --temp-prefix.
349
3d875af5
L
3502015-05-11 H.J. Lu <hongjiu.lu@intel.com>
351
352 * dwarf.c (dwarf_regnames_iamcu): New.
353 (init_dwarf_regnames_iamcu): Likewise.
354 (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
355 * dwarf.h (init_dwarf_regnames_iamcu): New.
356 * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
357 bfd_arch_iamcu.
358
6c14750f
L
3592015-05-11 H.J. Lu <hongjiu.lu@intel.com>
360
361 * elfedit.c (enum elfclass): New.
362 (input_elf_class): Change type to enum elfclass.
363 (output_elf_class): New.
364 (elf_class): Change return type to enum elfclass. Support EM_386
365 and EM_IAMCU.
366 (update_elf_header): Check if input and output ELF classes match.
367 (elf_machine): Support EM_386 and EM_IAMCU.
368 (main): Update input_elf_class. Set output_elf_class.
369 * doc/binutils.texi: Update elfedit.
370
22abe556
L
3712015-05-11 H.J. Lu <hongjiu.lu@intel.com>
372
373 * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
374 * readelf.c (guess_is_rela): Likewise.
375 (dump_relocations): Likewise.
376 (get_machine_name): Likewise.
377 (get_elf_section_flags): Likewise.
378 (process_section_headers): Likewise.
379 (is_32bit_abs_reloc): Likewise.
380 (is_32bit_pcrel_reloc): Likewise.
381
153a2776
NC
3822015-04-30 Nick Clifton <nickc@redhat.com>
383
384 * readelf.c (get_machine_flags): Add description of MeP flags.
385
643f7afb
AK
3862015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
387
388 * readelf.c (display_s390_gnu_attribute): New function.
389 (process_s390_specific): New function.
390 (process_arch_specific): Call process_s390_specific.
391
de13ef81
NC
3922015-04-24 Nick Clifton <nickc@redhat.com>
393
394 PR 18313
395 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
396 * readelf.c (uncompress_section_contents): Zero initialise the
397 zstream structure.
398
f6fe1ccd
L
3992015-04-23 H.J. Lu <hongjiu.lu@intel.com>
400
401 PR binutils/18209
402 * objcopy.c (setup_section): Copy compress status.
403
ea556d25
L
4042015-04-15 H.J. Lu <hongjiu.lu@intel.com>
405
406 * NEWS: Mention
407 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
408
6ff71e76
NC
4092015-04-14 Nick Clifton <nickc@redhat.com>
410
411 * readelf.c (target_specific_reloc_handling): Add code to handle
412 RL78 complex relocs.
413
0d2a7a93
DE
4142015-04-13 Doug Evans <dje@google.com>
415
416 PR binutils/18218
417 * readelf.c (printable_section_name): Constify sec argument.
418 (apply_relocations): Ditto. New arg "size". All callers updated.
419 (load_specific_debug_section): Constify sec argument.
420 Remove side-effect of modifying sec->sh_size.
421
cd6faa73
L
4222015-04-09 H.J. Lu <hongjiu.lu@intel.com>
423
424 * objcopy.c (do_debug_sections): Use bit patterns.
425 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
426 and compress_gabi_zlib on non-ELF input.
427 (copy_file): Don't check non-ELF input here.
428
3525236c
NC
4292015-04-09 Nick Clifton <nickc@redhat.com>
430
431 * readelf.c (get_machine_flags): Report the setting of the string
432 insn using bits.
433
151411f8
L
4342015-04-08 H.J. Lu <hongjiu.lu@intel.com>
435
436 * objcopy.c (do_debug_sections): Add compress_zlib,
437 compress_gnu_zlib and compress_gabi_zlib.
438 (copy_options): Use optional_argument on compress-debug-sections.
439 (copy_usage): Update --compress-debug-sections.
440 (copy_file): Handle compress_zlib, compress_gnu_zlib and
441 compress_gabi_zlib.
442 (copy_main): Handle
443 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
444 * doc/binutils.texi: Document
445 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
446
bfcf0ccd
L
4472015-04-08 H.J. Lu <hongjiu.lu@intel.com>
448
449 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
450 --interleave[=<number>].
451
77115a4a
L
4522015-04-05 H.J. Lu <hongjiu.lu@intel.com>
453
454 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
455 (get_compression_header): New.
456 (process_section_headers): Dump compression header if needed.
457 (uncompress_section_contents): Don't free compressed_buffer here.
458 (load_specific_debug_section): Free the compressed buffer, update
459 the section buffer and the section size if uncompress is
460 successful.
461
39f3de7c
L
4622015-04-02 H.J. Lu <hongjiu.lu@intel.com>
463
464 * configure: Regenerated.
465
3d5ff620
MF
4662015-04-02 Mike Frysinger <vapier@gentoo.org>
467
468 * MAINTAINERS: Update my e-mail address.
469
afa59b79
L
4702015-04-01 H.J. Lu <hongjiu.lu@intel.com>
471
472 * configure: Regenerated.
473
ed2b5077
L
4742015-03-31 H.J. Lu <hongjiu.lu@intel.com>
475
476 * configure.ac: Revert the AM_ZLIB change.
477 * Makefile.in: Regenerated.
478 * aclocal.m4: Likewise.
479 * configure: Likewise.
480
0ee42ecd
L
4812015-03-31 H.J. Lu <hongjiu.lu@intel.com>
482
483 * Makefile.am (ZLIB): New.
484 (ZLIBINC): Likewise.
485 (AM_CFLAGS): Add $(ZLIBINC).
486 (readelf_LDADD): Add $(ZLIB).
487 * configure.ac (AM_ZLIB): Removed.
488 (zlibdir): New. AC_SUBST.
489 (zlibinc): Likewise.
490 Add --with-system-zlib.
491 * Makefile.in: Regenerated.
492 * config.in: Likewise.
493 * configure: Likewise.
494
1740ba0c
NC
4952015-03-19 Nick Clifton <nickc@redhat.com>
496
497 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
498
273a4985
JT
4992015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
500 Nick Clifton <nickc@redhat.com>
501
502 PR binutils/18087
503 * doc/binutils.texi: Note that when objcopy compresses debug
504 sections the compression is only performed if it makes the section
505 smaller.
506
5656ba2c
L
5072015-03-10 H.J. Lu <hongjiu.lu@intel.com>
508
509 PR binutils/18101
510 * readelf.c (parse_args): Move nothing to do warning to ...
511 (main): Here.
512
cfad8730
NC
5132015-03-10 Nick Clifton <nickc@redhat.com>
514
b6370efb
NC
515 PR binutils/18101
516 * readelf.c (parse_args): Enhance check for nothing to do by
517 accounting for the --wide option.
518
cfad8730
NC
519 PR binutils/17636
520 * objcopy.c (copy_object): Avoid calling fatal as that does not
521 allow the parent to clean up temporary files.
522
a5721edd
JW
5232015-03-10 Yuri Gribov <y.gribov@samsung.arm>
524
525 PR ld/16572
526 * readelf.c: Remove support for ELF_ARM_HASENTRY.
527
4fd77a3d
NC
5282015-03-05 Nick Clifton <nickc@redhat.com>
529
530 PR binutils/18064
531 * doc/binutils.texi (objcopy): Extend description of
532 --add-gnu-debuglink option to explain that the separate debug info
533 file must exist. Add a description of what to do if the debug
534 info file is built in one place but then installed into a separate
535 location.
536
81fb971a
NC
5372015-03-05 Nick Clifton <nickc@redhat.com>
538
539 PR binutils/17994
540 * dlltool.c (temp_file_to_remove): New local array.
541 (unlink_temp_files): New functions - unlinks any file in the
542 temp_file_to_remove array, unless dotdeltemps is set.
543 (gen_exp_file): Add temp files to array.
544 (make_head): Likewise.
545 (make_delay_head): Likewise.
546 (make_tail): Likewise.
547 (gen_lib_file): Call unlink_temp_files.
548
acf1419f
AB
5492015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
550
551 * objcopy.c (update_sections): New list.
552 (command_line_switch): Add OPTION_UPDATE_SECTION.
553 (copy_options): Add update-section.
554 (copy_usage): Document new option.
555 (is_update_section): New function.
556 (is_strip_section_1): Add check for attempt to update and remove
557 the same section.
558 (copy_object): Update size and content of requested sections.
559 (skip_section): Don't copy for updated sections.
560 (copy_main): Handle --update-section.
561 * doc/binutils.texi (objcopy): Add description of --update-section
562 option.
563 * NEWS: Mention --update-section option.
564
d93c7787
NC
5652015-02-26 Nick Clifton <nickc@redhat.com>
566
567 PR binutils/17512
568 * coffgrok.c (do_type): Check for an out of range tag index.
569 Check for integer overflow computing array dimension.
570 (do_define): Likewise.
571
06b73f41
AB
5722015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
573
574 * objcopy.c (init_section_add): Rename optarg to arg in order to
575 avoid shadowing a global variable.
576
e3ee4005
NC
5772015-02-26 Nick Clifton <nickc@redhat.com>
578
579 PR binutils/17512
580 * resrc.c (write_rc_messagetable): Tighten check for invalid
581 message lengths.
582
c8071705
NC
583 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
584 sanitizer by simplifying address difference calculation.
585 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
586 order to avoid arithmetic overflows.
587 (frame_display_row): Cast cfa_offset before printing it.
588 (display_debug_frames): Likewise.
589 Check for an unexpected segment size.
590 Chnage type of 'l' local to dwarf_vma and cast it back to an int
591 when printing.
592 (process_cu_tu_index): Tighten check for an invalid ncols value.
593 * readelf.c (process_corefile_note_segment): Check for
594 inote.descdata extending beyond the end of the section.
595 (process_v850_notes): Likewise.
596
99654aaf
TG
5972015-02-26 Terry Guo <terry.guo@arm.com>
598
599 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
600 display it.
601
7173b38a
AB
6022015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
603
604 * objcopy.c (init_section_add): New function.
605 (section_add_load_file): New function.
606 (copy_main): Make use of new functions.
607
137c83d6
AB
6082015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
609
610 * od-elf32_avr.c: Add elf32-avr.h include.
611 (OPT_AVRPROP): Define.
612 (options[]): Add 'avr-prop' entry.
613 (elf32_avr_help): Add avr-prop help text.
614 (elf32_avr_dump_avr_prop): New function.
615 (elf32_avr_dump): Add check for avr-prop.
616
685080f2
NC
6172015-02-24 Nick Clifton <nickc@redhat.com>
618
619 * readelf.c (get_machine_flags): Remove deprecated V850 machine
620 flags.
621 (get_v850_section_type_name): New function. Handles V850 special
622 sections.
623 (get_section_type_name): Add support for V850.
624 (get_v850_elf_note_type): New function. Returns the name of a
625 V850 note.
626 (print_v850_note): New function. Prints a V850 note.
627 (process_v850_notes): New function. Prints V850 notes.
628 (process_note_sections): Add support for V850.
629
94d15024
MF
6302015-02-24 Mike Frysinger <vapier@gentoo.org>
631
632 PR binutils/17531
633 * readelf.c (process_symbol_table): Declare chained. Increment it
634 in every loop. Abort when chained is larger than nchains. Move
635 error check outside of chain loop.
636
948f632f
DA
6372015-02-24 Dmitry Antipov <dantipov@nvidia.com>
638
639 * readelf.c (find_symbol_for_address): Use a binary search to
640 speed up symbol location. Skip check for function symbol type.
641 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
642 list of function symbols.
643 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
644 pass them to find_symbol_for_address.
645 (dump_hppa_unwind): Likewise.
646 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
647 (dump_arm_unwind): Initialise the funtab and nfuns fields.
648
0821d5b1
NC
6492015-02-24 Nick Clifton <nickc@redhat.com>
650
651 * objdump.c (dump_section): Extend the warning message displayed
652 when a section cannot be loaded.
653
9035ed51
MF
6542015-02-21 Mike Frysinger <vapier@gentoo.org>
655
656 * readelf.c (process_program_headers): Add newline to warning
657 message.
658
4ef9f41a
AA
6592015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
660
661 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
662 NT_S390_VXRS_HIGH.
663
951eaaec
NC
6642015-02-13 Nick Clifton <nickc@redhat.com>
665
666 PR binutils/17512
667 * dwarf.c (read_leb128): Fix test for shift becoming too large.
668
669 * coffgrok.c (do_define): Add check for type size overflow.
670 * srconv.c (walk_tree_sfile): Check that enough sections are
671 available before parsing.
672 (prescan): Likewise.
673
ffc0f143
NC
674 PR binutils/17531
675 * dwarf.c (display_debug_aranges): Add check for an excessive
676 ar_length value.
677 (process_cu_tu_index): Check for a row * columns sum being too
678 large.
679
b4eb7656
AM
6802015-02-13 Alan Modra <amodra@gmail.com>
681
682 * dwarf.c: Formatting, whitespace.
683 (process_debug_info): Style fix.
684
0e7f931f
NC
6852015-02-11 Nick Clifton <nickc@redhat.com>
686
687 * rl78-decode.opc: Add 'a' attribute to instructions that support
688 [HL+0] addressing.
689 * rl78-decode.c: Regenerate.
690 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
691 addresses.
692
362beea4
NC
6932015-02-11 Nick Clifton <nickc@redhat.com>
694
695 PR binutils/17531
696 * dwarf.c (display_debug_pubnames_worker): Work around compiler
697 bug checking address ranges.
698 (display_debug_frames): Likewise.
699 (display_gdb_index): Likewise.
700 (process_cu_tu_index): Add range check on the ncols value.
701
77ef8654
NC
7022015-02-10 Nick Clifton <nickc@redhat.com>
703
704 PR binutils/17512
705 * dwarf.c (eh_addr_size): Use an unsigned type.
706 (size_of_encoded_value): Return an unsigned type.
707 (read_leb128): Break if the shift becomes too big.
708 (process_extended_line_op): Do not read the address if the length
709 is too long.
710 (read_cie): Warn and fail if the pointer size or segment size are
711 too big.
712 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
713 structure definition.
714 (DWARF2_External_PubNames): Likewise.
715 (DWARF2_External_CompUnit): Likewise.
716 (DWARF2_External_ARange): Likewise.
717 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
718 li_prologue_length.
719 (eh_addr_size): Update prototype.
720
03a91817
NC
721 PR binutils/17531
722 * dwarf.c (process_debug_info): Zero the debug information array
723 since correct initialisation cannot be relied upon.
724 (process_cu_tu_index): Improve range checks.
725
834f871c
NC
726 PR binutils/17531
727 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
728 offset.
729 * readelf.c (dump_relocations): Handle printing offsets which are
730 MIN_INT.
731 (process_corefile_note_segment): Add range check of the namesz
732 field.
733
5a195044
MW
7342015-02-09 Mark Wielaard <mjw@redhat.com>
735
736 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
737 and DW_LANG_Fortran08.
738
5929c344
NC
7392015-02-06 Nick Clifton <nickc@redhat.com>
740
741 PR binutils/17512
742 * dwarf.c (display_debug_frames): Fix range checks to work on
743 32-bit binaries complied on a 64-bit host.
744
8490fb40
NC
745 PR binutils/17531
746 * dwarf.c (xcmalloc): Fail if the arguments are too big.
747 (xcrealloc): Likewise.
748 (xcalloc2): Likewise.
55325047
NC
749 * readelf.c (process_mips_specific): Fail if an option has an
750 invalid size.
8490fb40 751
7cc78d07
AM
7522015-02-05 Alan Modra <amodra@gmail.com>
753
754 PR binutils/17926
755 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
756
f3853b34
NC
7572015-02-04 Nick Clifton <nickc@redhat.com>
758
759 PR binutils/17531
760 * dwarf.c (read_and_display_attr_value): Test for a block length
761 being so long that it wraps around to before the start of the block.
762 (process_debug_info): Test for section_begin wrapping around to
763 before the start of the section.
764 (display_gdb_index): Test for num_cus being so large that the end
765 address wraps around to before the start of the section.
766 (process_cu_tu_index): Test for j being so large that the section
767 index pool wraps around to before the start of the section.
768
57028622
NC
7692015-02-03 Nick Clifton <nickc@redhat.com>
770
771 PR binutils/17531
772 * dwarf.c (process_debug_info): Add range check.
773 (display_debug_pubnames_worker): Likewise.
774 (display_gdb_index): Fix range check.
775 (process_cu_tu_index): Add range check.
776 * readelf.c (get_data): Change parameter types from size_t to
777 bfd_size_type. Add checks for loss of accuracy when casting from
778 bfd_size_type to size_t.
779 (get_dynamic_data): Likewise.
780 (process_section_groups): Limit number of error messages.
781
64d29018
NC
7822015-02-03 Nick Clifton <nickc@redhat.com>
783
784 PR binutils/17512
785 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
786
3f8107ab
AM
7872015-01-28 James Bowman <james.bowman@ftdichip.com>
788
789 * readelf.c: Add FT32 support.
790
37e3922e
NC
7912015-01-27 Nick Clifton <nickc@redhat.com>
792
793 PR binutils/17512
794 * dlltool.c (identify_search_archive): If the last archive was the
795 same as the current archive, terminate the loop.
796
877a8638
NC
797 * addr2line.c (slurp_symtab): If the symcount is zero, free the
798 symbol table pointer.
799
0897ec15
NC
800 * rcparse.y: Add checks to avoid integer divide by zero.
801 * rescoff.c (read_coff_rsrc): Add check on the size of the
802 resource section.
803 (read_coff_res_dir): Add check on the nesting level.
804 Check for resource names overrunning the buffer.
805 * resrc.c (write_rc_messagetable): Update formatting.
806 Add check of 'elen' being zero.
807
bb97bdd7
NC
8082015-01-23 Nick Clifton <nickc@redhat.com>
809
810 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
811 by recent delta, when compiling on for a 32-bit host.
812
86eafac0
NC
8132015-01-21 Nick Clifton <nickc@redhat.com>
814
815 PR binutils/17512
816 * addr2line.c (main): Call bfd_set_error_program_name.
817 * ar.c (main): Likewise.
818 * coffdump.c (main): Likewise.
819 * cxxfilt.c (main): Likewise.
820 * dlltool.c (main): Likewise.
821 * nlmconv.c (main): Likewise.
822 * nm.c (main): Likewise.
823 * objdump.c (main): Likewise.
824 * size.c (main): Likewise.
825 * srconv.c (main): Likewise.
826 * strings.c (main): Likewise.
827 * sysdump.c (main): Likewise.
828 * windmc.c (main): Likewise.
829 * windres.c (main): Likewise.
830 * objcopy.c (main): Likewise.
831 (copy_relocations_in_section): Check for relocs without associated
832 symbol pointers.
833
6c1965f9
RR
8342015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
835
836 * MAINTAINERS: Add self to ARM maintainers list.
837
5b7d6237
NC
8382015-01-21 Nick Clifton <nickc@redhat.com>
839
840 PR binutils/17512
841 * coffgrok.c (do_type): Check that computed ref exists.
842 (doit): Add range checks when computing section for scope.
843
a0a3b04c
L
8442015-01-12 H.J. Lu <hongjiu.lu@intel.com>
845
846 * dwarf.c (process_debug_info): Properly check abbrev size.
847
72c61a0d
NC
8482015-01-12 Nick Clifton <nickc@redhat.com>
849
850 PR binutils/17531
851 * dwarf.c (process_debug_info): Check for abbrev_base being larger
852 than the section size.
853 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
854 arrays.
855 (xcalloc2): New function. Like xcalloc, but checks for overflow.
1306a742
NC
856 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
857 array. Check for an address_base that is too large.
858
72c61a0d
NC
859 * dwarf.h (xcalloc2): Prototype.
860
b38ead21
AM
8612015-01-12 Alan Modra <amodra@gmail.com>
862
863 * prdbg.c (print_debugging_info): Don't use void* for function
864 pointer param.
865 * budbg.h (print_debugging_info): Update prototype.
866
3565cf8f
NC
8672015-01-08 Nick Clifton <nickc@redhat.com>
868
869 PR binutils/17512
063bb025
NC
870 * ojcopy.c (copy_object): Free the symbol table if no symbols
871 could be loaded.
872 (copy_file): Use bfd_close_all_done to close files that could not
873 be copied.
874
848cde35
NC
875 * sysdump.c (getINT): Fail if reading off the end of the buffer.
876 Replace call to abort with a call to fatal.
877 (getCHARS): Prevetn reading off the end of the buffer.
878
3565cf8f
NC
879 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
880 associated symbol.
881 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
882 range before applying a reloc.
883
c88f5b8e
NC
8842015-01-07 Nick Clifton <nickc@redhat.com>
885
886 PR binutils/17512
d7b24d29
NC
887 * dlltool.c (scan_obj_file): Break loop if the last archive
888 displayed matches the current archive.
889
c88f5b8e
NC
890 * objdump.c (display_any_bfd): Add a depth limit to nested archive
891 display in order to avoid infinite loops.
892 * srconv.c: Replace calls to abort with calls to fatal with an
893 error message.
894
85880250
NC
8952015-01-06 Nick Clifton <nickc@redhat.com>
896
897 PR binutils/17512
898 * coffdump.c (dump_coff_section): Check for a symbol being
899 available before printing its name.
900 (main): Check the return value from coff_grok.
901 * coffgrok.c: Reformat and tidy.
902 Add range checks to most functions.
903 (coff_grok): Return NULL if the input bfd is not in a COFF
904 format.
905 * coffgrok.h: Reformat and tidy.
906 (struct coff_section): Change the nrelocs field to unsigned.
907 * srconv.c (main): Check the return value from coff_grok.
908
896ca098
NC
9092015-01-05 Nick Clifton <nickc@redhat.com>
910
911 PR binutils/17512
912 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
913 help initialize the info.elfinfo field.
914 (print_size_symbols): Add 'synth_count' parameter. Use it to set
915 the is_synthetic parameter when calling print_symbol.
916 (print_symbols): Likewise.
917 (display_rel_file): Pass synth_count to printing function.
918 (display_archive): Break loop if the last archive displayed
919 matches the current archive.
920 * size.c (display_archive): Likewise.
921
82b1b41b
NC
9222015-01-05 Nick Clifton <nickc@redhat.com>
923
924 PR binutils/17531
925 * dwarf.c (alloc_num_debug_info_entries): New variable.
926 (process_debug_info): Set it. Use it to avoid displaying
927 attributes for which there is no info.
928 (display_debug_abbrev): Check that the debug_info_entry index is
929 valid before using it.
930 (display_loc_list_dwo): Likewise.
931 (process_cu_tu_index): Add range check for an overlarge dw_sect
932 value.
933 (free_debug_memory): Reset alloc_num_debug_info_entries.
934 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
935 be indentified.
936 (dynamic_section_mips_val): Warn if the timestamp is invalid.
937 (print_mips_got_entry): Add a data_end parameter. Warn if a read
938 would go beyond the end of the data, and return an error value.
939 (process_mips_specific): Do not read options from beyond the end
940 of the section.
941 Correct code to display optional data at the end of an option.
942 Warn if there are too many GOT symbols.
943 Update calls to print_mips_got_entry, and handle error returns.
944
c1724c7f
DK
9452015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
946
947 PR binutils/17489
948 * doc/binutils.texi (dlltool): Correct description of --kill-at
949 option.
950
efd321f9
AM
9512015-01-01 Alan Modra <amodra@gmail.com>
952
953 * version.c (print_version): Just print current year.
954
b90efa5b 9552015-01-01 Alan Modra <amodra@gmail.com>
5c294fee 956
b90efa5b 957 Update year range in copyright notice of all files.
5c294fee 958
b90efa5b 959For older changes see ChangeLog-2014
252b5132 960\f
b90efa5b 961Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
962
963Copying and distribution of this file, with or without modification,
964are permitted in any medium without royalty provided the copyright
965notice and this notice are preserved.
966
252b5132
RH
967Local Variables:
968mode: change-log
969left-margin: 8
970fill-column: 74
971version-control: never
972End: