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