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