Avoid allocating over-large buffers when parsing corrupt binaries.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
f54498b4
NC
12014-10-31 Nick Clifton <nickc@redhat.com>
2
3 PR binutils/17512
4 * readelf.c (process_program_headers): Avoid memory exhaustion due
5 to corrupt values in a dynamis segment header.
6 (get_32bit_elf_symbols): Do not attempt to read an over-large
7 section.
8 (get_64bit_elf_symbols): Likewise.
9
fe060053
NC
102014-10-31 Nick Clifton <nickc@redhat.com>
11
12 * strings.c: Add new command line option --data to only scan the
13 initialized, loadable data secions of binaries. Choose the
14 default behaviour of --all or --data based upon a configure
15 option.
16 * doc/binutils.texi (strings): Update documentation. Include
17 description of why the --data option might be unsafe.
18 * configure.ac: Add new option --disable-default-strings-all which
19 restores the old behaviour of strings using --data by default. If
20 the option is not used make strings use --all by default.
21 * NEWS: Mention the new behaviour of strings.
22 * configure: Regenerate.
23 * config.in: Regenerate.
24
76ca31c0
NC
252014-10-30 Nick Clifton <nickc@redhat.com>
26
27 * readelf.c (CHECK_ENTSIZE_VALUES): Rewrite error message so that
28 there is a single string for translation.
29 (dynamic_section_mips_val): Likewise.
30
64b588b5
NC
312014-10-29 Nick Clifton <nickc@redhat.com>
32
33 * po/bg.po: Updated Bulgarian translation.
34 * po/sr.po: New Serbian translation.
35 * po/sv.po: Updated Swedish translation.
36
00ac7aa0
MF
372014-10-22 Matthew Fortune <matthew.fortune@imgtec.com>
38
39 * readelf.c (print_mips_ases): Print unknown ASEs.
40 (print_mips_isa_ext): Print the value of an unknown extension.
41
91dc4e0a
TG
422014-10-15 Tristan Gingold <gingold@adacore.com>
43
44 * configure: Regenerate.
45
c50415e2
TG
462014-10-14 Tristan Gingold <gingold@adacore.com>
47
48 * NEWS: Add marker for 2.25.
49
65879393
AM
502014-10-14 Alan Modra <amodra@gmail.com>
51
52 PR 17453
53 * dwarf.c (read_leb128): Avoid signed overflow.
54 (read_debug_line_header): Likewise.
55
9495b2e6
AM
562014-10-14 Alan Modra <amodra@gmail.com>
57
58 PR 17453
59 * readelf.c (process_program_headers): Correct fscanf format used
60 for interpreter.
61
3d68f91c
JM
622014-10-09 Jose E. Marchesi <jose.marchesi@oracle.com>
63
64 * readelf.c (display_sparc_hwcaps2): New function.
65 (display_sparc_gnu_attribute): Call `display_sparc_hwcaps2' when
66 handling `Tag_GNU_Sparc_HWCAPS2' attributes.
67
49727e46
AM
682014-09-22 Alan Modra <amodra@gmail.com>
69
70 PR 16563
71 * dwarf.c (GET): Remove semicolon.
72 (read_cie): New function, extracted from..
73 (display_debug_frames): ..here. Correctly handle signed offset
74 from FDE to CIE in .eh_frame. Decode forward referenced CIEs too.
75
70e99720
TG
762014-09-16 Nick Clifton <nickc@redhat.com>
77
78 * readelf.c (display_arm_attribute): Use unsigned int type for
79 tag, val and type variables.
80
40c7a7cb
KLC
812014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
82
83 * readelf.c (decode_NDS32_machine_flags): Display ABI2 FP+.
84
7361da2c
AB
852014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
86 Matthew Fortune <matthew.fortune@imgtec.com>
87
88 * readelf.c (get_machine_flags): Add support for mips32r6 and
89 mips64r6.
90
74fffc39
JT
912014-09-01 Jon TURNEY <jon.turney@dronecode.org.uk>
92
93 * objcopy.c (is_nondebug_keep_contents_section): Change
94 '.build-id' to '.buildid'.
95
4ee22035
RH
962014-08-22 Richard Henderson <rth@redhat.com>
97
98 * dwarf.h (init_dwarf_regnames_aarch64): Declare.
99 * dwarf.c (dwarf_regnames_aarch64): New.
100 (init_dwarf_regnames_aarch64): New.
101 (init_dwarf_regnames): Call it.
102 * objdump.c (dump_dwarf): Likewise.
103
2974be62
AM
1042014-08-19 Alan Modra <amodra@gmail.com>
105
106 * configure: Regenerate.
107
b879806f
AM
1082014-08-14 Alan Modra <amodra@gmail.com>
109
110 * configure.ac: Move ACX_LARGEFILE after LT_INIT.
111 * config.in: Regenerate.
112 * configure: Regenerate.
113
351cdf24
MF
1142014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
115
116 * readelf.c (get_mips_segment_type): Display name for PT_MIPS_ABIFLAGS.
117 (get_mips_section_type_name): Display name for SHT_MIPS_ABIFLAGS.
118 (display_mips_gnu_attribute): Abstracted fp abi printing to...
119 (print_mips_fp_abi_value): New static function. Handle new FP ABIs.
120 (print_mips_ases, print_mips_isa_ext): New static functions.
121 (get_mips_reg_size): Likewise.
122 (process_mips_specific): Display abiflags data.
123
b794fc1d
AM
1242014-07-28 Alan Modra <amodra@gmail.com>
125
126 PR 13227
127 * nm.c (filter_symbols): Warn on __gnu_lto_slim.
128
3510a7b8
NC
1292014-07-07 Nick Clifton <nickc@redhat.com>
130
131 * readelf.c (get_symbol_type): Revert accidental change to
132 detection of thumb function symbols.
133
35eafcc7
AM
1342014-07-04 Alan Modra <amodra@gmail.com>
135
136 * configure.ac: Rename from configure.in.
137 * Makefile.in: Regenerate.
138 * config.in: Regenerate.
139 * doc/Makefile.in: Regenerate.
140
2e98a7bd
AM
1412014-07-04 Alan Modra <amodra@gmail.com>
142
143 * configure.in: Include bfd/version.m4.
144 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
145 (BFD_VERSION): Delete.
146 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
147 * configure: Regenerate.
148 * Makefile.in: Regenerate.
149 * doc/Makefile.in: Regenerate.
150
8d112f9e
TG
1512014-07-03 Tristan Gingold <gingold@adacore.com>
152
153 * doc/binutils.texi: Clarify addr2line output.
154
b6a1c03a
AM
1552014-07-01 Alan Modra <amodra@gmail.com>
156
157 * objdump.c (dump_bfd_header): Don't print HAS_LOAD_PAGE.
158
334ac421
EA
1592014-06-26 Erik Akermann <kurterikackermann@gmail.com>
160
161 * strings.c: Add -w/--include-all-whitespace option to include any
162 whitespace character in the displayed strings.
163 * NEWS: Mention the new feature.
164 * doc/binutils.texi (strings): Document the new command line
165 option.
166
df565f32
NC
1672014-06-26 Nick Clifton <nickc@redhat.com>
168
169 * readelf.c (process_note_sections): If there are no note sections
170 try processing note segments instead.
171
548a2357
NC
1722014-06-17 Anton Lavrentiwev <lavr@ncbi.nim.nih.gov>
173
174 PR binutils/16923
175 * rcparse.y (fixedverinfo): Prevent large version numbers from
176 corrupting other values.
177
d71ad7fc
RC
1782014-06-09 Romain Chastenet <romain.chastenet@free.fr>
179
180 PR binutils/16252
181 * dwarf.c (display_debug_frames): Remember the state of the
182 cfa_offset, cfa_reg, ra and cfa_exp field
183
270c9937
JB
1842014-06-05 Joel Brobecker <brobecker@adacore.com>
185
186 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
187 bfd's development.sh.
188 * Makefile.in, configure: Regenerate.
189
6e6e7cfc
JT
1902014-05-16 Jon Turney <jon.turney@dronecode.org.uk>
191
192 * objcopy.c (is_nondebug_keep_contents_section): New function.
193 (setup_section): Use it.
194
856ea05c
KP
1952014-05-16 Kaushik Phata <Kaushik.Phatak@kpit.com>
196
197 * readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag.
198
6d00b590
AM
1992014-05-02 Alan Modra <amodra@gmail.com>
200
201 * emul_aix.c: Update bfd target vector naming.
202 * testsuite/binutils-all/objcopy.exp: Likewise.
203
b2bcb4bd
CS
2042014-04-24 Christian Svensson <blue@cmd.nu>
205
206 * MAINTAINERS: Add myself and Stefan as OR1K maintainers.
207
7d64c587
AB
2082014-04-23 Andrew Bennett <andrew.bennett@imgtec.com>
209
210 * doc/binutils.texi: Document the disassemble MIPS XPA instructions
211 command line option.
212
73589c9d
CS
2132014-04-22 Christian Svensson <blue@cmd.nu>
214
215 * readelf.c: Remove openrisc and or32 support. Add support for or1k.
216
c9ffd2ea
TG
2172014-04-18 Tristan Gingold <gingold@adacore.com>
218
219 * od-macho.c (dump_section_map): Adjust as load commands
220 are now chained.
221 (dump_load_command, dump_section_content): Likewise.
222
e89d3dee
TG
2232014-04-16 Tristan Gingold <gingold@adacore.com>
224
225 * od-macho.c (OPT_DYLD_INFO): New macro.
226 (options): Add entry for dyld_info.
227 (mach_o_help): Likewise.
228 (load_and_dump, dump_dyld_info_rebase, dump_dyld_info_bind)
229 (dump_dyld_info_export_1, dump_dyld_info_export): New functions.
230 (bfd_mach_o_dyld_rebase_type_name): New array.
231 (export_info_data): New struct.
232 (dump_dyld_info): Add verbose argument. Dump rebase, bind and
233 exports data.
234 (dump_load_command): Adjust dump_dyld_info call.
235 (mach_o_dump): Handle dyld_info.
236
47f8a107
TG
2372014-04-16 Tristan Gingold <gingold@adacore.com>
238
239 * od-macho.c (dump_header): Display sizeofcmds in decimal too.
240 (dump_segment): Reformat output.
241 (dump_dyld_info): Also display end offsets.
242 (dump_load_command): Add IDX argument, display commands size
243 and offset, reformat display.
244 (dump_load_commands): Adjust for added argument.
245
5063a421
AM
2462014-04-07 Alan Modra <amodra@gmail.com>
247
248 PR binutils/16811
249 * objcopy.c (copy_object): Error if no sections.
250
92b1b678
MT
2512014-04-03 Markus Trippelsdorf <markus@trippelsdorf.de>
252
253 PR binutils/14698
254 ar.c: Set plugin_target early if plugins are supported.
255 nm.c: Likewise.
256
965b60c9
TG
2572014-04-03 Tristan Gingold <gingold@adacore.com>
258
259 * od-macho.c (printf_uint64): New function.
260 (dump_load_command, dump_obj_compact_unwind): Use it.
261 (dump_exe_compact_unwind): Display personality functions.
262
7a79c514
TG
2632014-04-02 Tristan Gingold <gingold@adacore.com>
264
265 * od-macho.c (OPT_TWOLEVEL_HINTS): New macro.
266 (options): Add entry for twolevel_hints.
267 (dump_data_in_code): Fix error message.
268 (dump_twolevel_hints): New function.
269 (dump_load_command): Handle prebound dylib, prebind cksum
270 and twolevel hints.
271 (mach_o_dump): Handle twolevel hints.
272
c275b681
TG
2732014-04-01 Tristan Gingold <gingold@adacore.com>
274
275 * od-macho.c (OPT_DATA_IN_CODE): New macro.
276 (options): Add entry for data in code.
277 (mach_o_help): Ditto.
278 (data_in_code_kind_name): New array.
279 (dump_data_in_code): New function.
280 (dump_load_command): Handle data in code.
281 (mach_o_dump): Ditto.
282 (dump_header): Display a terminal newline.
283
10be66a4
TG
2842014-03-27 Tristan Gingold <gingold@adacore.com>
285
286 * od-macho.c (dump_load_command): Display value for
287 BFD_MACH_O_LC_DYLD_ENVIRONMENT. Handle BFD_MACH_O_LC_DATA_IN_CODE
288 and BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS.
289
3cc27770
TG
2902014-03-27 Tristan Gingold <gingold@adacore.com>
291
292 * od-macho.c (OPT_FUNCTION_STARTS): New macro.
293 (options): Add entry for function_starts.
294 (mach_o_help): Ditto.
295 (disp_segment_prot): New function.
296 (dump_section_map): Call disp_segment_prot.
297 (dump_function_starts): New function.
298 (dump_obj_compact_unwind): Fix ouput indentation.
299 (dump_exe_compact_unwind): Fix ouput indentation.
300 (mach_o_dump): Handle function_starts.
301
d8028530
TG
3022014-03-26 Tristan Gingold <gingold@adacore.com>
303
304 * od-macho.c (bfd_mach_o_cpu_name): Add BFD_MACH_O_CPU_TYPE_ARM64.
305
595330b7
TG
3062014-03-24 Tristan Gingold <gingold@adacore.com>
307
308 * objdump.c (load_specific_debug_section): Set address of section.
309
aa9fa1e2
TG
3102014-03-24 Tristan Gingold <gingold@adacore.com>
311
312 * od-macho.c (dump_unwind_encoding_x86): Set the factor.
313 (dump_exe_compact_unwind): Change the condition. Improve
314 indentation.
315
bcf83b2a
NC
3162014-03-20 Nick Clifton <nickc@redhat.com>
317
318 * readelf.c (process_version_sections): Fix off-by-one error in
319 previous delta.
320
c24cf8b6
NC
3212014-03-19 Nick Clifton <nickc@redhat.com>
322
323 PR binutils/16723
324 * readelf.c (process_version_sections): Prevent an infinite loop
325 when the vn_next field is zero but there are still entries to be
326 processed.
327
167e1c1f
TG
3282014-03-17 Tristan Gingold <gingold@adacore.com>
329
330 * od-macho.c (dump_section_header): Renames of dump_section.
331 (dump_segment): Adjust after renaming.
332 (OPT_COMPACT_UNWIND): Define.
333 (options): Add compact unwind.
334 (mach_o_help): Document compact_unwind.
335 (unwind_x86_64_regs, unwind_x86_regs): New arrays.
336 (dump_unwind_encoding_x86, dump_unwind_encoding)
337 (dump_obj_compact_unwind, dump_exe_compact_unwind)
338 (dump_section_content): New functions.
339 (mach_o_dump): Handle compact unwind.
340
fbe383b9
TG
3412014-03-17 Tristan Gingold <gingold@adacore.com>
342
343 * od-macho.c (dump_load_command): Handle lazy load dylib.
344
182a105a
AG
3452014-03-14 Anthony Green <green@moxielogic.com>
346
347 * objcopy.c (copy_object): Check fwrite return code.
348
5a026fc9
NC
3492014-03-14 Meador Inge <meadori@codesourcery.com>
350
9495b2e6
AM
351 * dwarf.c (strnlen): Move prototype ...
352 * sysdep.h (strnlen): ... to here.
5a026fc9 353
8a1373cc
NC
3542014-03-12 Nick Clifton <nickc@redhat.com>
355
356 PR binutils/16652
357 * doc/binutils.texi (ar cmdline): Move --plugin command line
358 option to after the command option.
359
c63043aa
DG
3602014-03-12 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
361
362 PR binutils/16567
363 * deflex.l: Add noinput and nounput options.
364
fa47fa92
AM
3652014-03-12 Alan Modra <amodra@gmail.com>
366
367 * Makefile.in: Regenerate.
368 * doc/Makefile.in: Regenerate.
369
e9847026
NC
3702014-03-06 Nick Clifton <nickc@redhat.com>
371
372 PR binutils/16664
373 * readelf.c (process_attributes): Add checks for corrupt
374 attribute section names.
375
4b95cf5c
AM
3762014-03-05 Alan Modra <amodra@gmail.com>
377
378 Update copyright years.
379
2c80b753
AM
3802014-03-03 Alan Modra <amodra@gmail.com>
381
382 * README: Add "Copyright Notices" paragraph.
383
503a6091
CC
3842014-02-11 Cary Coutant <ccoutant@google.com>
385
386 * binutils/dwarf.c (read_and_display_attr_value): Don't warn
387 for zero-length attribute value.
388
c1c69e83
AM
3892014-02-10 Alan Modra <amodra@gmail.com>
390
391 * po/binutils.pot: Regenerate.
392
d32e5c54
AP
3932014-02-06 Andrew Pinski <apinski@cavium.com>
394
395 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_OCTEON3 case.
396
926c5385
CC
3972014-02-06 Cary Coutant <ccoutant@google.com>
398
399 PR binutils/16444
400 * readelf.c (print_gnu_note): Add support for NT_GNU_GOLD_VERSION.
401
221fd5d5
L
4022014-01-08 H.J. Lu <hongjiu.lu@intel.com>
403
404 * version.c (print_version): Update copyright year to 2014.
405
1651e569
TT
4062014-01-07 Tom Tromey <tromey@redhat.com>
407
408 * bucomm.c (fatal, non_fatal): Replace obsolete VA_* macros with
409 stdarg macros.
410 * dlltool.c (inform): Replace obsolete VA_* macros with stdarg
411 macros.
412 * dllwrap.c (inform, warn): Replace obsolete VA_* macros with
413 stdarg macros.
414
b51f1626
TT
4152014-01-07 Tom Tromey <tromey@redhat.com>
416
417 * coffgrok.h (coff_ofile): Don't use PARAMS.
418 * nlmheader.y (strerror): Don't use PARAMS.
419
5fb776a6 420For older changes see ChangeLog-2013
252b5132 421\f
5fb776a6 422Copyright (C) 2014 Free Software Foundation, Inc.
752937aa
NC
423
424Copying and distribution of this file, with or without modification,
425are permitted in any medium without royalty provided the copyright
426notice and this notice are preserved.
427
252b5132
RH
428Local Variables:
429mode: change-log
430left-margin: 8
431fill-column: 74
432version-control: never
433End:
This page took 0.621412 seconds and 4 git commands to generate.