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