Prevent archive memebers with illegal pathnames from being extracted from an archive.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2014-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
13 2014-11-05 Nick Clifton <nickc@redhat.com>
14
15 PR binutils/17531
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
35 2014-11-05 Nick Clifton <nickc@redhat.com>
36
37 PR binutils/17533
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
44 2014-11-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
45
46 * readelf.c (process_mips_specific): Fix format string warning.
47
48 2014-11-04 Matthew Fortune <matthew.fortune@imgtec.com>
49
50 * readelf.c (process_mips_specific): Rename index to idx.
51
52 2014-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
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
76 2014-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
83 2014-11-03 Nick Clifton <nickc@redhat.com>
84
85 * po/fi.po: Updated Finnish translation.
86 * po/sv.po: Updated Swedish translation.
87
88 2014-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
94 2014-10-31 Andrew Pinski <apinski@cavium.com>
95 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
96
97 * readelf.c (print_mips_isa_ext): Print the value of Octeon3.
98
99 2014-10-31 Iain Buclaw <ibuclaw@gdcproject.org>
100
101 * cxxfilt.c (main): Add case for dlang_demangling style.
102
103 2014-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
112 2014-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
127 2014-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
133 2014-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
139 2014-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
144 2014-10-15 Tristan Gingold <gingold@adacore.com>
145
146 * configure: Regenerate.
147
148 2014-10-14 Tristan Gingold <gingold@adacore.com>
149
150 * NEWS: Add marker for 2.25.
151
152 2014-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
158 2014-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
164 2014-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
170 2014-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
178 2014-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
183 2014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
184
185 * readelf.c (decode_NDS32_machine_flags): Display ABI2 FP+.
186
187 2014-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
193 2014-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
198 2014-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
206 2014-08-19 Alan Modra <amodra@gmail.com>
207
208 * configure: Regenerate.
209
210 2014-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
216 2014-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
226 2014-07-28 Alan Modra <amodra@gmail.com>
227
228 PR 13227
229 * nm.c (filter_symbols): Warn on __gnu_lto_slim.
230
231 2014-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
236 2014-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
243 2014-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
253 2014-07-03 Tristan Gingold <gingold@adacore.com>
254
255 * doc/binutils.texi: Clarify addr2line output.
256
257 2014-07-01 Alan Modra <amodra@gmail.com>
258
259 * objdump.c (dump_bfd_header): Don't print HAS_LOAD_PAGE.
260
261 2014-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
269 2014-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
274 2014-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
280 2014-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
286 2014-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
292 2014-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
297 2014-05-16 Kaushik Phata <Kaushik.Phatak@kpit.com>
298
299 * readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag.
300
301 2014-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
306 2014-04-24 Christian Svensson <blue@cmd.nu>
307
308 * MAINTAINERS: Add myself and Stefan as OR1K maintainers.
309
310 2014-04-23 Andrew Bennett <andrew.bennett@imgtec.com>
311
312 * doc/binutils.texi: Document the disassemble MIPS XPA instructions
313 command line option.
314
315 2014-04-22 Christian Svensson <blue@cmd.nu>
316
317 * readelf.c: Remove openrisc and or32 support. Add support for or1k.
318
319 2014-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
325 2014-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
339 2014-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
348 2014-04-07 Alan Modra <amodra@gmail.com>
349
350 PR binutils/16811
351 * objcopy.c (copy_object): Error if no sections.
352
353 2014-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
359 2014-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
365 2014-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
375 2014-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
386 2014-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
392 2014-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
404 2014-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
408 2014-03-24 Tristan Gingold <gingold@adacore.com>
409
410 * objdump.c (load_specific_debug_section): Set address of section.
411
412 2014-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
418 2014-03-20 Nick Clifton <nickc@redhat.com>
419
420 * readelf.c (process_version_sections): Fix off-by-one error in
421 previous delta.
422
423 2014-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
430 2014-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
443 2014-03-17 Tristan Gingold <gingold@adacore.com>
444
445 * od-macho.c (dump_load_command): Handle lazy load dylib.
446
447 2014-03-14 Anthony Green <green@moxielogic.com>
448
449 * objcopy.c (copy_object): Check fwrite return code.
450
451 2014-03-14 Meador Inge <meadori@codesourcery.com>
452
453 * dwarf.c (strnlen): Move prototype ...
454 * sysdep.h (strnlen): ... to here.
455
456 2014-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
462 2014-03-12 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
463
464 PR binutils/16567
465 * deflex.l: Add noinput and nounput options.
466
467 2014-03-12 Alan Modra <amodra@gmail.com>
468
469 * Makefile.in: Regenerate.
470 * doc/Makefile.in: Regenerate.
471
472 2014-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
478 2014-03-05 Alan Modra <amodra@gmail.com>
479
480 Update copyright years.
481
482 2014-03-03 Alan Modra <amodra@gmail.com>
483
484 * README: Add "Copyright Notices" paragraph.
485
486 2014-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
491 2014-02-10 Alan Modra <amodra@gmail.com>
492
493 * po/binutils.pot: Regenerate.
494
495 2014-02-06 Andrew Pinski <apinski@cavium.com>
496
497 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_OCTEON3 case.
498
499 2014-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
504 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
505
506 * version.c (print_version): Update copyright year to 2014.
507
508 2014-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
517 2014-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
522 For older changes see ChangeLog-2013
523 \f
524 Copyright (C) 2014 Free Software Foundation, Inc.
525
526 Copying and distribution of this file, with or without modification,
527 are permitted in any medium without royalty provided the copyright
528 notice and this notice are preserved.
529
530 Local Variables:
531 mode: change-log
532 left-margin: 8
533 fill-column: 74
534 version-control: never
535 End:
This page took 0.040586 seconds and 5 git commands to generate.