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