]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/ChangeLog
717533fde3c034258add4bbe8661f752eb59ef1f
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
1 2015-04-14 Nick Clifton <nickc@redhat.com>
2
3 * readelf.c (target_specific_reloc_handling): Add code to handle
4 RL78 complex relocs.
5
6 2015-04-13 Doug Evans <dje@google.com>
7
8 PR binutils/18218
9 * readelf.c (printable_section_name): Constify sec argument.
10 (apply_relocations): Ditto. New arg "size". All callers updated.
11 (load_specific_debug_section): Constify sec argument.
12 Remove side-effect of modifying sec->sh_size.
13
14 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
15
16 * objcopy.c (do_debug_sections): Use bit patterns.
17 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
18 and compress_gabi_zlib on non-ELF input.
19 (copy_file): Don't check non-ELF input here.
20
21 2015-04-09 Nick Clifton <nickc@redhat.com>
22
23 * readelf.c (get_machine_flags): Report the setting of the string
24 insn using bits.
25
26 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
27
28 * objcopy.c (do_debug_sections): Add compress_zlib,
29 compress_gnu_zlib and compress_gabi_zlib.
30 (copy_options): Use optional_argument on compress-debug-sections.
31 (copy_usage): Update --compress-debug-sections.
32 (copy_file): Handle compress_zlib, compress_gnu_zlib and
33 compress_gabi_zlib.
34 (copy_main): Handle
35 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
36 * doc/binutils.texi: Document
37 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
38
39 2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
40
41 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
42 --interleave[=<number>].
43
44 2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
45
46 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
47 (get_compression_header): New.
48 (process_section_headers): Dump compression header if needed.
49 (uncompress_section_contents): Don't free compressed_buffer here.
50 (load_specific_debug_section): Free the compressed buffer, update
51 the section buffer and the section size if uncompress is
52 successful.
53
54 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
55
56 * configure: Regenerated.
57
58 2015-04-02 Mike Frysinger <vapier@gentoo.org>
59
60 * MAINTAINERS: Update my e-mail address.
61
62 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
63
64 * configure: Regenerated.
65
66 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
67
68 * configure.ac: Revert the AM_ZLIB change.
69 * Makefile.in: Regenerated.
70 * aclocal.m4: Likewise.
71 * configure: Likewise.
72
73 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
74
75 * Makefile.am (ZLIB): New.
76 (ZLIBINC): Likewise.
77 (AM_CFLAGS): Add $(ZLIBINC).
78 (readelf_LDADD): Add $(ZLIB).
79 * configure.ac (AM_ZLIB): Removed.
80 (zlibdir): New. AC_SUBST.
81 (zlibinc): Likewise.
82 Add --with-system-zlib.
83 * Makefile.in: Regenerated.
84 * config.in: Likewise.
85 * configure: Likewise.
86
87 2015-03-19 Nick Clifton <nickc@redhat.com>
88
89 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
90
91 2015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
92 Nick Clifton <nickc@redhat.com>
93
94 PR binutils/18087
95 * doc/binutils.texi: Note that when objcopy compresses debug
96 sections the compression is only performed if it makes the section
97 smaller.
98
99 2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
100
101 PR binutils/18101
102 * readelf.c (parse_args): Move nothing to do warning to ...
103 (main): Here.
104
105 2015-03-10 Nick Clifton <nickc@redhat.com>
106
107 PR binutils/18101
108 * readelf.c (parse_args): Enhance check for nothing to do by
109 accounting for the --wide option.
110
111 PR binutils/17636
112 * objcopy.c (copy_object): Avoid calling fatal as that does not
113 allow the parent to clean up temporary files.
114
115 2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
116
117 PR ld/16572
118 * readelf.c: Remove support for ELF_ARM_HASENTRY.
119
120 2015-03-05 Nick Clifton <nickc@redhat.com>
121
122 PR binutils/18064
123 * doc/binutils.texi (objcopy): Extend description of
124 --add-gnu-debuglink option to explain that the separate debug info
125 file must exist. Add a description of what to do if the debug
126 info file is built in one place but then installed into a separate
127 location.
128
129 2015-03-05 Nick Clifton <nickc@redhat.com>
130
131 PR binutils/17994
132 * dlltool.c (temp_file_to_remove): New local array.
133 (unlink_temp_files): New functions - unlinks any file in the
134 temp_file_to_remove array, unless dotdeltemps is set.
135 (gen_exp_file): Add temp files to array.
136 (make_head): Likewise.
137 (make_delay_head): Likewise.
138 (make_tail): Likewise.
139 (gen_lib_file): Call unlink_temp_files.
140
141 2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
142
143 * objcopy.c (update_sections): New list.
144 (command_line_switch): Add OPTION_UPDATE_SECTION.
145 (copy_options): Add update-section.
146 (copy_usage): Document new option.
147 (is_update_section): New function.
148 (is_strip_section_1): Add check for attempt to update and remove
149 the same section.
150 (copy_object): Update size and content of requested sections.
151 (skip_section): Don't copy for updated sections.
152 (copy_main): Handle --update-section.
153 * doc/binutils.texi (objcopy): Add description of --update-section
154 option.
155 * NEWS: Mention --update-section option.
156
157 2015-02-26 Nick Clifton <nickc@redhat.com>
158
159 PR binutils/17512
160 * coffgrok.c (do_type): Check for an out of range tag index.
161 Check for integer overflow computing array dimension.
162 (do_define): Likewise.
163
164 2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
165
166 * objcopy.c (init_section_add): Rename optarg to arg in order to
167 avoid shadowing a global variable.
168
169 2015-02-26 Nick Clifton <nickc@redhat.com>
170
171 PR binutils/17512
172 * resrc.c (write_rc_messagetable): Tighten check for invalid
173 message lengths.
174
175 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
176 sanitizer by simplifying address difference calculation.
177 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
178 order to avoid arithmetic overflows.
179 (frame_display_row): Cast cfa_offset before printing it.
180 (display_debug_frames): Likewise.
181 Check for an unexpected segment size.
182 Chnage type of 'l' local to dwarf_vma and cast it back to an int
183 when printing.
184 (process_cu_tu_index): Tighten check for an invalid ncols value.
185 * readelf.c (process_corefile_note_segment): Check for
186 inote.descdata extending beyond the end of the section.
187 (process_v850_notes): Likewise.
188
189 2015-02-26 Terry Guo <terry.guo@arm.com>
190
191 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
192 display it.
193
194 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * objcopy.c (init_section_add): New function.
197 (section_add_load_file): New function.
198 (copy_main): Make use of new functions.
199
200 2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
201
202 * od-elf32_avr.c: Add elf32-avr.h include.
203 (OPT_AVRPROP): Define.
204 (options[]): Add 'avr-prop' entry.
205 (elf32_avr_help): Add avr-prop help text.
206 (elf32_avr_dump_avr_prop): New function.
207 (elf32_avr_dump): Add check for avr-prop.
208
209 2015-02-24 Nick Clifton <nickc@redhat.com>
210
211 * readelf.c (get_machine_flags): Remove deprecated V850 machine
212 flags.
213 (get_v850_section_type_name): New function. Handles V850 special
214 sections.
215 (get_section_type_name): Add support for V850.
216 (get_v850_elf_note_type): New function. Returns the name of a
217 V850 note.
218 (print_v850_note): New function. Prints a V850 note.
219 (process_v850_notes): New function. Prints V850 notes.
220 (process_note_sections): Add support for V850.
221
222 2015-02-24 Mike Frysinger <vapier@gentoo.org>
223
224 PR binutils/17531
225 * readelf.c (process_symbol_table): Declare chained. Increment it
226 in every loop. Abort when chained is larger than nchains. Move
227 error check outside of chain loop.
228
229 2015-02-24 Dmitry Antipov <dantipov@nvidia.com>
230
231 * readelf.c (find_symbol_for_address): Use a binary search to
232 speed up symbol location. Skip check for function symbol type.
233 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
234 list of function symbols.
235 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
236 pass them to find_symbol_for_address.
237 (dump_hppa_unwind): Likewise.
238 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
239 (dump_arm_unwind): Initialise the funtab and nfuns fields.
240
241 2015-02-24 Nick Clifton <nickc@redhat.com>
242
243 * objdump.c (dump_section): Extend the warning message displayed
244 when a section cannot be loaded.
245
246 2015-02-21 Mike Frysinger <vapier@gentoo.org>
247
248 * readelf.c (process_program_headers): Add newline to warning
249 message.
250
251 2015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
252
253 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
254 NT_S390_VXRS_HIGH.
255
256 2015-02-13 Nick Clifton <nickc@redhat.com>
257
258 PR binutils/17512
259 * dwarf.c (read_leb128): Fix test for shift becoming too large.
260
261 * coffgrok.c (do_define): Add check for type size overflow.
262 * srconv.c (walk_tree_sfile): Check that enough sections are
263 available before parsing.
264 (prescan): Likewise.
265
266 PR binutils/17531
267 * dwarf.c (display_debug_aranges): Add check for an excessive
268 ar_length value.
269 (process_cu_tu_index): Check for a row * columns sum being too
270 large.
271
272 2015-02-13 Alan Modra <amodra@gmail.com>
273
274 * dwarf.c: Formatting, whitespace.
275 (process_debug_info): Style fix.
276
277 2015-02-11 Nick Clifton <nickc@redhat.com>
278
279 * rl78-decode.opc: Add 'a' attribute to instructions that support
280 [HL+0] addressing.
281 * rl78-decode.c: Regenerate.
282 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
283 addresses.
284
285 2015-02-11 Nick Clifton <nickc@redhat.com>
286
287 PR binutils/17531
288 * dwarf.c (display_debug_pubnames_worker): Work around compiler
289 bug checking address ranges.
290 (display_debug_frames): Likewise.
291 (display_gdb_index): Likewise.
292 (process_cu_tu_index): Add range check on the ncols value.
293
294 2015-02-10 Nick Clifton <nickc@redhat.com>
295
296 PR binutils/17512
297 * dwarf.c (eh_addr_size): Use an unsigned type.
298 (size_of_encoded_value): Return an unsigned type.
299 (read_leb128): Break if the shift becomes too big.
300 (process_extended_line_op): Do not read the address if the length
301 is too long.
302 (read_cie): Warn and fail if the pointer size or segment size are
303 too big.
304 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
305 structure definition.
306 (DWARF2_External_PubNames): Likewise.
307 (DWARF2_External_CompUnit): Likewise.
308 (DWARF2_External_ARange): Likewise.
309 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
310 li_prologue_length.
311 (eh_addr_size): Update prototype.
312
313 PR binutils/17531
314 * dwarf.c (process_debug_info): Zero the debug information array
315 since correct initialisation cannot be relied upon.
316 (process_cu_tu_index): Improve range checks.
317
318 PR binutils/17531
319 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
320 offset.
321 * readelf.c (dump_relocations): Handle printing offsets which are
322 MIN_INT.
323 (process_corefile_note_segment): Add range check of the namesz
324 field.
325
326 2015-02-09 Mark Wielaard <mjw@redhat.com>
327
328 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
329 and DW_LANG_Fortran08.
330
331 2015-02-06 Nick Clifton <nickc@redhat.com>
332
333 PR binutils/17512
334 * dwarf.c (display_debug_frames): Fix range checks to work on
335 32-bit binaries complied on a 64-bit host.
336
337 PR binutils/17531
338 * dwarf.c (xcmalloc): Fail if the arguments are too big.
339 (xcrealloc): Likewise.
340 (xcalloc2): Likewise.
341 * readelf.c (process_mips_specific): Fail if an option has an
342 invalid size.
343
344 2015-02-05 Alan Modra <amodra@gmail.com>
345
346 PR binutils/17926
347 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
348
349 2015-02-04 Nick Clifton <nickc@redhat.com>
350
351 PR binutils/17531
352 * dwarf.c (read_and_display_attr_value): Test for a block length
353 being so long that it wraps around to before the start of the block.
354 (process_debug_info): Test for section_begin wrapping around to
355 before the start of the section.
356 (display_gdb_index): Test for num_cus being so large that the end
357 address wraps around to before the start of the section.
358 (process_cu_tu_index): Test for j being so large that the section
359 index pool wraps around to before the start of the section.
360
361 2015-02-03 Nick Clifton <nickc@redhat.com>
362
363 PR binutils/17531
364 * dwarf.c (process_debug_info): Add range check.
365 (display_debug_pubnames_worker): Likewise.
366 (display_gdb_index): Fix range check.
367 (process_cu_tu_index): Add range check.
368 * readelf.c (get_data): Change parameter types from size_t to
369 bfd_size_type. Add checks for loss of accuracy when casting from
370 bfd_size_type to size_t.
371 (get_dynamic_data): Likewise.
372 (process_section_groups): Limit number of error messages.
373
374 2015-02-03 Nick Clifton <nickc@redhat.com>
375
376 PR binutils/17512
377 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
378
379 2015-01-28 James Bowman <james.bowman@ftdichip.com>
380
381 * readelf.c: Add FT32 support.
382
383 2015-01-27 Nick Clifton <nickc@redhat.com>
384
385 PR binutils/17512
386 * dlltool.c (identify_search_archive): If the last archive was the
387 same as the current archive, terminate the loop.
388
389 * addr2line.c (slurp_symtab): If the symcount is zero, free the
390 symbol table pointer.
391
392 * rcparse.y: Add checks to avoid integer divide by zero.
393 * rescoff.c (read_coff_rsrc): Add check on the size of the
394 resource section.
395 (read_coff_res_dir): Add check on the nesting level.
396 Check for resource names overrunning the buffer.
397 * resrc.c (write_rc_messagetable): Update formatting.
398 Add check of 'elen' being zero.
399
400 2015-01-23 Nick Clifton <nickc@redhat.com>
401
402 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
403 by recent delta, when compiling on for a 32-bit host.
404
405 2015-01-21 Nick Clifton <nickc@redhat.com>
406
407 PR binutils/17512
408 * addr2line.c (main): Call bfd_set_error_program_name.
409 * ar.c (main): Likewise.
410 * coffdump.c (main): Likewise.
411 * cxxfilt.c (main): Likewise.
412 * dlltool.c (main): Likewise.
413 * nlmconv.c (main): Likewise.
414 * nm.c (main): Likewise.
415 * objdump.c (main): Likewise.
416 * size.c (main): Likewise.
417 * srconv.c (main): Likewise.
418 * strings.c (main): Likewise.
419 * sysdump.c (main): Likewise.
420 * windmc.c (main): Likewise.
421 * windres.c (main): Likewise.
422 * objcopy.c (main): Likewise.
423 (copy_relocations_in_section): Check for relocs without associated
424 symbol pointers.
425
426 2015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
427
428 * MAINTAINERS: Add self to ARM maintainers list.
429
430 2015-01-21 Nick Clifton <nickc@redhat.com>
431
432 PR binutils/17512
433 * coffgrok.c (do_type): Check that computed ref exists.
434 (doit): Add range checks when computing section for scope.
435
436 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
437
438 * dwarf.c (process_debug_info): Properly check abbrev size.
439
440 2015-01-12 Nick Clifton <nickc@redhat.com>
441
442 PR binutils/17531
443 * dwarf.c (process_debug_info): Check for abbrev_base being larger
444 than the section size.
445 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
446 arrays.
447 (xcalloc2): New function. Like xcalloc, but checks for overflow.
448 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
449 array. Check for an address_base that is too large.
450
451 * dwarf.h (xcalloc2): Prototype.
452
453 2015-01-12 Alan Modra <amodra@gmail.com>
454
455 * prdbg.c (print_debugging_info): Don't use void* for function
456 pointer param.
457 * budbg.h (print_debugging_info): Update prototype.
458
459 2015-01-08 Nick Clifton <nickc@redhat.com>
460
461 PR binutils/17512
462 * ojcopy.c (copy_object): Free the symbol table if no symbols
463 could be loaded.
464 (copy_file): Use bfd_close_all_done to close files that could not
465 be copied.
466
467 * sysdump.c (getINT): Fail if reading off the end of the buffer.
468 Replace call to abort with a call to fatal.
469 (getCHARS): Prevetn reading off the end of the buffer.
470
471 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
472 associated symbol.
473 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
474 range before applying a reloc.
475
476 2015-01-07 Nick Clifton <nickc@redhat.com>
477
478 PR binutils/17512
479 * dlltool.c (scan_obj_file): Break loop if the last archive
480 displayed matches the current archive.
481
482 * objdump.c (display_any_bfd): Add a depth limit to nested archive
483 display in order to avoid infinite loops.
484 * srconv.c: Replace calls to abort with calls to fatal with an
485 error message.
486
487 2015-01-06 Nick Clifton <nickc@redhat.com>
488
489 PR binutils/17512
490 * coffdump.c (dump_coff_section): Check for a symbol being
491 available before printing its name.
492 (main): Check the return value from coff_grok.
493 * coffgrok.c: Reformat and tidy.
494 Add range checks to most functions.
495 (coff_grok): Return NULL if the input bfd is not in a COFF
496 format.
497 * coffgrok.h: Reformat and tidy.
498 (struct coff_section): Change the nrelocs field to unsigned.
499 * srconv.c (main): Check the return value from coff_grok.
500
501 2015-01-05 Nick Clifton <nickc@redhat.com>
502
503 PR binutils/17512
504 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
505 help initialize the info.elfinfo field.
506 (print_size_symbols): Add 'synth_count' parameter. Use it to set
507 the is_synthetic parameter when calling print_symbol.
508 (print_symbols): Likewise.
509 (display_rel_file): Pass synth_count to printing function.
510 (display_archive): Break loop if the last archive displayed
511 matches the current archive.
512 * size.c (display_archive): Likewise.
513
514 2015-01-05 Nick Clifton <nickc@redhat.com>
515
516 PR binutils/17531
517 * dwarf.c (alloc_num_debug_info_entries): New variable.
518 (process_debug_info): Set it. Use it to avoid displaying
519 attributes for which there is no info.
520 (display_debug_abbrev): Check that the debug_info_entry index is
521 valid before using it.
522 (display_loc_list_dwo): Likewise.
523 (process_cu_tu_index): Add range check for an overlarge dw_sect
524 value.
525 (free_debug_memory): Reset alloc_num_debug_info_entries.
526 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
527 be indentified.
528 (dynamic_section_mips_val): Warn if the timestamp is invalid.
529 (print_mips_got_entry): Add a data_end parameter. Warn if a read
530 would go beyond the end of the data, and return an error value.
531 (process_mips_specific): Do not read options from beyond the end
532 of the section.
533 Correct code to display optional data at the end of an option.
534 Warn if there are too many GOT symbols.
535 Update calls to print_mips_got_entry, and handle error returns.
536
537 2015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
538
539 PR binutils/17489
540 * doc/binutils.texi (dlltool): Correct description of --kill-at
541 option.
542
543 2015-01-01 Alan Modra <amodra@gmail.com>
544
545 * version.c (print_version): Just print current year.
546
547 2015-01-01 Alan Modra <amodra@gmail.com>
548
549 Update year range in copyright notice of all files.
550
551 For older changes see ChangeLog-2014
552 \f
553 Copyright (C) 2015 Free Software Foundation, Inc.
554
555 Copying and distribution of this file, with or without modification,
556 are permitted in any medium without royalty provided the copyright
557 notice and this notice are preserved.
558
559 Local Variables:
560 mode: change-log
561 left-margin: 8
562 fill-column: 74
563 version-control: never
564 End: