1 2014-12-23 Tristan Gingold <gingold@adacore.com>
3 * configure: Regenerate.
5 2014-11-17 Nick Clifton <nickc@redhat.com>
9 2014-11-14 Nick Clifton <nickc@redhat.com>
12 * dwarf.c (get_encoded_value): Add an 'end' parameter. Change the
13 'data' parameter to a double pointer and return the updated value.
14 (decode_location_expression): Update call to get_encoded_value.
15 (frame_need_space): Handle the case where one or both of the
17 (read_cie): Initialise the cie pointer, even if the read fails.
18 (display_debug_frames): Warn if the calculated block_end is before
19 the start of the block. Break the loop if the CIE could not be
20 read. Update call to get_encoded_value. Warn if the read CFA
21 expressions are too big.
23 2014-11-13 Nick Clifton <nickc@redhat.com>
26 * readelf.c (process_version_sections): If the read of the version
27 def information fails, make sure that the external verdef data is
29 (get_dynamic_data): Do not attempt to allocate memory for more
30 dynamic data than there is in the file. If the read fails, free
32 (process_symbol_table): Do not print dynamic information if we
33 were unable to read the dynamic symbol table.
34 (print_gnu_note): Do not print the note if the descsz is too
37 2014-11-12 Nick Clifton <nickc@redhat.com>
40 * dwarf.c (read_and_display_attr_value): Check that we do not read
42 (display_debug_pubnames_worker): Add range checks.
43 (process_debug_info): Check for invalid pointer sizes.
44 (display_loc_list): Likewise.
45 (display_loc_list_dwo): Likewise.
46 (display_debug_ranges): Likewise.
47 (display_debug_aranges): Check for invalid address size.
48 (read_cie): Add range checks. Replace call strchr with while loop.
49 * objdump.c (dump_dwarf): Replace abort with a warning message.
50 (print_section_stabs): Improve range checks.
51 * rdcoff.c (coff_get_slot): Use long for indx parameter type.
52 Add check for an excesively large index.
53 * rddbg.c (read_section_stabs_debugging_info): Zero terminate the
54 string table. Avoid walking off the end of the stabs data.
55 * stabs.c (parse_stab_string): Add check for a NULL name.
57 2014-11-11 Nick Clifton <nickc@redhat.com>
60 * binutils/readelf.c (dynamic_nent): Change type to size_t.
61 (slurp_rela_relocs): Use size_t type for nrelas.
62 (slurp_rel_relocs): Likewise.
63 (get_program_headers): Improve out of memory error message.
64 (get_32bit_section_headers): Likewise.
65 (get_32bit_section_headers): Likewise.
66 (get_64bit_section_headers): Likewise.
67 (get_32bit_elf_symbols): Likewise.
68 (get_64bit_elf_symbols): Likewise.
69 (process_section_groups): Likewise.
70 (get_32bit_dynamic_section): Likewise.
71 (get_64bit_dynamic_section): Likewise.
72 (process_dynamic_section): Likewise.
73 (process_version_sections): Likewise.
74 (get_symbol_index_type): Likewise.
75 (process_mips_specific): Likewise.
76 (process_corefile_note_segment): Likewise.
77 (process_version_sections): Use size_t type for total.
78 (get_dynamic_data): Change type of number parameter to size_t.
79 Improve out of memory error messages.
80 (process_symbol_table): Change type of nbuckets and nchains to
81 size_t. Skip processing of sections headers if there are none.
82 Improve out of memory error messages.
84 2014-11-11 Nick Clifton <nickc@redhat.com>
87 * readelf.c (display_arm_attribute): Avoid reading off the end of
88 the buffer when processing a Tag_nodefaults.
90 2014-11-10 Nick Clifton <nickc@redhat.com>
93 * readelf.c (ia64_process_unwind): Replace assertion with an error
94 message. Add range checking for group section indicies.
95 (hppa_process_unwind): Replace assertion with an error message.
96 (process_syminfo): Likewise.
97 (decode_arm_unwind_bytecode): Add range checking.
98 (dump_section_as_strings): Add more string range checking.
99 (display_tag_value): Likewise.
100 (display_arm_attribute): Likewise.
101 (display_gnu_attribute): Likewise.
102 (display_tic6x_attribute): Likewise.
103 (display_msp430x_attribute): Likewise.
105 2014-11-10 Nick Clifton <nickc@redhat.com>
108 * objcopy.c (copy_archive): Clean up temporary files even if an
111 2014-11-07 Nick Clifton <nickc@redhat.com>
114 * readelf.c (get_data): Avoid allocating memory when we know that
116 (find_section_by_type): New function.
117 (get_unwind_section_word): Check for invalid symbol indicies.
118 Check for invalid reloc types.
119 (get_32bit_dynamic_section): Add range checks.
120 (get_64bit_dynamic_section): Add range checks.
121 (process_dynamic_section): Check for a corrupt time value.
122 (process_symbol_table): Add range checks.
123 (dump_section_as_strings): Add string length range checks.
124 (display_tag_value): Likewise.
125 (display_arm_attribute): Likewise.
126 (display_gnu_attribute): Likewise.
127 (display_tic6x_attribute): Likewise.
128 (display_msp430x_attribute): Likewise.
129 (process_mips_specific): Add range check.
131 2014-11-06 Nick Clifton <nickc@redhat.com>
133 PR binutils/17552, binutils/17533
134 * bucomm.c (is_valid_archive_path): New function. Returns false
135 for absolute pathnames and pathnames that include /../.
136 * bucomm.h (is_valid_archive_path): Add prototype.
137 * ar.c (extract_file): Use new function to check for valid
138 pathnames when extracting files from an archive.
139 * objcopy.c (copy_archive): Likewise.
140 * doc/binutils.texi: Update documentation to mention the
141 limitation on pathname of archive members.
143 2014-11-05 Nick Clifton <nickc@redhat.com>
146 * readelf.c (printable_section_name): New function.
147 (printable_section_name_from_index): New function.
148 (dump_relocations): Use new function.
149 (process_program_headers, get_32bit_elf_symbols,
150 (get_64bit_elf_symbols, process_section_headers,
151 (process_section_groups, process_relocs, ia64_process_unwind,
152 (hppa_process_unwind, get_unwind_section_word, decode_arm_unwind,
153 (arm_process_unwind, process_version_sections,
154 (process_symbol_table, apply_relocations, get_section_contents,
155 (dump_section_as_strings, dump_section_as_bytes,
156 (display_debug_section, process_attributes, process_mips_specific,
157 (process_mips_specific process_gnu_liblist): Likewise.
158 (get_unwind_section_word): Check for a missing symbol table.
159 Replace aborts with error messages.
160 (arm_process_unwind): Check for a missing string table.
161 (process_attributes): Check for an attribute length that is too
163 (process_mips_specific): Check for a corrupt GOT symbol offset.
165 2014-11-05 Nick Clifton <nickc@redhat.com>
168 * bucomm.c (is_valid_archive_path): New function.
169 * bucomm.h (is_valid_archive_path): Prototype it.
170 * ar.c (extract_file): Call is_valid_archive_path to verify a
171 member filename before extracting it.
172 * objcopy.c (copy_archive): Likewise.
174 2014-11-04 Nick Clifton <nickc@redhat.com>
177 * readelf.c (get_data): If the reason parameter is null, do not
178 print any error messages.
179 (get_32bit_section_headers): Verify section header entry size
180 before reading in the section headers.
181 (get_64bit_section_headers): Likewise.
182 (process_section_headers): Pass FALSE to get_section_headers.
183 (get_file_header): Pass TRUE to get_section_headers.
184 (process_dynamic_section): Change an assert to an error message.
185 (process_symbol_table): Handle corrupt histograms.
186 (get_32bit_program_headers): Verify program header entry size
187 before reading in the program headers.
188 (get_64bit_program_headers): Likewise.
189 (get_unwind_section_word): Do nothing if no section was provided.
190 Fail if the offset is outside of the section.
191 (print_dynamic_symbol): Catch out of range symbol indicies.
192 (process_mips_specific): Likewise.
193 (process_attributes): Make sure that there is enough space left in
194 the section before attempting to read the length of the next
197 2014-11-03 Nick Clifton <nickc@redhat.com>
200 * objdump.c (slurp_symtab): Fail gracefully if the table could not
202 (dump_relocs_in_section): Likewise.
204 2014-11-11 Nick Clifton <nickc@redhat.com>
206 * po/fr.po: Updated French translation.
208 2014-11-03 Nick Clifton <nickc@redhat.com>
210 * po/fi.po: Updated Finnish translation.
211 * po/sv.po: Updated Swedish translation.
213 2014-10-31 Nick Clifton <nickc@redhat.com>
217 2014-10-31 Nick Clifton <nickc@redhat.com>
218 * strings.c: Add new command line option --data to only scan the
219 initialized, loadable data secions of binaries. Choose the
220 default behaviour of --all or --data based upon a configure
222 * doc/binutils.texi (strings): Update documentation. Include
223 description of why the --data option might be unsafe.
224 * configure.ac: Add new option --disable-default-strings-all which
225 restores the old behaviour of strings using --data by default. If
226 the option is not used make strings use --all by default.
227 * NEWS: Mention the new behaviour of strings.
228 * configure: Regenerate.
229 * config.in: Regenerate.
231 2014-10-30 Nick Clifton <nickc@redhat.com>
235 2014-10-30 Nick Clifton <nickc@redhat.com>
236 * readelf.c (CHECK_ENTSIZE_VALUES): Rewrite error message so that
237 there is a single string for translation.
238 (dynamic_section_mips_val): Likewise.
240 2014-10-29 Nick Clifton <nickc@redhat.com>
242 * po/bg.po: Updated Bulgarian translation.
243 * po/sr.po: New Serbian translation.
244 * po/sv.po: Updated Swedish translation.
246 2014-10-28 Matthew Fortune <matthew.fortune@imgtec.com>
250 2014-10-22 Matthew Fortune <matthew.fortune@imgtec.com>
251 * readelf.c (print_mips_ases): Print unknown ASEs.
252 (print_mips_isa_ext): Print the value of an unknown extension.
254 2014-10-15 Tristan Gingold <gingold@adacore.com>
256 * configure: Regenerate.
258 2014-10-14 Tristan Gingold <gingold@adacore.com>
260 * NEWS: Add marker for 2.25.
262 2014-10-14 Alan Modra <amodra@gmail.com>
265 * dwarf.c (read_leb128): Avoid signed overflow.
266 (read_debug_line_header): Likewise.
268 2014-10-14 Alan Modra <amodra@gmail.com>
271 * readelf.c (process_program_headers): Correct fscanf format used
274 2014-10-09 Jose E. Marchesi <jose.marchesi@oracle.com>
276 * readelf.c (display_sparc_hwcaps2): New function.
277 (display_sparc_gnu_attribute): Call `display_sparc_hwcaps2' when
278 handling `Tag_GNU_Sparc_HWCAPS2' attributes.
280 2014-09-22 Alan Modra <amodra@gmail.com>
283 * dwarf.c (GET): Remove semicolon.
284 (read_cie): New function, extracted from..
285 (display_debug_frames): ..here. Correctly handle signed offset
286 from FDE to CIE in .eh_frame. Decode forward referenced CIEs too.
288 2014-09-16 Nick Clifton <nickc@redhat.com>
290 * readelf.c (display_arm_attribute): Use unsigned int type for
291 tag, val and type variables.
293 2014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
295 * readelf.c (decode_NDS32_machine_flags): Display ABI2 FP+.
297 2014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
298 Matthew Fortune <matthew.fortune@imgtec.com>
300 * readelf.c (get_machine_flags): Add support for mips32r6 and
303 2014-09-01 Jon TURNEY <jon.turney@dronecode.org.uk>
305 * objcopy.c (is_nondebug_keep_contents_section): Change
306 '.build-id' to '.buildid'.
308 2014-08-22 Richard Henderson <rth@redhat.com>
310 * dwarf.h (init_dwarf_regnames_aarch64): Declare.
311 * dwarf.c (dwarf_regnames_aarch64): New.
312 (init_dwarf_regnames_aarch64): New.
313 (init_dwarf_regnames): Call it.
314 * objdump.c (dump_dwarf): Likewise.
316 2014-08-19 Alan Modra <amodra@gmail.com>
318 * configure: Regenerate.
320 2014-08-14 Alan Modra <amodra@gmail.com>
322 * configure.ac: Move ACX_LARGEFILE after LT_INIT.
323 * config.in: Regenerate.
324 * configure: Regenerate.
326 2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
328 * readelf.c (get_mips_segment_type): Display name for PT_MIPS_ABIFLAGS.
329 (get_mips_section_type_name): Display name for SHT_MIPS_ABIFLAGS.
330 (display_mips_gnu_attribute): Abstracted fp abi printing to...
331 (print_mips_fp_abi_value): New static function. Handle new FP ABIs.
332 (print_mips_ases, print_mips_isa_ext): New static functions.
333 (get_mips_reg_size): Likewise.
334 (process_mips_specific): Display abiflags data.
336 2014-07-28 Alan Modra <amodra@gmail.com>
339 * nm.c (filter_symbols): Warn on __gnu_lto_slim.
341 2014-07-07 Nick Clifton <nickc@redhat.com>
343 * readelf.c (get_symbol_type): Revert accidental change to
344 detection of thumb function symbols.
346 2014-07-04 Alan Modra <amodra@gmail.com>
348 * configure.ac: Rename from configure.in.
349 * Makefile.in: Regenerate.
350 * config.in: Regenerate.
351 * doc/Makefile.in: Regenerate.
353 2014-07-04 Alan Modra <amodra@gmail.com>
355 * configure.in: Include bfd/version.m4.
356 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
357 (BFD_VERSION): Delete.
358 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
359 * configure: Regenerate.
360 * Makefile.in: Regenerate.
361 * doc/Makefile.in: Regenerate.
363 2014-07-03 Tristan Gingold <gingold@adacore.com>
365 * doc/binutils.texi: Clarify addr2line output.
367 2014-07-01 Alan Modra <amodra@gmail.com>
369 * objdump.c (dump_bfd_header): Don't print HAS_LOAD_PAGE.
371 2014-06-26 Erik Akermann <kurterikackermann@gmail.com>
373 * strings.c: Add -w/--include-all-whitespace option to include any
374 whitespace character in the displayed strings.
375 * NEWS: Mention the new feature.
376 * doc/binutils.texi (strings): Document the new command line
379 2014-06-26 Nick Clifton <nickc@redhat.com>
381 * readelf.c (process_note_sections): If there are no note sections
382 try processing note segments instead.
384 2014-06-17 Anton Lavrentiwev <lavr@ncbi.nim.nih.gov>
387 * rcparse.y (fixedverinfo): Prevent large version numbers from
388 corrupting other values.
390 2014-06-09 Romain Chastenet <romain.chastenet@free.fr>
393 * dwarf.c (display_debug_frames): Remember the state of the
394 cfa_offset, cfa_reg, ra and cfa_exp field
396 2014-06-05 Joel Brobecker <brobecker@adacore.com>
398 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
399 bfd's development.sh.
400 * Makefile.in, configure: Regenerate.
402 2014-05-16 Jon Turney <jon.turney@dronecode.org.uk>
404 * objcopy.c (is_nondebug_keep_contents_section): New function.
405 (setup_section): Use it.
407 2014-05-16 Kaushik Phata <Kaushik.Phatak@kpit.com>
409 * readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag.
411 2014-05-02 Alan Modra <amodra@gmail.com>
413 * emul_aix.c: Update bfd target vector naming.
414 * testsuite/binutils-all/objcopy.exp: Likewise.
416 2014-04-24 Christian Svensson <blue@cmd.nu>
418 * MAINTAINERS: Add myself and Stefan as OR1K maintainers.
420 2014-04-23 Andrew Bennett <andrew.bennett@imgtec.com>
422 * doc/binutils.texi: Document the disassemble MIPS XPA instructions
425 2014-04-22 Christian Svensson <blue@cmd.nu>
427 * readelf.c: Remove openrisc and or32 support. Add support for or1k.
429 2014-04-18 Tristan Gingold <gingold@adacore.com>
431 * od-macho.c (dump_section_map): Adjust as load commands
433 (dump_load_command, dump_section_content): Likewise.
435 2014-04-16 Tristan Gingold <gingold@adacore.com>
437 * od-macho.c (OPT_DYLD_INFO): New macro.
438 (options): Add entry for dyld_info.
439 (mach_o_help): Likewise.
440 (load_and_dump, dump_dyld_info_rebase, dump_dyld_info_bind)
441 (dump_dyld_info_export_1, dump_dyld_info_export): New functions.
442 (bfd_mach_o_dyld_rebase_type_name): New array.
443 (export_info_data): New struct.
444 (dump_dyld_info): Add verbose argument. Dump rebase, bind and
446 (dump_load_command): Adjust dump_dyld_info call.
447 (mach_o_dump): Handle dyld_info.
449 2014-04-16 Tristan Gingold <gingold@adacore.com>
451 * od-macho.c (dump_header): Display sizeofcmds in decimal too.
452 (dump_segment): Reformat output.
453 (dump_dyld_info): Also display end offsets.
454 (dump_load_command): Add IDX argument, display commands size
455 and offset, reformat display.
456 (dump_load_commands): Adjust for added argument.
458 2014-04-07 Alan Modra <amodra@gmail.com>
461 * objcopy.c (copy_object): Error if no sections.
463 2014-04-03 Markus Trippelsdorf <markus@trippelsdorf.de>
466 ar.c: Set plugin_target early if plugins are supported.
469 2014-04-03 Tristan Gingold <gingold@adacore.com>
471 * od-macho.c (printf_uint64): New function.
472 (dump_load_command, dump_obj_compact_unwind): Use it.
473 (dump_exe_compact_unwind): Display personality functions.
475 2014-04-02 Tristan Gingold <gingold@adacore.com>
477 * od-macho.c (OPT_TWOLEVEL_HINTS): New macro.
478 (options): Add entry for twolevel_hints.
479 (dump_data_in_code): Fix error message.
480 (dump_twolevel_hints): New function.
481 (dump_load_command): Handle prebound dylib, prebind cksum
483 (mach_o_dump): Handle twolevel hints.
485 2014-04-01 Tristan Gingold <gingold@adacore.com>
487 * od-macho.c (OPT_DATA_IN_CODE): New macro.
488 (options): Add entry for data in code.
489 (mach_o_help): Ditto.
490 (data_in_code_kind_name): New array.
491 (dump_data_in_code): New function.
492 (dump_load_command): Handle data in code.
493 (mach_o_dump): Ditto.
494 (dump_header): Display a terminal newline.
496 2014-03-27 Tristan Gingold <gingold@adacore.com>
498 * od-macho.c (dump_load_command): Display value for
499 BFD_MACH_O_LC_DYLD_ENVIRONMENT. Handle BFD_MACH_O_LC_DATA_IN_CODE
500 and BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS.
502 2014-03-27 Tristan Gingold <gingold@adacore.com>
504 * od-macho.c (OPT_FUNCTION_STARTS): New macro.
505 (options): Add entry for function_starts.
506 (mach_o_help): Ditto.
507 (disp_segment_prot): New function.
508 (dump_section_map): Call disp_segment_prot.
509 (dump_function_starts): New function.
510 (dump_obj_compact_unwind): Fix ouput indentation.
511 (dump_exe_compact_unwind): Fix ouput indentation.
512 (mach_o_dump): Handle function_starts.
514 2014-03-26 Tristan Gingold <gingold@adacore.com>
516 * od-macho.c (bfd_mach_o_cpu_name): Add BFD_MACH_O_CPU_TYPE_ARM64.
518 2014-03-24 Tristan Gingold <gingold@adacore.com>
520 * objdump.c (load_specific_debug_section): Set address of section.
522 2014-03-24 Tristan Gingold <gingold@adacore.com>
524 * od-macho.c (dump_unwind_encoding_x86): Set the factor.
525 (dump_exe_compact_unwind): Change the condition. Improve
528 2014-03-20 Nick Clifton <nickc@redhat.com>
530 * readelf.c (process_version_sections): Fix off-by-one error in
533 2014-03-19 Nick Clifton <nickc@redhat.com>
536 * readelf.c (process_version_sections): Prevent an infinite loop
537 when the vn_next field is zero but there are still entries to be
540 2014-03-17 Tristan Gingold <gingold@adacore.com>
542 * od-macho.c (dump_section_header): Renames of dump_section.
543 (dump_segment): Adjust after renaming.
544 (OPT_COMPACT_UNWIND): Define.
545 (options): Add compact unwind.
546 (mach_o_help): Document compact_unwind.
547 (unwind_x86_64_regs, unwind_x86_regs): New arrays.
548 (dump_unwind_encoding_x86, dump_unwind_encoding)
549 (dump_obj_compact_unwind, dump_exe_compact_unwind)
550 (dump_section_content): New functions.
551 (mach_o_dump): Handle compact unwind.
553 2014-03-17 Tristan Gingold <gingold@adacore.com>
555 * od-macho.c (dump_load_command): Handle lazy load dylib.
557 2014-03-14 Anthony Green <green@moxielogic.com>
559 * objcopy.c (copy_object): Check fwrite return code.
561 2014-03-14 Meador Inge <meadori@codesourcery.com>
563 * dwarf.c (strnlen): Move prototype ...
564 * sysdep.h (strnlen): ... to here.
566 2014-03-12 Nick Clifton <nickc@redhat.com>
569 * doc/binutils.texi (ar cmdline): Move --plugin command line
570 option to after the command option.
572 2014-03-12 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
575 * deflex.l: Add noinput and nounput options.
577 2014-03-12 Alan Modra <amodra@gmail.com>
579 * Makefile.in: Regenerate.
580 * doc/Makefile.in: Regenerate.
582 2014-03-06 Nick Clifton <nickc@redhat.com>
585 * readelf.c (process_attributes): Add checks for corrupt
586 attribute section names.
588 2014-03-05 Alan Modra <amodra@gmail.com>
590 Update copyright years.
592 2014-03-03 Alan Modra <amodra@gmail.com>
594 * README: Add "Copyright Notices" paragraph.
596 2014-02-11 Cary Coutant <ccoutant@google.com>
598 * binutils/dwarf.c (read_and_display_attr_value): Don't warn
599 for zero-length attribute value.
601 2014-02-10 Alan Modra <amodra@gmail.com>
603 * po/binutils.pot: Regenerate.
605 2014-02-06 Andrew Pinski <apinski@cavium.com>
607 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_OCTEON3 case.
609 2014-02-06 Cary Coutant <ccoutant@google.com>
612 * readelf.c (print_gnu_note): Add support for NT_GNU_GOLD_VERSION.
614 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
616 * version.c (print_version): Update copyright year to 2014.
618 2014-01-07 Tom Tromey <tromey@redhat.com>
620 * bucomm.c (fatal, non_fatal): Replace obsolete VA_* macros with
622 * dlltool.c (inform): Replace obsolete VA_* macros with stdarg
624 * dllwrap.c (inform, warn): Replace obsolete VA_* macros with
627 2014-01-07 Tom Tromey <tromey@redhat.com>
629 * coffgrok.h (coff_ofile): Don't use PARAMS.
630 * nlmheader.y (strerror): Don't use PARAMS.
632 For older changes see ChangeLog-2013
634 Copyright (C) 2014 Free Software Foundation, Inc.
636 Copying and distribution of this file, with or without modification,
637 are permitted in any medium without royalty provided the copyright
638 notice and this notice are preserved.
644 version-control: never