Add --decompress option to readelf to decompress sections before they are dumped.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
0e602686
NC
12015-05-15 Nick Clifton <nickc@redhat.com>
2
3 * readelf.c (options): Add "decompress".
4 (usage): Mention -z/--decompress.
5 (parse_args): Handle -z.
6 (uncompress_section_contents): Move to earlier in the file.
7 (dump_section_as_strings): If requested, decompress the section
8 before dumping.
9 (dump_section_as_bytes): Likewise.
10 * doc/binutils.texi: Document the new option.
11
4bc0608a
PB
122015-05-14 Peter Bergner <bergner@vnet.ibm.com>
13
14 * MAINTAINERS: Add myself as PPC maintainer.
15
dab394de
L
162015-05-14 H.J. Lu <hongjiu.lu@intel.com>
17
18 * readelf.c (uncompress_section_contents): Add a parameter for
19 uncompressed size. Don't check the zlib header.
20 (load_specific_debug_section): Updated.
21
d1c4b12b
NC
222015-05-15 Nick Clifton <nickc@redhat.com>
23
24 PR binutils/18374
25 * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs
26 fields.
27 (struct dwarf_section_display): Change bitfield to boolean.
28 (reloc_at): Add prototype.
29 * dwarf.c (display_loc_list): Ignore list terminators if there are
30 relocs against them.
31 (display_debug_loc): Issue a warning if there are relocs against
32 the .debug_loc section.
33 (display_displays): Initialise reloc_info and num_relocs fields.
34 * objdump.c (load_specific_debug_section): Initialise reloc_info
35 and num_relocs fields.
36 (reloc_at): New function.
37 * readelf.c (is_32bit_abs_reloc): Add IA64's R_IA64_DIS32LSB
38 reloc.
39 (reloc_at): New function.
40 (apply_relocations): Add relocs_return and num_relocs_return
41 parameters. Fill them in with the loaded relocs if non-NULL.
42 (dump_section_as_bytes): Update call to apply_relocations.
43 (load_specific_debug_section): Initialise reloc_info and
44 num_relocs fields.
45
aa9f7286
L
462015-05-13 H.J. Lu <hongjiu.lu@intel.com>
47
48 * elfedit.c (elf_class): Return ELF_CLASS_BOTH by default.
49
6604eb5f
AK
502015-05-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
51
52 * MAINTAINERS: Add myself as s390 and s390x maintainer.
53
5b155b95
SK
542015-05-12 Stephen Kitt <steve@sk2.org>
55
56 * dlltool.c (main): Accept -t as an abbreviation for
57 --temp-prefix.
58
3d875af5
L
592015-05-11 H.J. Lu <hongjiu.lu@intel.com>
60
61 * dwarf.c (dwarf_regnames_iamcu): New.
62 (init_dwarf_regnames_iamcu): Likewise.
63 (init_dwarf_regnames): Call init_dwarf_regnames_iamcu for EM_IAMCU.
64 * dwarf.h (init_dwarf_regnames_iamcu): New.
65 * objdump.c (dump_dwarf): Call init_dwarf_regnames_iamcu for
66 bfd_arch_iamcu.
67
6c14750f
L
682015-05-11 H.J. Lu <hongjiu.lu@intel.com>
69
70 * elfedit.c (enum elfclass): New.
71 (input_elf_class): Change type to enum elfclass.
72 (output_elf_class): New.
73 (elf_class): Change return type to enum elfclass. Support EM_386
74 and EM_IAMCU.
75 (update_elf_header): Check if input and output ELF classes match.
76 (elf_machine): Support EM_386 and EM_IAMCU.
77 (main): Update input_elf_class. Set output_elf_class.
78 * doc/binutils.texi: Update elfedit.
79
22abe556
L
802015-05-11 H.J. Lu <hongjiu.lu@intel.com>
81
82 * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
83 * readelf.c (guess_is_rela): Likewise.
84 (dump_relocations): Likewise.
85 (get_machine_name): Likewise.
86 (get_elf_section_flags): Likewise.
87 (process_section_headers): Likewise.
88 (is_32bit_abs_reloc): Likewise.
89 (is_32bit_pcrel_reloc): Likewise.
90
153a2776
NC
912015-04-30 Nick Clifton <nickc@redhat.com>
92
93 * readelf.c (get_machine_flags): Add description of MeP flags.
94
643f7afb
AK
952015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
96
97 * readelf.c (display_s390_gnu_attribute): New function.
98 (process_s390_specific): New function.
99 (process_arch_specific): Call process_s390_specific.
100
de13ef81
NC
1012015-04-24 Nick Clifton <nickc@redhat.com>
102
103 PR 18313
104 * ieee.c (ieee_read_cxx_class): Initialise the varargs variable.
105 * readelf.c (uncompress_section_contents): Zero initialise the
106 zstream structure.
107
f6fe1ccd
L
1082015-04-23 H.J. Lu <hongjiu.lu@intel.com>
109
110 PR binutils/18209
111 * objcopy.c (setup_section): Copy compress status.
112
ea556d25
L
1132015-04-15 H.J. Lu <hongjiu.lu@intel.com>
114
115 * NEWS: Mention
116 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi].
117
6ff71e76
NC
1182015-04-14 Nick Clifton <nickc@redhat.com>
119
120 * readelf.c (target_specific_reloc_handling): Add code to handle
121 RL78 complex relocs.
122
0d2a7a93
DE
1232015-04-13 Doug Evans <dje@google.com>
124
125 PR binutils/18218
126 * readelf.c (printable_section_name): Constify sec argument.
127 (apply_relocations): Ditto. New arg "size". All callers updated.
128 (load_specific_debug_section): Constify sec argument.
129 Remove side-effect of modifying sec->sh_size.
130
cd6faa73
L
1312015-04-09 H.J. Lu <hongjiu.lu@intel.com>
132
133 * objcopy.c (do_debug_sections): Use bit patterns.
134 (copy_object): Return FALSE for compress_zlib, compress_gnu_zlib
135 and compress_gabi_zlib on non-ELF input.
136 (copy_file): Don't check non-ELF input here.
137
3525236c
NC
1382015-04-09 Nick Clifton <nickc@redhat.com>
139
140 * readelf.c (get_machine_flags): Report the setting of the string
141 insn using bits.
142
151411f8
L
1432015-04-08 H.J. Lu <hongjiu.lu@intel.com>
144
145 * objcopy.c (do_debug_sections): Add compress_zlib,
146 compress_gnu_zlib and compress_gabi_zlib.
147 (copy_options): Use optional_argument on compress-debug-sections.
148 (copy_usage): Update --compress-debug-sections.
149 (copy_file): Handle compress_zlib, compress_gnu_zlib and
150 compress_gabi_zlib.
151 (copy_main): Handle
152 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
153 * doc/binutils.texi: Document
154 --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
155
bfcf0ccd
L
1562015-04-08 H.J. Lu <hongjiu.lu@intel.com>
157
158 * objcopy.c (copy_usage): Replace "--interleave [<number>]" with
159 --interleave[=<number>].
160
77115a4a
L
1612015-04-05 H.J. Lu <hongjiu.lu@intel.com>
162
163 * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
164 (get_compression_header): New.
165 (process_section_headers): Dump compression header if needed.
166 (uncompress_section_contents): Don't free compressed_buffer here.
167 (load_specific_debug_section): Free the compressed buffer, update
168 the section buffer and the section size if uncompress is
169 successful.
170
39f3de7c
L
1712015-04-02 H.J. Lu <hongjiu.lu@intel.com>
172
173 * configure: Regenerated.
174
3d5ff620
MF
1752015-04-02 Mike Frysinger <vapier@gentoo.org>
176
177 * MAINTAINERS: Update my e-mail address.
178
afa59b79
L
1792015-04-01 H.J. Lu <hongjiu.lu@intel.com>
180
181 * configure: Regenerated.
182
ed2b5077
L
1832015-03-31 H.J. Lu <hongjiu.lu@intel.com>
184
185 * configure.ac: Revert the AM_ZLIB change.
186 * Makefile.in: Regenerated.
187 * aclocal.m4: Likewise.
188 * configure: Likewise.
189
0ee42ecd
L
1902015-03-31 H.J. Lu <hongjiu.lu@intel.com>
191
192 * Makefile.am (ZLIB): New.
193 (ZLIBINC): Likewise.
194 (AM_CFLAGS): Add $(ZLIBINC).
195 (readelf_LDADD): Add $(ZLIB).
196 * configure.ac (AM_ZLIB): Removed.
197 (zlibdir): New. AC_SUBST.
198 (zlibinc): Likewise.
199 Add --with-system-zlib.
200 * Makefile.in: Regenerated.
201 * config.in: Likewise.
202 * configure: Likewise.
203
1740ba0c
NC
2042015-03-19 Nick Clifton <nickc@redhat.com>
205
206 * readelf.c (get_machine_flags): Decode RL78's G13 and G14 flags.
207
273a4985
JT
2082015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
209 Nick Clifton <nickc@redhat.com>
210
211 PR binutils/18087
212 * doc/binutils.texi: Note that when objcopy compresses debug
213 sections the compression is only performed if it makes the section
214 smaller.
215
5656ba2c
L
2162015-03-10 H.J. Lu <hongjiu.lu@intel.com>
217
218 PR binutils/18101
219 * readelf.c (parse_args): Move nothing to do warning to ...
220 (main): Here.
221
cfad8730
NC
2222015-03-10 Nick Clifton <nickc@redhat.com>
223
b6370efb
NC
224 PR binutils/18101
225 * readelf.c (parse_args): Enhance check for nothing to do by
226 accounting for the --wide option.
227
cfad8730
NC
228 PR binutils/17636
229 * objcopy.c (copy_object): Avoid calling fatal as that does not
230 allow the parent to clean up temporary files.
231
a5721edd
JW
2322015-03-10 Yuri Gribov <y.gribov@samsung.arm>
233
234 PR ld/16572
235 * readelf.c: Remove support for ELF_ARM_HASENTRY.
236
4fd77a3d
NC
2372015-03-05 Nick Clifton <nickc@redhat.com>
238
239 PR binutils/18064
240 * doc/binutils.texi (objcopy): Extend description of
241 --add-gnu-debuglink option to explain that the separate debug info
242 file must exist. Add a description of what to do if the debug
243 info file is built in one place but then installed into a separate
244 location.
245
81fb971a
NC
2462015-03-05 Nick Clifton <nickc@redhat.com>
247
248 PR binutils/17994
249 * dlltool.c (temp_file_to_remove): New local array.
250 (unlink_temp_files): New functions - unlinks any file in the
251 temp_file_to_remove array, unless dotdeltemps is set.
252 (gen_exp_file): Add temp files to array.
253 (make_head): Likewise.
254 (make_delay_head): Likewise.
255 (make_tail): Likewise.
256 (gen_lib_file): Call unlink_temp_files.
257
acf1419f
AB
2582015-02-28 Andrew Burgess <andrew.burgess@embecosm.com>
259
260 * objcopy.c (update_sections): New list.
261 (command_line_switch): Add OPTION_UPDATE_SECTION.
262 (copy_options): Add update-section.
263 (copy_usage): Document new option.
264 (is_update_section): New function.
265 (is_strip_section_1): Add check for attempt to update and remove
266 the same section.
267 (copy_object): Update size and content of requested sections.
268 (skip_section): Don't copy for updated sections.
269 (copy_main): Handle --update-section.
270 * doc/binutils.texi (objcopy): Add description of --update-section
271 option.
272 * NEWS: Mention --update-section option.
273
d93c7787
NC
2742015-02-26 Nick Clifton <nickc@redhat.com>
275
276 PR binutils/17512
277 * coffgrok.c (do_type): Check for an out of range tag index.
278 Check for integer overflow computing array dimension.
279 (do_define): Likewise.
280
06b73f41
AB
2812015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
282
283 * objcopy.c (init_section_add): Rename optarg to arg in order to
284 avoid shadowing a global variable.
285
e3ee4005
NC
2862015-02-26 Nick Clifton <nickc@redhat.com>
287
288 PR binutils/17512
289 * resrc.c (write_rc_messagetable): Tighten check for invalid
290 message lengths.
291
c8071705
NC
292 * dwarf.c (display_debug_loc): Pacify the undefined behaviour
293 sanitizer by simplifying address difference calculation.
294 (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in
295 order to avoid arithmetic overflows.
296 (frame_display_row): Cast cfa_offset before printing it.
297 (display_debug_frames): Likewise.
298 Check for an unexpected segment size.
299 Chnage type of 'l' local to dwarf_vma and cast it back to an int
300 when printing.
301 (process_cu_tu_index): Tighten check for an invalid ncols value.
302 * readelf.c (process_corefile_note_segment): Check for
303 inote.descdata extending beyond the end of the section.
304 (process_v850_notes): Likewise.
305
99654aaf
TG
3062015-02-26 Terry Guo <terry.guo@arm.com>
307
308 * readelf.c (arm_attr_tag_ABI_HardFP_use): Update how we
309 display it.
310
7173b38a
AB
3112015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * objcopy.c (init_section_add): New function.
314 (section_add_load_file): New function.
315 (copy_main): Make use of new functions.
316
137c83d6
AB
3172015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
318
319 * od-elf32_avr.c: Add elf32-avr.h include.
320 (OPT_AVRPROP): Define.
321 (options[]): Add 'avr-prop' entry.
322 (elf32_avr_help): Add avr-prop help text.
323 (elf32_avr_dump_avr_prop): New function.
324 (elf32_avr_dump): Add check for avr-prop.
325
685080f2
NC
3262015-02-24 Nick Clifton <nickc@redhat.com>
327
328 * readelf.c (get_machine_flags): Remove deprecated V850 machine
329 flags.
330 (get_v850_section_type_name): New function. Handles V850 special
331 sections.
332 (get_section_type_name): Add support for V850.
333 (get_v850_elf_note_type): New function. Returns the name of a
334 V850 note.
335 (print_v850_note): New function. Prints a V850 note.
336 (process_v850_notes): New function. Prints V850 notes.
337 (process_note_sections): Add support for V850.
338
94d15024
MF
3392015-02-24 Mike Frysinger <vapier@gentoo.org>
340
341 PR binutils/17531
342 * readelf.c (process_symbol_table): Declare chained. Increment it
343 in every loop. Abort when chained is larger than nchains. Move
344 error check outside of chain loop.
345
948f632f
DA
3462015-02-24 Dmitry Antipov <dantipov@nvidia.com>
347
348 * readelf.c (find_symbol_for_address): Use a binary search to
349 speed up symbol location. Skip check for function symbol type.
350 (*_unw_aux_info): Add funtab and nfuns fields contains a sorted
351 list of function symbols.
352 (dump_ia64_unwind): Initialise the funtab and nfuns fields and
353 pass them to find_symbol_for_address.
354 (dump_hppa_unwind): Likewise.
355 (arm_print_vma_and_name): Pass funtab to find_symbol_for_address.
356 (dump_arm_unwind): Initialise the funtab and nfuns fields.
357
0821d5b1
NC
3582015-02-24 Nick Clifton <nickc@redhat.com>
359
360 * objdump.c (dump_section): Extend the warning message displayed
361 when a section cannot be loaded.
362
9035ed51
MF
3632015-02-21 Mike Frysinger <vapier@gentoo.org>
364
365 * readelf.c (process_program_headers): Add newline to warning
366 message.
367
4ef9f41a
AA
3682015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
369
370 * readelf.c (get_note_type): Add NT_S390_VXRS_LOW and
371 NT_S390_VXRS_HIGH.
372
951eaaec
NC
3732015-02-13 Nick Clifton <nickc@redhat.com>
374
375 PR binutils/17512
376 * dwarf.c (read_leb128): Fix test for shift becoming too large.
377
378 * coffgrok.c (do_define): Add check for type size overflow.
379 * srconv.c (walk_tree_sfile): Check that enough sections are
380 available before parsing.
381 (prescan): Likewise.
382
ffc0f143
NC
383 PR binutils/17531
384 * dwarf.c (display_debug_aranges): Add check for an excessive
385 ar_length value.
386 (process_cu_tu_index): Check for a row * columns sum being too
387 large.
388
b4eb7656
AM
3892015-02-13 Alan Modra <amodra@gmail.com>
390
391 * dwarf.c: Formatting, whitespace.
392 (process_debug_info): Style fix.
393
0e7f931f
NC
3942015-02-11 Nick Clifton <nickc@redhat.com>
395
396 * rl78-decode.opc: Add 'a' attribute to instructions that support
397 [HL+0] addressing.
398 * rl78-decode.c: Regenerate.
399 * rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
400 addresses.
401
362beea4
NC
4022015-02-11 Nick Clifton <nickc@redhat.com>
403
404 PR binutils/17531
405 * dwarf.c (display_debug_pubnames_worker): Work around compiler
406 bug checking address ranges.
407 (display_debug_frames): Likewise.
408 (display_gdb_index): Likewise.
409 (process_cu_tu_index): Add range check on the ncols value.
410
77ef8654
NC
4112015-02-10 Nick Clifton <nickc@redhat.com>
412
413 PR binutils/17512
414 * dwarf.c (eh_addr_size): Use an unsigned type.
415 (size_of_encoded_value): Return an unsigned type.
416 (read_leb128): Break if the shift becomes too big.
417 (process_extended_line_op): Do not read the address if the length
418 is too long.
419 (read_cie): Warn and fail if the pointer size or segment size are
420 too big.
421 * dwarf.h (DWARF2_External_LineInfo): Delete unused and incorrect
422 structure definition.
423 (DWARF2_External_PubNames): Likewise.
424 (DWARF2_External_CompUnit): Likewise.
425 (DWARF2_External_ARange): Likewise.
426 (DWARF2_Internal_LineInfo): Use dwarf_vma type for
427 li_prologue_length.
428 (eh_addr_size): Update prototype.
429
03a91817
NC
430 PR binutils/17531
431 * dwarf.c (process_debug_info): Zero the debug information array
432 since correct initialisation cannot be relied upon.
433 (process_cu_tu_index): Improve range checks.
434
834f871c
NC
435 PR binutils/17531
436 * dwarf.c (display_debug_pubnames_worker): Use dwarf_vma type for
437 offset.
438 * readelf.c (dump_relocations): Handle printing offsets which are
439 MIN_INT.
440 (process_corefile_note_segment): Add range check of the namesz
441 field.
442
5a195044
MW
4432015-02-09 Mark Wielaard <mjw@redhat.com>
444
445 * dwarf.c (read_and_display_attr_value): Handle DW_LANG_Fortran03
446 and DW_LANG_Fortran08.
447
5929c344
NC
4482015-02-06 Nick Clifton <nickc@redhat.com>
449
450 PR binutils/17512
451 * dwarf.c (display_debug_frames): Fix range checks to work on
452 32-bit binaries complied on a 64-bit host.
453
8490fb40
NC
454 PR binutils/17531
455 * dwarf.c (xcmalloc): Fail if the arguments are too big.
456 (xcrealloc): Likewise.
457 (xcalloc2): Likewise.
55325047
NC
458 * readelf.c (process_mips_specific): Fail if an option has an
459 invalid size.
8490fb40 460
7cc78d07
AM
4612015-02-05 Alan Modra <amodra@gmail.com>
462
463 PR binutils/17926
464 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
465
f3853b34
NC
4662015-02-04 Nick Clifton <nickc@redhat.com>
467
468 PR binutils/17531
469 * dwarf.c (read_and_display_attr_value): Test for a block length
470 being so long that it wraps around to before the start of the block.
471 (process_debug_info): Test for section_begin wrapping around to
472 before the start of the section.
473 (display_gdb_index): Test for num_cus being so large that the end
474 address wraps around to before the start of the section.
475 (process_cu_tu_index): Test for j being so large that the section
476 index pool wraps around to before the start of the section.
477
57028622
NC
4782015-02-03 Nick Clifton <nickc@redhat.com>
479
480 PR binutils/17531
481 * dwarf.c (process_debug_info): Add range check.
482 (display_debug_pubnames_worker): Likewise.
483 (display_gdb_index): Fix range check.
484 (process_cu_tu_index): Add range check.
485 * readelf.c (get_data): Change parameter types from size_t to
486 bfd_size_type. Add checks for loss of accuracy when casting from
487 bfd_size_type to size_t.
488 (get_dynamic_data): Likewise.
489 (process_section_groups): Limit number of error messages.
490
64d29018
NC
4912015-02-03 Nick Clifton <nickc@redhat.com>
492
493 PR binutils/17512
494 * objdump.c (display_any_bfd): Fail if archives nest too deeply.
495
3f8107ab
AM
4962015-01-28 James Bowman <james.bowman@ftdichip.com>
497
498 * readelf.c: Add FT32 support.
499
37e3922e
NC
5002015-01-27 Nick Clifton <nickc@redhat.com>
501
502 PR binutils/17512
503 * dlltool.c (identify_search_archive): If the last archive was the
504 same as the current archive, terminate the loop.
505
877a8638
NC
506 * addr2line.c (slurp_symtab): If the symcount is zero, free the
507 symbol table pointer.
508
0897ec15
NC
509 * rcparse.y: Add checks to avoid integer divide by zero.
510 * rescoff.c (read_coff_rsrc): Add check on the size of the
511 resource section.
512 (read_coff_res_dir): Add check on the nesting level.
513 Check for resource names overrunning the buffer.
514 * resrc.c (write_rc_messagetable): Update formatting.
515 Add check of 'elen' being zero.
516
bb97bdd7
NC
5172015-01-23 Nick Clifton <nickc@redhat.com>
518
519 * nlmconv.c (powerpc_mangle_relocs): Fix build errors introduced
520 by recent delta, when compiling on for a 32-bit host.
521
86eafac0
NC
5222015-01-21 Nick Clifton <nickc@redhat.com>
523
524 PR binutils/17512
525 * addr2line.c (main): Call bfd_set_error_program_name.
526 * ar.c (main): Likewise.
527 * coffdump.c (main): Likewise.
528 * cxxfilt.c (main): Likewise.
529 * dlltool.c (main): Likewise.
530 * nlmconv.c (main): Likewise.
531 * nm.c (main): Likewise.
532 * objdump.c (main): Likewise.
533 * size.c (main): Likewise.
534 * srconv.c (main): Likewise.
535 * strings.c (main): Likewise.
536 * sysdump.c (main): Likewise.
537 * windmc.c (main): Likewise.
538 * windres.c (main): Likewise.
539 * objcopy.c (main): Likewise.
540 (copy_relocations_in_section): Check for relocs without associated
541 symbol pointers.
542
6c1965f9
RR
5432015-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
544
545 * MAINTAINERS: Add self to ARM maintainers list.
546
5b7d6237
NC
5472015-01-21 Nick Clifton <nickc@redhat.com>
548
549 PR binutils/17512
550 * coffgrok.c (do_type): Check that computed ref exists.
551 (doit): Add range checks when computing section for scope.
552
a0a3b04c
L
5532015-01-12 H.J. Lu <hongjiu.lu@intel.com>
554
555 * dwarf.c (process_debug_info): Properly check abbrev size.
556
72c61a0d
NC
5572015-01-12 Nick Clifton <nickc@redhat.com>
558
559 PR binutils/17531
560 * dwarf.c (process_debug_info): Check for abbrev_base being larger
561 than the section size.
562 (process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
563 arrays.
564 (xcalloc2): New function. Like xcalloc, but checks for overflow.
1306a742
NC
565 (display_debug_addr): Use xcalloc to allocate the debug_addr_info
566 array. Check for an address_base that is too large.
567
72c61a0d
NC
568 * dwarf.h (xcalloc2): Prototype.
569
b38ead21
AM
5702015-01-12 Alan Modra <amodra@gmail.com>
571
572 * prdbg.c (print_debugging_info): Don't use void* for function
573 pointer param.
574 * budbg.h (print_debugging_info): Update prototype.
575
3565cf8f
NC
5762015-01-08 Nick Clifton <nickc@redhat.com>
577
578 PR binutils/17512
063bb025
NC
579 * ojcopy.c (copy_object): Free the symbol table if no symbols
580 could be loaded.
581 (copy_file): Use bfd_close_all_done to close files that could not
582 be copied.
583
848cde35
NC
584 * sysdump.c (getINT): Fail if reading off the end of the buffer.
585 Replace call to abort with a call to fatal.
586 (getCHARS): Prevetn reading off the end of the buffer.
587
3565cf8f
NC
588 * nlmconv.c (i386_mangle_relocs): Skip relocs without an
589 associated symbol.
590 (powerpc_mangle_relocs): Skip unrecognised relocs. Check address
591 range before applying a reloc.
592
c88f5b8e
NC
5932015-01-07 Nick Clifton <nickc@redhat.com>
594
595 PR binutils/17512
d7b24d29
NC
596 * dlltool.c (scan_obj_file): Break loop if the last archive
597 displayed matches the current archive.
598
c88f5b8e
NC
599 * objdump.c (display_any_bfd): Add a depth limit to nested archive
600 display in order to avoid infinite loops.
601 * srconv.c: Replace calls to abort with calls to fatal with an
602 error message.
603
85880250
NC
6042015-01-06 Nick Clifton <nickc@redhat.com>
605
606 PR binutils/17512
607 * coffdump.c (dump_coff_section): Check for a symbol being
608 available before printing its name.
609 (main): Check the return value from coff_grok.
610 * coffgrok.c: Reformat and tidy.
611 Add range checks to most functions.
612 (coff_grok): Return NULL if the input bfd is not in a COFF
613 format.
614 * coffgrok.h: Reformat and tidy.
615 (struct coff_section): Change the nrelocs field to unsigned.
616 * srconv.c (main): Check the return value from coff_grok.
617
896ca098
NC
6182015-01-05 Nick Clifton <nickc@redhat.com>
619
620 PR binutils/17512
621 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to
622 help initialize the info.elfinfo field.
623 (print_size_symbols): Add 'synth_count' parameter. Use it to set
624 the is_synthetic parameter when calling print_symbol.
625 (print_symbols): Likewise.
626 (display_rel_file): Pass synth_count to printing function.
627 (display_archive): Break loop if the last archive displayed
628 matches the current archive.
629 * size.c (display_archive): Likewise.
630
82b1b41b
NC
6312015-01-05 Nick Clifton <nickc@redhat.com>
632
633 PR binutils/17531
634 * dwarf.c (alloc_num_debug_info_entries): New variable.
635 (process_debug_info): Set it. Use it to avoid displaying
636 attributes for which there is no info.
637 (display_debug_abbrev): Check that the debug_info_entry index is
638 valid before using it.
639 (display_loc_list_dwo): Likewise.
640 (process_cu_tu_index): Add range check for an overlarge dw_sect
641 value.
642 (free_debug_memory): Reset alloc_num_debug_info_entries.
643 * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not
644 be indentified.
645 (dynamic_section_mips_val): Warn if the timestamp is invalid.
646 (print_mips_got_entry): Add a data_end parameter. Warn if a read
647 would go beyond the end of the data, and return an error value.
648 (process_mips_specific): Do not read options from beyond the end
649 of the section.
650 Correct code to display optional data at the end of an option.
651 Warn if there are too many GOT symbols.
652 Update calls to print_mips_got_entry, and handle error returns.
653
c1724c7f
DK
6542015-01-05 Daniel Klauer <daniel.c.klauer@web.de>
655
656 PR binutils/17489
657 * doc/binutils.texi (dlltool): Correct description of --kill-at
658 option.
659
efd321f9
AM
6602015-01-01 Alan Modra <amodra@gmail.com>
661
662 * version.c (print_version): Just print current year.
663
b90efa5b 6642015-01-01 Alan Modra <amodra@gmail.com>
5c294fee 665
b90efa5b 666 Update year range in copyright notice of all files.
5c294fee 667
b90efa5b 668For older changes see ChangeLog-2014
252b5132 669\f
b90efa5b 670Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
671
672Copying and distribution of this file, with or without modification,
673are permitted in any medium without royalty provided the copyright
674notice and this notice are preserved.
675
252b5132
RH
676Local Variables:
677mode: change-log
678left-margin: 8
679fill-column: 74
680version-control: never
681End:
This page took 0.700005 seconds and 4 git commands to generate.