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