Prevent archive memebers with illegal pathnames from being extracted from an archive.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
dd9b91de
NC
12014-11-06 Nick Clifton <nickc@redhat.com>
2
3 PR binutils/17552, binutils/17533
4 * bucomm.c (is_valid_archive_path): New function. Returns false
5 for absolute pathnames and pathnames that include /../.
6 * bucomm.h (is_valid_archive_path): Add prototype.
7 * ar.c (extract_file): Use new function to check for valid
8 pathnames when extracting files from an archive.
9 * objcopy.c (copy_archive): Likewise.
10 * doc/binutils.texi: Update documentation to mention the
11 limitation on pathname of archive members.
12
74e1a04b
NC
132014-11-05 Nick Clifton <nickc@redhat.com>
14
dd9b91de 15 PR binutils/17531
74e1a04b
NC
16 * readelf.c (printable_section_name): New function.
17 (printable_section_name_from_index): New function.
18 (dump_relocations): Use new function.
19 (process_program_headers, get_32bit_elf_symbols,
20 (get_64bit_elf_symbols, process_section_headers,
21 (process_section_groups, process_relocs, ia64_process_unwind,
22 (hppa_process_unwind, get_unwind_section_word, decode_arm_unwind,
23 (arm_process_unwind, process_version_sections,
24 (process_symbol_table, apply_relocations, get_section_contents,
25 (dump_section_as_strings, dump_section_as_bytes,
26 (display_debug_section, process_attributes, process_mips_specific,
27 (process_mips_specific process_gnu_liblist): Likewise.
28 (get_unwind_section_word): Check for a missing symbol table.
29 Replace aborts with error messages.
30 (arm_process_unwind): Check for a missing string table.
31 (process_attributes): Check for an attribute length that is too
32 small.
33 (process_mips_specific): Check for a corrupt GOT symbol offset.
34
352014-11-05 Nick Clifton <nickc@redhat.com>
36
dd9b91de 37 PR binutils/17533
74e1a04b
NC
38 * bucomm.c (is_valid_archive_path): New function.
39 * bucomm.h (is_valid_archive_path): Prototype it.
40 * ar.c (extract_file): Call is_valid_archive_path to verify a
41 member filename before extracting it.
42 * objcopy.c (copy_archive): Likewise.
43
7fc5ac57
JBG
442014-11-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
45
46 * readelf.c (process_mips_specific): Fix format string warning.
47
df97ab2a
MF
482014-11-04 Matthew Fortune <matthew.fortune@imgtec.com>
49
50 * readelf.c (process_mips_specific): Rename index to idx.
51
049b0c3a
NC
522014-11-04 Nick Clifton <nickc@redhat.com>
53
54 PR binutils/17531
55 * readelf.c (get_data): If the reason parameter is null, do not
56 print any error messages.
57 (get_32bit_section_headers): Verify section header entry size
58 before reading in the section headers.
59 (get_64bit_section_headers): Likewise.
60 (process_section_headers): Pass FALSE to get_section_headers.
61 (get_file_header): Pass TRUE to get_section_headers.
62 (process_dynamic_section): Change an assert to an error message.
63 (process_symbol_table): Handle corrupt histograms.
64
e0a31db1
NC
65 (get_32bit_program_headers): Verify program header entry size
66 before reading in the program headers.
67 (get_64bit_program_headers): Likewise.
68 (get_unwind_section_word): Do nothing if no section was provided.
69 Fail if the offset is outside of the section.
70 (print_dynamic_symbol): Catch out of range symbol indicies.
71 (process_mips_specific): Likewise.
72 (process_attributes): Make sure that there is enough space left in
73 the section before attempting to read the length of the next
74 attribute.
75
5a3f568b
NC
762014-11-03 Nick Clifton <nickc@redhat.com>
77
78 PR binutils/17512
79 * objdump.c (slurp_symtab): Fail gracefully if the table could not
80 be read.
81 (dump_relocs_in_section): Likewise.
82
ba241f2d
NC
832014-11-03 Nick Clifton <nickc@redhat.com>
84
85 * po/fi.po: Updated Finnish translation.
86 * po/sv.po: Updated Swedish translation.
87
2a03f307
HPN
882014-11-01 Hans-Peter Nilsson <hp@axis.com>
89
90 * readelf.c (get_32bit_elf_symbols): Cast error
91 parameters of bfd_size_type with the %lx format to
92 unsigned long.
93
2c629856 942014-10-31 Andrew Pinski <apinski@cavium.com>
7fc5ac57 95 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2c629856
N
96
97 * readelf.c (print_mips_isa_ext): Print the value of Octeon3.
98
da37262b
IB
992014-10-31 Iain Buclaw <ibuclaw@gdcproject.org>
100
101 * cxxfilt.c (main): Add case for dlang_demangling style.
102
f54498b4
NC
1032014-10-31 Nick Clifton <nickc@redhat.com>
104
105 PR binutils/17512
106 * readelf.c (process_program_headers): Avoid memory exhaustion due
107 to corrupt values in a dynamis segment header.
108 (get_32bit_elf_symbols): Do not attempt to read an over-large
109 section.
110 (get_64bit_elf_symbols): Likewise.
111
fe060053
NC
1122014-10-31 Nick Clifton <nickc@redhat.com>
113
114 * strings.c: Add new command line option --data to only scan the
115 initialized, loadable data secions of binaries. Choose the
116 default behaviour of --all or --data based upon a configure
117 option.
118 * doc/binutils.texi (strings): Update documentation. Include
119 description of why the --data option might be unsafe.
120 * configure.ac: Add new option --disable-default-strings-all which
121 restores the old behaviour of strings using --data by default. If
122 the option is not used make strings use --all by default.
123 * NEWS: Mention the new behaviour of strings.
124 * configure: Regenerate.
125 * config.in: Regenerate.
126
76ca31c0
NC
1272014-10-30 Nick Clifton <nickc@redhat.com>
128
129 * readelf.c (CHECK_ENTSIZE_VALUES): Rewrite error message so that
130 there is a single string for translation.
131 (dynamic_section_mips_val): Likewise.
132
64b588b5
NC
1332014-10-29 Nick Clifton <nickc@redhat.com>
134
135 * po/bg.po: Updated Bulgarian translation.
136 * po/sr.po: New Serbian translation.
137 * po/sv.po: Updated Swedish translation.
138
00ac7aa0
MF
1392014-10-22 Matthew Fortune <matthew.fortune@imgtec.com>
140
141 * readelf.c (print_mips_ases): Print unknown ASEs.
142 (print_mips_isa_ext): Print the value of an unknown extension.
143
91dc4e0a
TG
1442014-10-15 Tristan Gingold <gingold@adacore.com>
145
146 * configure: Regenerate.
147
c50415e2
TG
1482014-10-14 Tristan Gingold <gingold@adacore.com>
149
150 * NEWS: Add marker for 2.25.
151
65879393
AM
1522014-10-14 Alan Modra <amodra@gmail.com>
153
154 PR 17453
155 * dwarf.c (read_leb128): Avoid signed overflow.
156 (read_debug_line_header): Likewise.
157
9495b2e6
AM
1582014-10-14 Alan Modra <amodra@gmail.com>
159
160 PR 17453
161 * readelf.c (process_program_headers): Correct fscanf format used
162 for interpreter.
163
3d68f91c
JM
1642014-10-09 Jose E. Marchesi <jose.marchesi@oracle.com>
165
166 * readelf.c (display_sparc_hwcaps2): New function.
167 (display_sparc_gnu_attribute): Call `display_sparc_hwcaps2' when
168 handling `Tag_GNU_Sparc_HWCAPS2' attributes.
169
49727e46
AM
1702014-09-22 Alan Modra <amodra@gmail.com>
171
172 PR 16563
173 * dwarf.c (GET): Remove semicolon.
174 (read_cie): New function, extracted from..
175 (display_debug_frames): ..here. Correctly handle signed offset
176 from FDE to CIE in .eh_frame. Decode forward referenced CIEs too.
177
70e99720
TG
1782014-09-16 Nick Clifton <nickc@redhat.com>
179
180 * readelf.c (display_arm_attribute): Use unsigned int type for
181 tag, val and type variables.
182
40c7a7cb
KLC
1832014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
184
185 * readelf.c (decode_NDS32_machine_flags): Display ABI2 FP+.
186
7361da2c
AB
1872014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
188 Matthew Fortune <matthew.fortune@imgtec.com>
189
190 * readelf.c (get_machine_flags): Add support for mips32r6 and
191 mips64r6.
192
74fffc39
JT
1932014-09-01 Jon TURNEY <jon.turney@dronecode.org.uk>
194
195 * objcopy.c (is_nondebug_keep_contents_section): Change
196 '.build-id' to '.buildid'.
197
4ee22035
RH
1982014-08-22 Richard Henderson <rth@redhat.com>
199
200 * dwarf.h (init_dwarf_regnames_aarch64): Declare.
201 * dwarf.c (dwarf_regnames_aarch64): New.
202 (init_dwarf_regnames_aarch64): New.
203 (init_dwarf_regnames): Call it.
204 * objdump.c (dump_dwarf): Likewise.
205
2974be62
AM
2062014-08-19 Alan Modra <amodra@gmail.com>
207
208 * configure: Regenerate.
209
b879806f
AM
2102014-08-14 Alan Modra <amodra@gmail.com>
211
212 * configure.ac: Move ACX_LARGEFILE after LT_INIT.
213 * config.in: Regenerate.
214 * configure: Regenerate.
215
351cdf24
MF
2162014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
217
218 * readelf.c (get_mips_segment_type): Display name for PT_MIPS_ABIFLAGS.
219 (get_mips_section_type_name): Display name for SHT_MIPS_ABIFLAGS.
220 (display_mips_gnu_attribute): Abstracted fp abi printing to...
221 (print_mips_fp_abi_value): New static function. Handle new FP ABIs.
222 (print_mips_ases, print_mips_isa_ext): New static functions.
223 (get_mips_reg_size): Likewise.
224 (process_mips_specific): Display abiflags data.
225
b794fc1d
AM
2262014-07-28 Alan Modra <amodra@gmail.com>
227
228 PR 13227
229 * nm.c (filter_symbols): Warn on __gnu_lto_slim.
230
3510a7b8
NC
2312014-07-07 Nick Clifton <nickc@redhat.com>
232
233 * readelf.c (get_symbol_type): Revert accidental change to
234 detection of thumb function symbols.
235
35eafcc7
AM
2362014-07-04 Alan Modra <amodra@gmail.com>
237
238 * configure.ac: Rename from configure.in.
239 * Makefile.in: Regenerate.
240 * config.in: Regenerate.
241 * doc/Makefile.in: Regenerate.
242
2e98a7bd
AM
2432014-07-04 Alan Modra <amodra@gmail.com>
244
245 * configure.in: Include bfd/version.m4.
246 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
247 (BFD_VERSION): Delete.
248 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
249 * configure: Regenerate.
250 * Makefile.in: Regenerate.
251 * doc/Makefile.in: Regenerate.
252
8d112f9e
TG
2532014-07-03 Tristan Gingold <gingold@adacore.com>
254
255 * doc/binutils.texi: Clarify addr2line output.
256
b6a1c03a
AM
2572014-07-01 Alan Modra <amodra@gmail.com>
258
259 * objdump.c (dump_bfd_header): Don't print HAS_LOAD_PAGE.
260
334ac421
EA
2612014-06-26 Erik Akermann <kurterikackermann@gmail.com>
262
263 * strings.c: Add -w/--include-all-whitespace option to include any
264 whitespace character in the displayed strings.
265 * NEWS: Mention the new feature.
266 * doc/binutils.texi (strings): Document the new command line
267 option.
268
df565f32
NC
2692014-06-26 Nick Clifton <nickc@redhat.com>
270
271 * readelf.c (process_note_sections): If there are no note sections
272 try processing note segments instead.
273
548a2357
NC
2742014-06-17 Anton Lavrentiwev <lavr@ncbi.nim.nih.gov>
275
276 PR binutils/16923
277 * rcparse.y (fixedverinfo): Prevent large version numbers from
278 corrupting other values.
279
d71ad7fc
RC
2802014-06-09 Romain Chastenet <romain.chastenet@free.fr>
281
282 PR binutils/16252
283 * dwarf.c (display_debug_frames): Remember the state of the
284 cfa_offset, cfa_reg, ra and cfa_exp field
285
270c9937
JB
2862014-06-05 Joel Brobecker <brobecker@adacore.com>
287
288 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
289 bfd's development.sh.
290 * Makefile.in, configure: Regenerate.
291
6e6e7cfc
JT
2922014-05-16 Jon Turney <jon.turney@dronecode.org.uk>
293
294 * objcopy.c (is_nondebug_keep_contents_section): New function.
295 (setup_section): Use it.
296
856ea05c
KP
2972014-05-16 Kaushik Phata <Kaushik.Phatak@kpit.com>
298
299 * readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag.
300
6d00b590
AM
3012014-05-02 Alan Modra <amodra@gmail.com>
302
303 * emul_aix.c: Update bfd target vector naming.
304 * testsuite/binutils-all/objcopy.exp: Likewise.
305
b2bcb4bd
CS
3062014-04-24 Christian Svensson <blue@cmd.nu>
307
308 * MAINTAINERS: Add myself and Stefan as OR1K maintainers.
309
7d64c587
AB
3102014-04-23 Andrew Bennett <andrew.bennett@imgtec.com>
311
312 * doc/binutils.texi: Document the disassemble MIPS XPA instructions
313 command line option.
314
73589c9d
CS
3152014-04-22 Christian Svensson <blue@cmd.nu>
316
317 * readelf.c: Remove openrisc and or32 support. Add support for or1k.
318
c9ffd2ea
TG
3192014-04-18 Tristan Gingold <gingold@adacore.com>
320
321 * od-macho.c (dump_section_map): Adjust as load commands
322 are now chained.
323 (dump_load_command, dump_section_content): Likewise.
324
e89d3dee
TG
3252014-04-16 Tristan Gingold <gingold@adacore.com>
326
327 * od-macho.c (OPT_DYLD_INFO): New macro.
328 (options): Add entry for dyld_info.
329 (mach_o_help): Likewise.
330 (load_and_dump, dump_dyld_info_rebase, dump_dyld_info_bind)
331 (dump_dyld_info_export_1, dump_dyld_info_export): New functions.
332 (bfd_mach_o_dyld_rebase_type_name): New array.
333 (export_info_data): New struct.
334 (dump_dyld_info): Add verbose argument. Dump rebase, bind and
335 exports data.
336 (dump_load_command): Adjust dump_dyld_info call.
337 (mach_o_dump): Handle dyld_info.
338
47f8a107
TG
3392014-04-16 Tristan Gingold <gingold@adacore.com>
340
341 * od-macho.c (dump_header): Display sizeofcmds in decimal too.
342 (dump_segment): Reformat output.
343 (dump_dyld_info): Also display end offsets.
344 (dump_load_command): Add IDX argument, display commands size
345 and offset, reformat display.
346 (dump_load_commands): Adjust for added argument.
347
5063a421
AM
3482014-04-07 Alan Modra <amodra@gmail.com>
349
350 PR binutils/16811
351 * objcopy.c (copy_object): Error if no sections.
352
92b1b678
MT
3532014-04-03 Markus Trippelsdorf <markus@trippelsdorf.de>
354
355 PR binutils/14698
356 ar.c: Set plugin_target early if plugins are supported.
357 nm.c: Likewise.
358
965b60c9
TG
3592014-04-03 Tristan Gingold <gingold@adacore.com>
360
361 * od-macho.c (printf_uint64): New function.
362 (dump_load_command, dump_obj_compact_unwind): Use it.
363 (dump_exe_compact_unwind): Display personality functions.
364
7a79c514
TG
3652014-04-02 Tristan Gingold <gingold@adacore.com>
366
367 * od-macho.c (OPT_TWOLEVEL_HINTS): New macro.
368 (options): Add entry for twolevel_hints.
369 (dump_data_in_code): Fix error message.
370 (dump_twolevel_hints): New function.
371 (dump_load_command): Handle prebound dylib, prebind cksum
372 and twolevel hints.
373 (mach_o_dump): Handle twolevel hints.
374
c275b681
TG
3752014-04-01 Tristan Gingold <gingold@adacore.com>
376
377 * od-macho.c (OPT_DATA_IN_CODE): New macro.
378 (options): Add entry for data in code.
379 (mach_o_help): Ditto.
380 (data_in_code_kind_name): New array.
381 (dump_data_in_code): New function.
382 (dump_load_command): Handle data in code.
383 (mach_o_dump): Ditto.
384 (dump_header): Display a terminal newline.
385
10be66a4
TG
3862014-03-27 Tristan Gingold <gingold@adacore.com>
387
388 * od-macho.c (dump_load_command): Display value for
389 BFD_MACH_O_LC_DYLD_ENVIRONMENT. Handle BFD_MACH_O_LC_DATA_IN_CODE
390 and BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS.
391
3cc27770
TG
3922014-03-27 Tristan Gingold <gingold@adacore.com>
393
394 * od-macho.c (OPT_FUNCTION_STARTS): New macro.
395 (options): Add entry for function_starts.
396 (mach_o_help): Ditto.
397 (disp_segment_prot): New function.
398 (dump_section_map): Call disp_segment_prot.
399 (dump_function_starts): New function.
400 (dump_obj_compact_unwind): Fix ouput indentation.
401 (dump_exe_compact_unwind): Fix ouput indentation.
402 (mach_o_dump): Handle function_starts.
403
d8028530
TG
4042014-03-26 Tristan Gingold <gingold@adacore.com>
405
406 * od-macho.c (bfd_mach_o_cpu_name): Add BFD_MACH_O_CPU_TYPE_ARM64.
407
595330b7
TG
4082014-03-24 Tristan Gingold <gingold@adacore.com>
409
410 * objdump.c (load_specific_debug_section): Set address of section.
411
aa9fa1e2
TG
4122014-03-24 Tristan Gingold <gingold@adacore.com>
413
414 * od-macho.c (dump_unwind_encoding_x86): Set the factor.
415 (dump_exe_compact_unwind): Change the condition. Improve
416 indentation.
417
bcf83b2a
NC
4182014-03-20 Nick Clifton <nickc@redhat.com>
419
420 * readelf.c (process_version_sections): Fix off-by-one error in
421 previous delta.
422
c24cf8b6
NC
4232014-03-19 Nick Clifton <nickc@redhat.com>
424
425 PR binutils/16723
426 * readelf.c (process_version_sections): Prevent an infinite loop
427 when the vn_next field is zero but there are still entries to be
428 processed.
429
167e1c1f
TG
4302014-03-17 Tristan Gingold <gingold@adacore.com>
431
432 * od-macho.c (dump_section_header): Renames of dump_section.
433 (dump_segment): Adjust after renaming.
434 (OPT_COMPACT_UNWIND): Define.
435 (options): Add compact unwind.
436 (mach_o_help): Document compact_unwind.
437 (unwind_x86_64_regs, unwind_x86_regs): New arrays.
438 (dump_unwind_encoding_x86, dump_unwind_encoding)
439 (dump_obj_compact_unwind, dump_exe_compact_unwind)
440 (dump_section_content): New functions.
441 (mach_o_dump): Handle compact unwind.
442
fbe383b9
TG
4432014-03-17 Tristan Gingold <gingold@adacore.com>
444
445 * od-macho.c (dump_load_command): Handle lazy load dylib.
446
182a105a
AG
4472014-03-14 Anthony Green <green@moxielogic.com>
448
449 * objcopy.c (copy_object): Check fwrite return code.
450
5a026fc9
NC
4512014-03-14 Meador Inge <meadori@codesourcery.com>
452
9495b2e6
AM
453 * dwarf.c (strnlen): Move prototype ...
454 * sysdep.h (strnlen): ... to here.
5a026fc9 455
8a1373cc
NC
4562014-03-12 Nick Clifton <nickc@redhat.com>
457
458 PR binutils/16652
459 * doc/binutils.texi (ar cmdline): Move --plugin command line
460 option to after the command option.
461
c63043aa
DG
4622014-03-12 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
463
464 PR binutils/16567
465 * deflex.l: Add noinput and nounput options.
466
fa47fa92
AM
4672014-03-12 Alan Modra <amodra@gmail.com>
468
469 * Makefile.in: Regenerate.
470 * doc/Makefile.in: Regenerate.
471
e9847026
NC
4722014-03-06 Nick Clifton <nickc@redhat.com>
473
474 PR binutils/16664
475 * readelf.c (process_attributes): Add checks for corrupt
476 attribute section names.
477
4b95cf5c
AM
4782014-03-05 Alan Modra <amodra@gmail.com>
479
480 Update copyright years.
481
2c80b753
AM
4822014-03-03 Alan Modra <amodra@gmail.com>
483
484 * README: Add "Copyright Notices" paragraph.
485
503a6091
CC
4862014-02-11 Cary Coutant <ccoutant@google.com>
487
488 * binutils/dwarf.c (read_and_display_attr_value): Don't warn
489 for zero-length attribute value.
490
c1c69e83
AM
4912014-02-10 Alan Modra <amodra@gmail.com>
492
493 * po/binutils.pot: Regenerate.
494
d32e5c54
AP
4952014-02-06 Andrew Pinski <apinski@cavium.com>
496
497 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_OCTEON3 case.
498
926c5385
CC
4992014-02-06 Cary Coutant <ccoutant@google.com>
500
501 PR binutils/16444
502 * readelf.c (print_gnu_note): Add support for NT_GNU_GOLD_VERSION.
503
221fd5d5
L
5042014-01-08 H.J. Lu <hongjiu.lu@intel.com>
505
506 * version.c (print_version): Update copyright year to 2014.
507
1651e569
TT
5082014-01-07 Tom Tromey <tromey@redhat.com>
509
510 * bucomm.c (fatal, non_fatal): Replace obsolete VA_* macros with
511 stdarg macros.
512 * dlltool.c (inform): Replace obsolete VA_* macros with stdarg
513 macros.
514 * dllwrap.c (inform, warn): Replace obsolete VA_* macros with
515 stdarg macros.
516
b51f1626
TT
5172014-01-07 Tom Tromey <tromey@redhat.com>
518
519 * coffgrok.h (coff_ofile): Don't use PARAMS.
520 * nlmheader.y (strerror): Don't use PARAMS.
521
5fb776a6 522For older changes see ChangeLog-2013
252b5132 523\f
5fb776a6 524Copyright (C) 2014 Free Software Foundation, Inc.
752937aa
NC
525
526Copying and distribution of this file, with or without modification,
527are permitted in any medium without royalty provided the copyright
528notice and this notice are preserved.
529
252b5132
RH
530Local Variables:
531mode: change-log
532left-margin: 8
533fill-column: 74
534version-control: never
535End:
This page took 0.816936 seconds and 4 git commands to generate.