]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/ChangeLog
More fixes for assertion failures and out-of-bounds reads by readelf.
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
1 2014-11-10 Nick Clifton <nickc@redhat.com>
2
3 PR binutils/17531
4 * (ia64_process_unwind): Replace assertion with an error message.
5 Add range checking for group section indicies.
6 (hppa_process_unwind): Replace assertion with an error message.
7 (process_syminfo): Likewise.
8 (decode_arm_unwind_bytecode): Add range checking.
9 (dump_section_as_strings): Add more string range checking.
10 (display_tag_value): Likewise.
11 (display_arm_attribute): Likewise.
12 (display_gnu_attribute): Likewise.
13 (display_tic6x_attribute): Likewise.
14 (display_msp430x_attribute): Likewise.
15
16 2014-11-10 Nick Clifton <nickc@redhat.com>
17
18 PR binutils/17552
19 * (copy_archive): Clean up temporary files even if an error
20 occurs.
21
22 2014-11-07 H.J. Lu <hongjiu.lu@intel.com>
23
24 * readelf.c (process_dynamic_section): Cast time value to unsigned
25 long to print.
26
27 2014-11-07 Nick Clifton <nickc@redhat.com>
28
29 PR binutils/17531
30 * readelf.c (get_data): Avoid allocating memory when we know that
31 the read will fail.
32 (find_section_by_type): New function.
33 (get_unwind_section_word): Check for invalid symbol indicies.
34 Check for invalid reloc types.
35 (get_32bit_dynamic_section): Add range checks.
36 (get_64bit_dynamic_section): Add range checks.
37 (process_dynamic_section): Check for a corrupt time value.
38 (process_symbol_table): Add range checks.
39 (dump_section_as_strings): Add string length range checks.
40 (display_tag_value): Likewise.
41 (display_arm_attribute): Likewise.
42 (display_gnu_attribute): Likewise.
43 (display_tic6x_attribute): Likewise.
44 (display_msp430x_attribute): Likewise.
45 (process_mips_specific): Add range check.
46
47 2014-11-06 Nick Clifton <nickc@redhat.com>
48
49 PR binutils/17552, binutils/17533
50 * bucomm.c (is_valid_archive_path): New function. Returns false
51 for absolute pathnames and pathnames that include /../.
52 * bucomm.h (is_valid_archive_path): Add prototype.
53 * ar.c (extract_file): Use new function to check for valid
54 pathnames when extracting files from an archive.
55 * objcopy.c (copy_archive): Likewise.
56 * doc/binutils.texi: Update documentation to mention the
57 limitation on pathname of archive members.
58
59 2014-11-05 Nick Clifton <nickc@redhat.com>
60
61 PR binutils/17531
62 * readelf.c (printable_section_name): New function.
63 (printable_section_name_from_index): New function.
64 (dump_relocations): Use new function.
65 (process_program_headers, get_32bit_elf_symbols,
66 (get_64bit_elf_symbols, process_section_headers,
67 (process_section_groups, process_relocs, ia64_process_unwind,
68 (hppa_process_unwind, get_unwind_section_word, decode_arm_unwind,
69 (arm_process_unwind, process_version_sections,
70 (process_symbol_table, apply_relocations, get_section_contents,
71 (dump_section_as_strings, dump_section_as_bytes,
72 (display_debug_section, process_attributes, process_mips_specific,
73 (process_mips_specific process_gnu_liblist): Likewise.
74 (get_unwind_section_word): Check for a missing symbol table.
75 Replace aborts with error messages.
76 (arm_process_unwind): Check for a missing string table.
77 (process_attributes): Check for an attribute length that is too
78 small.
79 (process_mips_specific): Check for a corrupt GOT symbol offset.
80
81 2014-11-05 Nick Clifton <nickc@redhat.com>
82
83 PR binutils/17533
84 * bucomm.c (is_valid_archive_path): New function.
85 * bucomm.h (is_valid_archive_path): Prototype it.
86 * ar.c (extract_file): Call is_valid_archive_path to verify a
87 member filename before extracting it.
88 * objcopy.c (copy_archive): Likewise.
89
90 2014-11-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
91
92 * readelf.c (process_mips_specific): Fix format string warning.
93
94 2014-11-04 Matthew Fortune <matthew.fortune@imgtec.com>
95
96 * readelf.c (process_mips_specific): Rename index to idx.
97
98 2014-11-04 Nick Clifton <nickc@redhat.com>
99
100 PR binutils/17531
101 * readelf.c (get_data): If the reason parameter is null, do not
102 print any error messages.
103 (get_32bit_section_headers): Verify section header entry size
104 before reading in the section headers.
105 (get_64bit_section_headers): Likewise.
106 (process_section_headers): Pass FALSE to get_section_headers.
107 (get_file_header): Pass TRUE to get_section_headers.
108 (process_dynamic_section): Change an assert to an error message.
109 (process_symbol_table): Handle corrupt histograms.
110
111 (get_32bit_program_headers): Verify program header entry size
112 before reading in the program headers.
113 (get_64bit_program_headers): Likewise.
114 (get_unwind_section_word): Do nothing if no section was provided.
115 Fail if the offset is outside of the section.
116 (print_dynamic_symbol): Catch out of range symbol indicies.
117 (process_mips_specific): Likewise.
118 (process_attributes): Make sure that there is enough space left in
119 the section before attempting to read the length of the next
120 attribute.
121
122 2014-11-03 Nick Clifton <nickc@redhat.com>
123
124 PR binutils/17512
125 * objdump.c (slurp_symtab): Fail gracefully if the table could not
126 be read.
127 (dump_relocs_in_section): Likewise.
128
129 2014-11-03 Nick Clifton <nickc@redhat.com>
130
131 * po/fi.po: Updated Finnish translation.
132 * po/sv.po: Updated Swedish translation.
133
134 2014-11-01 Hans-Peter Nilsson <hp@axis.com>
135
136 * readelf.c (get_32bit_elf_symbols): Cast error
137 parameters of bfd_size_type with the %lx format to
138 unsigned long.
139
140 2014-10-31 Andrew Pinski <apinski@cavium.com>
141 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
142
143 * readelf.c (print_mips_isa_ext): Print the value of Octeon3.
144
145 2014-10-31 Iain Buclaw <ibuclaw@gdcproject.org>
146
147 * cxxfilt.c (main): Add case for dlang_demangling style.
148
149 2014-10-31 Nick Clifton <nickc@redhat.com>
150
151 PR binutils/17512
152 * readelf.c (process_program_headers): Avoid memory exhaustion due
153 to corrupt values in a dynamis segment header.
154 (get_32bit_elf_symbols): Do not attempt to read an over-large
155 section.
156 (get_64bit_elf_symbols): Likewise.
157
158 2014-10-31 Nick Clifton <nickc@redhat.com>
159
160 * strings.c: Add new command line option --data to only scan the
161 initialized, loadable data secions of binaries. Choose the
162 default behaviour of --all or --data based upon a configure
163 option.
164 * doc/binutils.texi (strings): Update documentation. Include
165 description of why the --data option might be unsafe.
166 * configure.ac: Add new option --disable-default-strings-all which
167 restores the old behaviour of strings using --data by default. If
168 the option is not used make strings use --all by default.
169 * NEWS: Mention the new behaviour of strings.
170 * configure: Regenerate.
171 * config.in: Regenerate.
172
173 2014-10-30 Nick Clifton <nickc@redhat.com>
174
175 * readelf.c (CHECK_ENTSIZE_VALUES): Rewrite error message so that
176 there is a single string for translation.
177 (dynamic_section_mips_val): Likewise.
178
179 2014-10-29 Nick Clifton <nickc@redhat.com>
180
181 * po/bg.po: Updated Bulgarian translation.
182 * po/sr.po: New Serbian translation.
183 * po/sv.po: Updated Swedish translation.
184
185 2014-10-22 Matthew Fortune <matthew.fortune@imgtec.com>
186
187 * readelf.c (print_mips_ases): Print unknown ASEs.
188 (print_mips_isa_ext): Print the value of an unknown extension.
189
190 2014-10-15 Tristan Gingold <gingold@adacore.com>
191
192 * configure: Regenerate.
193
194 2014-10-14 Tristan Gingold <gingold@adacore.com>
195
196 * NEWS: Add marker for 2.25.
197
198 2014-10-14 Alan Modra <amodra@gmail.com>
199
200 PR 17453
201 * dwarf.c (read_leb128): Avoid signed overflow.
202 (read_debug_line_header): Likewise.
203
204 2014-10-14 Alan Modra <amodra@gmail.com>
205
206 PR 17453
207 * readelf.c (process_program_headers): Correct fscanf format used
208 for interpreter.
209
210 2014-10-09 Jose E. Marchesi <jose.marchesi@oracle.com>
211
212 * readelf.c (display_sparc_hwcaps2): New function.
213 (display_sparc_gnu_attribute): Call `display_sparc_hwcaps2' when
214 handling `Tag_GNU_Sparc_HWCAPS2' attributes.
215
216 2014-09-22 Alan Modra <amodra@gmail.com>
217
218 PR 16563
219 * dwarf.c (GET): Remove semicolon.
220 (read_cie): New function, extracted from..
221 (display_debug_frames): ..here. Correctly handle signed offset
222 from FDE to CIE in .eh_frame. Decode forward referenced CIEs too.
223
224 2014-09-16 Nick Clifton <nickc@redhat.com>
225
226 * readelf.c (display_arm_attribute): Use unsigned int type for
227 tag, val and type variables.
228
229 2014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
230
231 * readelf.c (decode_NDS32_machine_flags): Display ABI2 FP+.
232
233 2014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
234 Matthew Fortune <matthew.fortune@imgtec.com>
235
236 * readelf.c (get_machine_flags): Add support for mips32r6 and
237 mips64r6.
238
239 2014-09-01 Jon TURNEY <jon.turney@dronecode.org.uk>
240
241 * objcopy.c (is_nondebug_keep_contents_section): Change
242 '.build-id' to '.buildid'.
243
244 2014-08-22 Richard Henderson <rth@redhat.com>
245
246 * dwarf.h (init_dwarf_regnames_aarch64): Declare.
247 * dwarf.c (dwarf_regnames_aarch64): New.
248 (init_dwarf_regnames_aarch64): New.
249 (init_dwarf_regnames): Call it.
250 * objdump.c (dump_dwarf): Likewise.
251
252 2014-08-19 Alan Modra <amodra@gmail.com>
253
254 * configure: Regenerate.
255
256 2014-08-14 Alan Modra <amodra@gmail.com>
257
258 * configure.ac: Move ACX_LARGEFILE after LT_INIT.
259 * config.in: Regenerate.
260 * configure: Regenerate.
261
262 2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
263
264 * readelf.c (get_mips_segment_type): Display name for PT_MIPS_ABIFLAGS.
265 (get_mips_section_type_name): Display name for SHT_MIPS_ABIFLAGS.
266 (display_mips_gnu_attribute): Abstracted fp abi printing to...
267 (print_mips_fp_abi_value): New static function. Handle new FP ABIs.
268 (print_mips_ases, print_mips_isa_ext): New static functions.
269 (get_mips_reg_size): Likewise.
270 (process_mips_specific): Display abiflags data.
271
272 2014-07-28 Alan Modra <amodra@gmail.com>
273
274 PR 13227
275 * nm.c (filter_symbols): Warn on __gnu_lto_slim.
276
277 2014-07-07 Nick Clifton <nickc@redhat.com>
278
279 * readelf.c (get_symbol_type): Revert accidental change to
280 detection of thumb function symbols.
281
282 2014-07-04 Alan Modra <amodra@gmail.com>
283
284 * configure.ac: Rename from configure.in.
285 * Makefile.in: Regenerate.
286 * config.in: Regenerate.
287 * doc/Makefile.in: Regenerate.
288
289 2014-07-04 Alan Modra <amodra@gmail.com>
290
291 * configure.in: Include bfd/version.m4.
292 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
293 (BFD_VERSION): Delete.
294 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
295 * configure: Regenerate.
296 * Makefile.in: Regenerate.
297 * doc/Makefile.in: Regenerate.
298
299 2014-07-03 Tristan Gingold <gingold@adacore.com>
300
301 * doc/binutils.texi: Clarify addr2line output.
302
303 2014-07-01 Alan Modra <amodra@gmail.com>
304
305 * objdump.c (dump_bfd_header): Don't print HAS_LOAD_PAGE.
306
307 2014-06-26 Erik Akermann <kurterikackermann@gmail.com>
308
309 * strings.c: Add -w/--include-all-whitespace option to include any
310 whitespace character in the displayed strings.
311 * NEWS: Mention the new feature.
312 * doc/binutils.texi (strings): Document the new command line
313 option.
314
315 2014-06-26 Nick Clifton <nickc@redhat.com>
316
317 * readelf.c (process_note_sections): If there are no note sections
318 try processing note segments instead.
319
320 2014-06-17 Anton Lavrentiwev <lavr@ncbi.nim.nih.gov>
321
322 PR binutils/16923
323 * rcparse.y (fixedverinfo): Prevent large version numbers from
324 corrupting other values.
325
326 2014-06-09 Romain Chastenet <romain.chastenet@free.fr>
327
328 PR binutils/16252
329 * dwarf.c (display_debug_frames): Remember the state of the
330 cfa_offset, cfa_reg, ra and cfa_exp field
331
332 2014-06-05 Joel Brobecker <brobecker@adacore.com>
333
334 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
335 bfd's development.sh.
336 * Makefile.in, configure: Regenerate.
337
338 2014-05-16 Jon Turney <jon.turney@dronecode.org.uk>
339
340 * objcopy.c (is_nondebug_keep_contents_section): New function.
341 (setup_section): Use it.
342
343 2014-05-16 Kaushik Phata <Kaushik.Phatak@kpit.com>
344
345 * readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag.
346
347 2014-05-02 Alan Modra <amodra@gmail.com>
348
349 * emul_aix.c: Update bfd target vector naming.
350 * testsuite/binutils-all/objcopy.exp: Likewise.
351
352 2014-04-24 Christian Svensson <blue@cmd.nu>
353
354 * MAINTAINERS: Add myself and Stefan as OR1K maintainers.
355
356 2014-04-23 Andrew Bennett <andrew.bennett@imgtec.com>
357
358 * doc/binutils.texi: Document the disassemble MIPS XPA instructions
359 command line option.
360
361 2014-04-22 Christian Svensson <blue@cmd.nu>
362
363 * readelf.c: Remove openrisc and or32 support. Add support for or1k.
364
365 2014-04-18 Tristan Gingold <gingold@adacore.com>
366
367 * od-macho.c (dump_section_map): Adjust as load commands
368 are now chained.
369 (dump_load_command, dump_section_content): Likewise.
370
371 2014-04-16 Tristan Gingold <gingold@adacore.com>
372
373 * od-macho.c (OPT_DYLD_INFO): New macro.
374 (options): Add entry for dyld_info.
375 (mach_o_help): Likewise.
376 (load_and_dump, dump_dyld_info_rebase, dump_dyld_info_bind)
377 (dump_dyld_info_export_1, dump_dyld_info_export): New functions.
378 (bfd_mach_o_dyld_rebase_type_name): New array.
379 (export_info_data): New struct.
380 (dump_dyld_info): Add verbose argument. Dump rebase, bind and
381 exports data.
382 (dump_load_command): Adjust dump_dyld_info call.
383 (mach_o_dump): Handle dyld_info.
384
385 2014-04-16 Tristan Gingold <gingold@adacore.com>
386
387 * od-macho.c (dump_header): Display sizeofcmds in decimal too.
388 (dump_segment): Reformat output.
389 (dump_dyld_info): Also display end offsets.
390 (dump_load_command): Add IDX argument, display commands size
391 and offset, reformat display.
392 (dump_load_commands): Adjust for added argument.
393
394 2014-04-07 Alan Modra <amodra@gmail.com>
395
396 PR binutils/16811
397 * objcopy.c (copy_object): Error if no sections.
398
399 2014-04-03 Markus Trippelsdorf <markus@trippelsdorf.de>
400
401 PR binutils/14698
402 ar.c: Set plugin_target early if plugins are supported.
403 nm.c: Likewise.
404
405 2014-04-03 Tristan Gingold <gingold@adacore.com>
406
407 * od-macho.c (printf_uint64): New function.
408 (dump_load_command, dump_obj_compact_unwind): Use it.
409 (dump_exe_compact_unwind): Display personality functions.
410
411 2014-04-02 Tristan Gingold <gingold@adacore.com>
412
413 * od-macho.c (OPT_TWOLEVEL_HINTS): New macro.
414 (options): Add entry for twolevel_hints.
415 (dump_data_in_code): Fix error message.
416 (dump_twolevel_hints): New function.
417 (dump_load_command): Handle prebound dylib, prebind cksum
418 and twolevel hints.
419 (mach_o_dump): Handle twolevel hints.
420
421 2014-04-01 Tristan Gingold <gingold@adacore.com>
422
423 * od-macho.c (OPT_DATA_IN_CODE): New macro.
424 (options): Add entry for data in code.
425 (mach_o_help): Ditto.
426 (data_in_code_kind_name): New array.
427 (dump_data_in_code): New function.
428 (dump_load_command): Handle data in code.
429 (mach_o_dump): Ditto.
430 (dump_header): Display a terminal newline.
431
432 2014-03-27 Tristan Gingold <gingold@adacore.com>
433
434 * od-macho.c (dump_load_command): Display value for
435 BFD_MACH_O_LC_DYLD_ENVIRONMENT. Handle BFD_MACH_O_LC_DATA_IN_CODE
436 and BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS.
437
438 2014-03-27 Tristan Gingold <gingold@adacore.com>
439
440 * od-macho.c (OPT_FUNCTION_STARTS): New macro.
441 (options): Add entry for function_starts.
442 (mach_o_help): Ditto.
443 (disp_segment_prot): New function.
444 (dump_section_map): Call disp_segment_prot.
445 (dump_function_starts): New function.
446 (dump_obj_compact_unwind): Fix ouput indentation.
447 (dump_exe_compact_unwind): Fix ouput indentation.
448 (mach_o_dump): Handle function_starts.
449
450 2014-03-26 Tristan Gingold <gingold@adacore.com>
451
452 * od-macho.c (bfd_mach_o_cpu_name): Add BFD_MACH_O_CPU_TYPE_ARM64.
453
454 2014-03-24 Tristan Gingold <gingold@adacore.com>
455
456 * objdump.c (load_specific_debug_section): Set address of section.
457
458 2014-03-24 Tristan Gingold <gingold@adacore.com>
459
460 * od-macho.c (dump_unwind_encoding_x86): Set the factor.
461 (dump_exe_compact_unwind): Change the condition. Improve
462 indentation.
463
464 2014-03-20 Nick Clifton <nickc@redhat.com>
465
466 * readelf.c (process_version_sections): Fix off-by-one error in
467 previous delta.
468
469 2014-03-19 Nick Clifton <nickc@redhat.com>
470
471 PR binutils/16723
472 * readelf.c (process_version_sections): Prevent an infinite loop
473 when the vn_next field is zero but there are still entries to be
474 processed.
475
476 2014-03-17 Tristan Gingold <gingold@adacore.com>
477
478 * od-macho.c (dump_section_header): Renames of dump_section.
479 (dump_segment): Adjust after renaming.
480 (OPT_COMPACT_UNWIND): Define.
481 (options): Add compact unwind.
482 (mach_o_help): Document compact_unwind.
483 (unwind_x86_64_regs, unwind_x86_regs): New arrays.
484 (dump_unwind_encoding_x86, dump_unwind_encoding)
485 (dump_obj_compact_unwind, dump_exe_compact_unwind)
486 (dump_section_content): New functions.
487 (mach_o_dump): Handle compact unwind.
488
489 2014-03-17 Tristan Gingold <gingold@adacore.com>
490
491 * od-macho.c (dump_load_command): Handle lazy load dylib.
492
493 2014-03-14 Anthony Green <green@moxielogic.com>
494
495 * objcopy.c (copy_object): Check fwrite return code.
496
497 2014-03-14 Meador Inge <meadori@codesourcery.com>
498
499 * dwarf.c (strnlen): Move prototype ...
500 * sysdep.h (strnlen): ... to here.
501
502 2014-03-12 Nick Clifton <nickc@redhat.com>
503
504 PR binutils/16652
505 * doc/binutils.texi (ar cmdline): Move --plugin command line
506 option to after the command option.
507
508 2014-03-12 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
509
510 PR binutils/16567
511 * deflex.l: Add noinput and nounput options.
512
513 2014-03-12 Alan Modra <amodra@gmail.com>
514
515 * Makefile.in: Regenerate.
516 * doc/Makefile.in: Regenerate.
517
518 2014-03-06 Nick Clifton <nickc@redhat.com>
519
520 PR binutils/16664
521 * readelf.c (process_attributes): Add checks for corrupt
522 attribute section names.
523
524 2014-03-05 Alan Modra <amodra@gmail.com>
525
526 Update copyright years.
527
528 2014-03-03 Alan Modra <amodra@gmail.com>
529
530 * README: Add "Copyright Notices" paragraph.
531
532 2014-02-11 Cary Coutant <ccoutant@google.com>
533
534 * binutils/dwarf.c (read_and_display_attr_value): Don't warn
535 for zero-length attribute value.
536
537 2014-02-10 Alan Modra <amodra@gmail.com>
538
539 * po/binutils.pot: Regenerate.
540
541 2014-02-06 Andrew Pinski <apinski@cavium.com>
542
543 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_OCTEON3 case.
544
545 2014-02-06 Cary Coutant <ccoutant@google.com>
546
547 PR binutils/16444
548 * readelf.c (print_gnu_note): Add support for NT_GNU_GOLD_VERSION.
549
550 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
551
552 * version.c (print_version): Update copyright year to 2014.
553
554 2014-01-07 Tom Tromey <tromey@redhat.com>
555
556 * bucomm.c (fatal, non_fatal): Replace obsolete VA_* macros with
557 stdarg macros.
558 * dlltool.c (inform): Replace obsolete VA_* macros with stdarg
559 macros.
560 * dllwrap.c (inform, warn): Replace obsolete VA_* macros with
561 stdarg macros.
562
563 2014-01-07 Tom Tromey <tromey@redhat.com>
564
565 * coffgrok.h (coff_ofile): Don't use PARAMS.
566 * nlmheader.y (strerror): Don't use PARAMS.
567
568 For older changes see ChangeLog-2013
569 \f
570 Copyright (C) 2014 Free Software Foundation, Inc.
571
572 Copying and distribution of this file, with or without modification,
573 are permitted in any medium without royalty provided the copyright
574 notice and this notice are preserved.
575
576 Local Variables:
577 mode: change-log
578 left-margin: 8
579 fill-column: 74
580 version-control: never
581 End: