* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2013-04-29 Nick Clifton <nickc@redhat.com>
2
3 * dwarf.c (read_debug_line_header): New function. Reads in a
4 header in a .debug_line section.
5 (display_debug_lines_raw): Use new function. Handle fragmentary
6 .debug_line sections.
7 (display_debug_lines_decoded): Likewise.
8 * readelf.c (process_section_headers): Handle fragmenatry
9 .debug_line sections.
10 (display_debug_section): Likewise.
11
12 2013-04-26 Ian Lance Taylor <iant@google.com>
13
14 * MAINTAINERS: Add myself and Cary as gold maintainers.
15
16 2013-04-08 Tom Tromey <tromey@redhat.com>
17
18 * dwarf.c (process_debug_info): Check dwarf_cutoff_level.
19
20 2013-04-08 Tom Tromey <tromey@redhat.com>
21
22 * dwarf-mode.el: Bump version number.
23 (dwarf-mode): Remove autoload.
24 (dwarf-die-reference): Relax regexp.
25
26 2013-04-05 Alan Modra <amodra@gmail.com>
27
28 PR binutils/15324
29 * configure.in: Add strnlen to AC_CHECK_DECLS, sort.
30 * dwarf.c (strnlen): Provide fallback decl.
31 * config.in: Regnerate.
32 * configure: Regenerate.
33
34 2013-03-29 H.J. Lu <hongjiu.lu@intel.com>
35
36 * dwarf.c (process_debug_info): Increment hdrptr by 8 after
37 SAFE_BYTE_GET64.
38
39 2013-03-27 Phil Krylov <phil.krylov@gmail.com>
40
41 PR binutils/13409
42 * winduni.c (codepages[]): Use UTF-16LE.
43 (wind_MultiByteToWideChar): Likewise.
44 (wind_WideCharToMultiByte): Likewise.
45
46 2013-03-27 Alan Modra <amodra@gmail.com>
47
48 PR binutils/15206
49 * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
50
51 2013-03-26 Nick Clifton <nickc@redhat.com>
52
53 PR binutils/15206
54 * dwarf.c (SAFE_BYTE_GET): New macro - checks remaining buffer
55 space before calling byte_get.
56 (SAFE_BYTE_GET_AND_INC): New macro.
57 (SAFE_SIGNED_BYTE_GET): New macro.
58 (SAFE_SIGNED_BYTE_GET_AND_INC): New macro.
59 (SAFE_BYTE_GET64): New macro.
60 (process_extened_line_op): Use new macros. Use strnlen when
61 appropriate.
62 (fetch_indirect_string): Likewise.
63 (get_FORM_name): Likewise.
64 (decode_location_expression): Likewise.
65 (read_and_display_attr_value): Likewise.
66 (process_debug_info): Likewise.
67 (display_debug_lines_raw): Likewise.
68 (display_debug_lines_decoded): Likewise.
69 (display_debug_pubnames): Likewise.
70 (display_debug_macinfo): Likewise.
71 (get_line_filename_and_dirname): Likewise.
72 (display_debug_macro): Likewise.
73 (display_loc_list): Likewise.
74 (display_loc_list_dwo): Likewise.
75 (display_debug_aranges): Likewise.
76 (display_debug_ranges): Likewise.
77 (frame_display_row): Likewise.
78 (display_debug_frames): Likewise.
79
80 2013-03-25 Nick Clifton <nickc@redhat.com>
81
82 PR binutils/15202
83 * dwarf.c (read_leb128): Add END parameter. Do not read at or
84 beyond end.
85 (read_sleb128): Add END parameter.
86 (read_uleb128): New function.
87 (process_extended_line_op): Pass END to leb128 functions.
88 (process_abbrev_section): Likewise.
89 (decode_location_expression): Likewise.
90 (read_and_display_attr_value): Likewise.
91 (read_and_display_attr): Likewise.
92 (process_debug_info): Likewise.
93 (display_debug_lines_raw): Likewise.
94 (display_debug_lines_decoded): Likewise.
95 (display_debug_macinfo): Likewise.
96 (get_line_filename_and_dirname): Likewise.
97 (display_debug_macro): Likewise.
98 (display_loc_list_dwo): Likewise.
99 (display_debug_ranges): Likewise.
100 * dwarf.h (read_leb128): Update prototype.
101 * readelf.c (read_uleb128): Add END parameter.
102 (decode_arm_unwind_bytecode): Pass END to read_uleb128.
103 (decode_tic6x_unwind_bytecode): Likewise.
104 (display_tag_value): New function.
105 (display_arm_attribute): Add END parameter. Pass END to
106 read_uleb128. Use display_tag_value.
107 (display_gnu_attribute): Likewise.
108 (display_power_gnu_attribute): Likewise.
109 (display_sparc_gnu_attribute): Likewise.
110 (display_mips_gnu_attribute): Likewise.
111 (display_tic6x_attribute): Likewise.
112 (process_attributes): Likewise.
113 (display_raw_attribute): New function.
114
115 2013-03-22 Nick Clifton <nickc@redhat.com>
116
117 PR binutils/15201
118 * dwarf.c (display_debug_ranges): Add checks for reading beyond
119 the end of the section.
120
121 PR binutils/15157
122 * readelf.c (apply_relocations): Catch relocations with negative
123 offsets.
124
125 2013-03-15 Nick Clifton <nickc@redhat.com>
126
127 * addr2line.c (slurp_symtab): If canonicalization reveals that
128 there were no ordinary symbols, try loading the dynamic symbols
129 instead.
130
131 2013-03-14 Markos Chandras <markos.chandras@imgtec.com>
132
133 * MAINTAINERS: Add myself as Meta maintainer.
134
135 2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
136
137 * readelf.c (get_note_type): Add NT_S390_TDB.
138
139 2013-03-07 Alan Modra <amodra@gmail.com>
140
141 * strings.c (get_char): Dispense with buf[]. Instead shift
142 chars into big-endian value and byte-swap later if
143 little-endian. Don't EOF check value read from object.
144
145 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
146
147 * configure.in: Build DLL tools on x86_64-*-cygwin* as well.
148 * configure: Regenerate.
149
150 2013-03-04 Nick Clifton <nickc@redhat.com>
151
152 * elfcomm.c (error): Flush stdout before emitting the error
153 message.
154 (warn): Likewise.
155
156 2013-03-01 Cary Coutant <ccoutant@google.com>
157
158 * dwarf.c (cu_tu_indexes_read, shndx_pool, shndx_pool_size)
159 (shndx_pool_used): Move to top of file.
160 (struct cu_tu_set): New type.
161 (cu_count, tu_count, cu_sets, tu_sets): New file scope variables.
162 (fetch_indexed_string): Add "this_set" parameter. Update all callers.
163 (find_cu_tu_set_v2): New function.
164 (read_and_display_attr_value): Add "this_set" parameter.
165 (read_and_display_attr): Likewise.
166 (process_debug_info): Track base offsets for DWARF package files.
167 (load_debug_info): Call load_cu_tu_indexes.
168 (get_DW_SECT_short_name): New function.
169 (process_cu_tu_index): Add support for version 2 DWARF package files.
170
171 2013-02-27 Alan Modra <amodra@gmail.com>
172
173 PR binutils/15191
174 * readelf.c (offsetof): Define.
175 (CHECK_ENTSIZE_VALUES): Remove extraneous indefinite article.
176 (process_corefile_note_segment): Allow notes without name or
177 desc. Combine out-of-range checks. Disallow "negative"
178 notesz or descsz.
179
180 2013-02-26 Nick Clifton <nickc@redhat.com>
181
182 PR binutils/15191
183 * readelf.c (process_corefile_note_segment): Prevent attempts to
184 read beyond the end of the note buffer.
185
186 2013-02-15 Kai Tietz <ktietz@redhat.com>
187
188 * objcopy.c (copy_main): Initialize context variable.
189
190 2013-02-15 Nick Clifton <nickc@redhat.com>
191
192 PR binutils/15140
193 * ar.c (open_inarch): Fail on attempts to convert a normal archive
194 to a thin archive or vice versa.
195 * elfcomm.c (make_qualified_name): Handle corrupted thin
196 archives.
197 * readelf.c (process_archive): Likewise.
198 * doc/binutils.texi: Clarify documentation describing thin
199 archives.
200
201 2013-02-15 Nick Clifton <nickc@redhat.com>
202
203 PR binutils/15033
204 * objcopy.c (enum change_action): Delete.
205 (struct section_list): Delete remove, copy, change_vma, change_lma
206 and set_flags fields. Add context field.
207 (find_section_list): Add a context parameter. Add support for
208 wildcard characters in section names.
209 (is_strip_section): Check for sections being both copied and
210 removed.
211 (copy_object): Pass context to find_section_list.
212 (setup_section): Likewise.
213 (copy_section): Likewise.
214 (copy_main): Likewise.
215 * doc/binutils: Document the new behaviour.
216 * NEWS: Mention the new feature
217
218 2013-02-14 Nick Clifton <nickc@redhat.com>
219
220 PR binutils/15125
221 * objcopy.c (copy_object): Provide a helpful warning message when
222 adding a gnu_debuglink section to an object which already contains
223 one.
224
225 2013-02-07 Nick Clifton <nickc@redhat.com>
226
227 * elfcomm.c (get_archive_member_name): Prevent seg-fault if a
228 corrupt archive uses long names but has no long name table.
229
230 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
231 Andrew Jenner <andrew@codesourcery.com>
232
233 Based on patches from Altera Corporation.
234
235 * readelf.c: Include elf/nios2.h.
236 (dump_relocations): Add case for EM_ALTERA_NIOS2.
237 (get_nios2_dynamic_type): New.
238 (get_dynamic_type): Add case for EM_ALTERA_NIOS2.
239 (is_32bit_abs_reloc): Fix EM_ALTERA_NIOS2 case.
240 (is_16bit_abs_reloc): Likewise.
241 (is_none_reloc): Add EM_ALTERA_NIOS2 and EM_NIOS32 cases.
242 * NEWS: Note Altera Nios II support.
243 * MAINTAINERS: Add Nios II maintainers.
244
245 2013-01-29 Xi Wang <xi.wang@gmail.com>
246
247 * readelf.c (process_version_sections): Fix overflow checks to
248 avoid undefined behaviour.
249
250 2013-01-28 Doug Evans <dje@google.com>
251
252 * dwarf.c (display_gdb_index): Handle .gdb_index version 8.
253
254 2013-01-28 Robert Schiele <rschiele@gmail.com>
255
256 * objcopy.c (parse_flags): Add merge and strings section flags.
257
258 2013-01-25 Cary Coutant <ccoutant@google.com>
259
260 * dwarf.c (display_loc_list): Update offset for each line
261 printed.
262 (print_addr_index): New function.
263 (display_loc_list_dwo): Update offset for each line printed.
264 Fix problems displaying loclists in .dwo files. Add support
265 for type 4 entries.
266 (display_debug_loc): Remove custom header for .dwo files.
267 (display_debug_addr): Adjust formatting.
268
269 2013-01-25 Marco Atzeri <marco.atzeri@gmail.com>
270
271 * objcopy.c : Enable long section names for OPTION_ADD_GNU_DEBUGLINK.
272
273 2013-01-24 Doug Evans <dje@google.com>
274
275 * dwarf.c (display_debug_addr): Add missing parentheses to expression.
276
277 2013-01-24 Nick Clifton <nickc@redhat.com>
278
279 * readelf.c (get_machine_flags): Decode E_V850E3V5_ARCH.
280
281 2013-01-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
282
283 * readelf.c: Add strings for NT_S390_LAST_BREAK and
284 NT_S390_SYSTEM_CALL.
285
286 2013-01-18 Nick Clifton <nickc@redhat.com>
287
288 PR binutils/15026
289 * addr2line.c (translate_addresses): When pretty printing, print
290 unknown function names on the same line as unknown symbol names.
291
292 2013-01-17 Nickolai Zeldovich <nickolai@csail.mit.edu>
293
294 * objdump.c (dump_target_specific): Fix NULL pointer test.
295
296 2013-01-16 Alan Modra <amodra@gmail.com>
297
298 PR binutils/15018
299 * stabs.c (parse_stab_members): Always set physname here to avoid
300 gcc warning..
301 (parse_stab_argtypes): ..and don't duplicate the init here.
302
303 2013-01-10 Will Newton <will.newton@imgtec.com>
304
305 * binutils/readelf.c: (guess_is_rela): Add EM_METAG.
306 (dump_relocations): Add EM_METAG.
307 (get_machine_name): Correct case for Meta.
308 (is_32bit_abs_reloc): Add support for Meta ADDR32 reloc.
309 (is_none_reloc): Add support for Meta NONE reloc.
310
311 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
312
313 * readelf.c (get_note_type): Handle NT_ARM_TLS, NT_ARM_HW_BREAK
314 and NT_ARM_HW_WATCH.
315
316 2013-01-07 Roland McGrath <mcgrathr@google.com>
317
318 * objcopy.c (deterministic): Make int rather than bfd_boolean,
319 initialize to -1.
320 (strip_options, copy_options): Add -U/--disable-deterministic-archives.
321 (default_deterministic): New function.
322 (strip_main, copy_main): Handle -U. Call default_deterministic.
323 (copy_usage, strip_usage): Describe -U. Cite whether -D or -U is
324 the default based on DEFAULT_AR_DETERMINISTIC.
325 * doc/binutils.texi (objcopy, strip): Describe -U and effect of
326 configure options on -D.
327
328 * ar.c (default_deterministic): Comment fix.
329
330 2013-01-07 Patrice Dumas <pertusus@free.fr>
331
332 * doc/binutils.texi: Fix ordering of top level nodes.
333 Replace erroneous uses of @itemx with @item.
334
335 2013-01-04 Andreas Schwab <schwab@linux-m68k.org>
336
337 * doc/binutils.texi (elfedit): Fix use of @itemx in @table.
338
339 2013-01-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
340
341 * MAINTAINERS: Add myself as AArch64 co-maintainer.
342
343 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
344
345 * version.c (print_version): Update copyright year to 2013.
346
347 For older changes see ChangeLog-2012
348 \f
349 Copyright (C) 2013 Free Software Foundation, Inc.
350
351 Copying and distribution of this file, with or without modification,
352 are permitted in any medium without royalty provided the copyright
353 notice and this notice are preserved.
354
355 Local Variables:
356 mode: change-log
357 left-margin: 8
358 fill-column: 74
359 version-control: never
360 End:
This page took 0.035963 seconds and 4 git commands to generate.