Cast time value to unsigned long to print
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
5a2cbcf4
L
12014-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
071436c6
NC
62014-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
dd9b91de
NC
262014-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
74e1a04b
NC
382014-11-05 Nick Clifton <nickc@redhat.com>
39
dd9b91de 40 PR binutils/17531
74e1a04b
NC
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
602014-11-05 Nick Clifton <nickc@redhat.com>
61
dd9b91de 62 PR binutils/17533
74e1a04b
NC
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
7fc5ac57
JBG
692014-11-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
70
71 * readelf.c (process_mips_specific): Fix format string warning.
72
df97ab2a
MF
732014-11-04 Matthew Fortune <matthew.fortune@imgtec.com>
74
75 * readelf.c (process_mips_specific): Rename index to idx.
76
049b0c3a
NC
772014-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
e0a31db1
NC
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
5a3f568b
NC
1012014-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
ba241f2d
NC
1082014-11-03 Nick Clifton <nickc@redhat.com>
109
110 * po/fi.po: Updated Finnish translation.
111 * po/sv.po: Updated Swedish translation.
112
2a03f307
HPN
1132014-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
2c629856 1192014-10-31 Andrew Pinski <apinski@cavium.com>
7fc5ac57 120 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2c629856
N
121
122 * readelf.c (print_mips_isa_ext): Print the value of Octeon3.
123
da37262b
IB
1242014-10-31 Iain Buclaw <ibuclaw@gdcproject.org>
125
126 * cxxfilt.c (main): Add case for dlang_demangling style.
127
f54498b4
NC
1282014-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
fe060053
NC
1372014-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
76ca31c0
NC
1522014-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
64b588b5
NC
1582014-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
00ac7aa0
MF
1642014-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
91dc4e0a
TG
1692014-10-15 Tristan Gingold <gingold@adacore.com>
170
171 * configure: Regenerate.
172
c50415e2
TG
1732014-10-14 Tristan Gingold <gingold@adacore.com>
174
175 * NEWS: Add marker for 2.25.
176
65879393
AM
1772014-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
9495b2e6
AM
1832014-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
3d68f91c
JM
1892014-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
49727e46
AM
1952014-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
70e99720
TG
2032014-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
40c7a7cb
KLC
2082014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
209
210 * readelf.c (decode_NDS32_machine_flags): Display ABI2 FP+.
211
7361da2c
AB
2122014-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
74fffc39
JT
2182014-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
4ee22035
RH
2232014-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
2974be62
AM
2312014-08-19 Alan Modra <amodra@gmail.com>
232
233 * configure: Regenerate.
234
b879806f
AM
2352014-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
351cdf24
MF
2412014-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
b794fc1d
AM
2512014-07-28 Alan Modra <amodra@gmail.com>
252
253 PR 13227
254 * nm.c (filter_symbols): Warn on __gnu_lto_slim.
255
3510a7b8
NC
2562014-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
35eafcc7
AM
2612014-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
2e98a7bd
AM
2682014-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
8d112f9e
TG
2782014-07-03 Tristan Gingold <gingold@adacore.com>
279
280 * doc/binutils.texi: Clarify addr2line output.
281
b6a1c03a
AM
2822014-07-01 Alan Modra <amodra@gmail.com>
283
284 * objdump.c (dump_bfd_header): Don't print HAS_LOAD_PAGE.
285
334ac421
EA
2862014-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
df565f32
NC
2942014-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
548a2357
NC
2992014-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
d71ad7fc
RC
3052014-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
270c9937
JB
3112014-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
6e6e7cfc
JT
3172014-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
856ea05c
KP
3222014-05-16 Kaushik Phata <Kaushik.Phatak@kpit.com>
323
324 * readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag.
325
6d00b590
AM
3262014-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
b2bcb4bd
CS
3312014-04-24 Christian Svensson <blue@cmd.nu>
332
333 * MAINTAINERS: Add myself and Stefan as OR1K maintainers.
334
7d64c587
AB
3352014-04-23 Andrew Bennett <andrew.bennett@imgtec.com>
336
337 * doc/binutils.texi: Document the disassemble MIPS XPA instructions
338 command line option.
339
73589c9d
CS
3402014-04-22 Christian Svensson <blue@cmd.nu>
341
342 * readelf.c: Remove openrisc and or32 support. Add support for or1k.
343
c9ffd2ea
TG
3442014-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
e89d3dee
TG
3502014-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
47f8a107
TG
3642014-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
5063a421
AM
3732014-04-07 Alan Modra <amodra@gmail.com>
374
375 PR binutils/16811
376 * objcopy.c (copy_object): Error if no sections.
377
92b1b678
MT
3782014-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
965b60c9
TG
3842014-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
7a79c514
TG
3902014-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
c275b681
TG
4002014-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
10be66a4
TG
4112014-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
3cc27770
TG
4172014-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
d8028530
TG
4292014-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
595330b7
TG
4332014-03-24 Tristan Gingold <gingold@adacore.com>
434
435 * objdump.c (load_specific_debug_section): Set address of section.
436
aa9fa1e2
TG
4372014-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
bcf83b2a
NC
4432014-03-20 Nick Clifton <nickc@redhat.com>
444
445 * readelf.c (process_version_sections): Fix off-by-one error in
446 previous delta.
447
c24cf8b6
NC
4482014-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
167e1c1f
TG
4552014-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
fbe383b9
TG
4682014-03-17 Tristan Gingold <gingold@adacore.com>
469
470 * od-macho.c (dump_load_command): Handle lazy load dylib.
471
182a105a
AG
4722014-03-14 Anthony Green <green@moxielogic.com>
473
474 * objcopy.c (copy_object): Check fwrite return code.
475
5a026fc9
NC
4762014-03-14 Meador Inge <meadori@codesourcery.com>
477
9495b2e6
AM
478 * dwarf.c (strnlen): Move prototype ...
479 * sysdep.h (strnlen): ... to here.
5a026fc9 480
8a1373cc
NC
4812014-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
c63043aa
DG
4872014-03-12 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
488
489 PR binutils/16567
490 * deflex.l: Add noinput and nounput options.
491
fa47fa92
AM
4922014-03-12 Alan Modra <amodra@gmail.com>
493
494 * Makefile.in: Regenerate.
495 * doc/Makefile.in: Regenerate.
496
e9847026
NC
4972014-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
4b95cf5c
AM
5032014-03-05 Alan Modra <amodra@gmail.com>
504
505 Update copyright years.
506
2c80b753
AM
5072014-03-03 Alan Modra <amodra@gmail.com>
508
509 * README: Add "Copyright Notices" paragraph.
510
503a6091
CC
5112014-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
c1c69e83
AM
5162014-02-10 Alan Modra <amodra@gmail.com>
517
518 * po/binutils.pot: Regenerate.
519
d32e5c54
AP
5202014-02-06 Andrew Pinski <apinski@cavium.com>
521
522 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_OCTEON3 case.
523
926c5385
CC
5242014-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
221fd5d5
L
5292014-01-08 H.J. Lu <hongjiu.lu@intel.com>
530
531 * version.c (print_version): Update copyright year to 2014.
532
1651e569
TT
5332014-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
b51f1626
TT
5422014-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
5fb776a6 547For older changes see ChangeLog-2013
252b5132 548\f
5fb776a6 549Copyright (C) 2014 Free Software Foundation, Inc.
752937aa
NC
550
551Copying and distribution of this file, with or without modification,
552are permitted in any medium without royalty provided the copyright
553notice and this notice are preserved.
554
252b5132
RH
555Local Variables:
556mode: change-log
557left-margin: 8
558fill-column: 74
559version-control: never
560End:
This page took 0.621856 seconds and 4 git commands to generate.