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