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