* readelf.c (process_program_headers): Correct section in segment
[platform/upstream/binutils.git] / binutils / ChangeLog
1 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
2
3         * readelf.c (process_program_headers): Correct section in segment
4         display.
5
6 2008-04-28  M Thomas  <mthomas@rhrk.uni-kl.de>
7             Nick Clifton  <nickc@redhat.com>
8
9         PR binutils/6449
10         * objdump.c (slurp_file): Open the file in binary mode.
11         * ar.c: Remove conditional definition of O_BINARY.
12         * bin2.c: Likewise.
13         * rename.c: Likewise.
14         * strings.c: Likewise.
15         * sysdep.h: Add conditional definition of O_BINARY.
16
17 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
18
19         * aclocal.m4: Regenerate.
20         * configure: Regenerate.
21
22 2008-04-16  Jean-Yves Lefort  <jylefort@brutele.be>
23
24         PR binutils/6034
25         * objcopy.c (stuct symlist): Rename to
26         is_specified_symbol_predicate_data.
27         (strip_specific_list): Rename to strip_specific_htab.
28         (strip_unneeded_list): Rename to strip_unneeded_htab.
29         (keep_specific_list):  Rename to keep_specific_htab.
30         (localize_specific_list): Rename to localize_specific_htab.
31         (globalize_specific_list): Rename to globalize_specific_htab.
32         (keepglobal_specific_list): Rename to keepglobal_specific_htab.
33         (weaken_specific_list): Rename to weaken_specific_htab.
34         (eq_string): New function.
35         (create_symbol_htab): New function.
36         (create_symbol_htabs): New function.
37         (add_specific_symbol): Change to use hash tables.
38         (is_specified_symbol_predicate): New function.
39         (is_specified_symbol): Use hash table lookup.
40         (is_strip_section): Update to use new functions and hash tables.
41         (filter_symbols): Likewise.
42         (copy_object): Likewise.
43         (copy_section): Likewise.
44         (strip_main): Likewise.
45         (copy_main): Likewise.
46         (main): Likewise.
47
48 2008-04-14  David S. Miller  <davem@davemloft.net>
49
50         * readelf.c (get_gnu_elf_note_type): Recognize NT_GNU_GOLD_VERSION.
51
52 2008-04-11  Torleif Sandnes  <torleif.sandnes@gmail.com>
53
54         * dwarf.c (display_debug_lines): Rename to
55         display_debug_lines_raw.
56         (display_debug_lines_decoded): New function.  Displays the
57         interpreted contents of a .debug_line section.
58         (display_debug_lines): New function: Selects either a raw dump or
59         a decoded dump (or both) as requested by the user.
60         * dwarf.h (do_debug_lines_decoded): New extern.
61         * readelf.c: Add support for -wL or --debug-dump=decodedline
62         option to display the decoded contents of a .debug_line section.
63         * doc/binutils.texi: Document the new option.
64         * NEWS: Mention the new feature.
65
66 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
67
68         * dwarf.c: Remove trailing whitespace throughout file.
69
70 2008-04-04  Nick Clifton  <nickc@redhat.com>
71
72         * po/sk.po: Updated Slovak translation.
73
74 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
75
76         * dwarf.c (dwarf_regnames_i386): Add AVX registers.
77         (dwarf_regnames_x86_64): Likewise.
78
79 2008-03-27  Cary Coutant <ccoutant@google.com>
80
81         Add support for thin archives.
82         * ar.c (make_thin_archive): New global flag.
83         (map_over_members): Deal with full pathnames in thin archives.
84         (usage, main): Add 'T' option for building thin archives.
85         (replace_members): Pass thin archive flag to ar_emul_append.
86         * arsup.c (ar_open): Initialize new flag.
87         * binemul.c (ar_emul_append): Add new parameter for
88         flattening nested archives.
89         (do_ar_emul_default_append): New function.
90         (ar_emul_default_append): Factored out recursive code.
91         * binutils/binemul.h (ar_emul_default_append): Add new parameter.
92         (struct bin_emulation_xfer_struct): New parameter for ar_append.
93         * dlltool.c (gen_lib_file): Initialize thin archive flag.
94         * emul_aix.c (ar_emul_aix_internal): Add new flatten
95         parameter, currently unimplemented.
96         All callers changed.
97         * objcopy.c (copy_archive): Preserve thin archive flag.
98         * doc/binutils.texi: Update ar documentation.
99         * NEWS: Mention the new feature.
100
101 2008-03-20  H.J. Lu  <hongjiu.lu@intel.com>
102
103         * readelf.c (process_mips_specific): Declare addr_size as int.
104
105 2008-03-20  Richard Sandiford  <rsandifo@nildram.co.uk>
106
107         * readelf.c (print_mips_got_entry): New function.
108         (process_mips_specific): Print GOT information.
109
110 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111
112         * aclocal.m4: Regenerate.
113         * configure: Likewise.
114         * Makefile.in: Likewise.
115         * doc/Makefile.in: Likewise.
116
117 2008-03-16  Brian Dessent  <brian@dessent.net>
118
119         * rcparse.y (resid): Allow control text to span multiple lines.
120
121 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
122
123         * readelf.c: Use %u throughout when printing sh_link or sh_info,
124         %lu when printing sh_addralign.
125         (process_version_sections): Use identical formats when printing
126         all offset and sh_link fields.
127
128 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
129
130         * Makefile.am: Run "make dep-am".
131         * Makefile.in: Regenerate.
132         * doc/Makefile.in: Regenerate.
133         * configure: Regenerate.
134
135 2008-03-12  Alan Modra  <amodra@bigpond.net.au>
136
137         PR 5900
138         * readelf.c (SECTION_HEADER_INDEX, SECTION_HEADER_NUM): Delete.
139         Remove use throughout file.
140         (SECTION_HEADER): Likewise.
141         (dump_relocations): Don't adjust st_shndx for reserved range.
142         (process_file_header): Mask SHN_XINDEX to values seen in external
143         elf structs.  Simplify valid section index tests.
144         (get_32bit_elf_symbols, get_64bit_elf_symbols): Mask SHN_XINDEX.
145         Map reserved st_shndx to internal form.
146         (process_section_groups): Test that group symbol st_shndx is in
147         range, not just non-zero.  Delete reserved range check.
148         (get_symbol_index_type): Mask "type" to 16 bits when printing PRC,
149         OS or RSV.
150
151 2008-03-09  Paul Brook  <paul@codesourcery.com>
152
153         * readelf.c (arm_attr_tag_VFP_arch): Add "VFPv3-D16".
154
155 2008-03-03  James E. Wilson  <wilson@tuliptree.org>
156
157         * MAINTAINERS: Update my email address.
158
159 2008-03-03  Nick Clifton  <nickc@redhat.com>
160
161         * dwarf.c (decode_location_expression): Handle
162         DW_OP_PGI_omp_thread_num.
163
164 2008-03-01  Alan Modra  <amodra@bigpond.net.au>
165
166         * objdump.c (objdump_print_addr): Initialise "sym".
167
168 2008-02-27  Justin Pryzby  <justinpryzby@users.sourceforge.net>
169             Nick Clifton  <nickc@redhat.com>
170
171         * ar.c (usage): Mention -t command line switch.
172         * doc/binutils.texi (ranlib): Document -t command line switch.
173
174 2008-02-26  Nick Clifton  <nickc@redhat.com>
175
176         * objdump.c (objdump_print_addr): If displaying file offsets, show
177         the offset even if there are no symbols available.
178         (dump_section): Display nothing if none of the section is going to
179         be dumped.  Display the file offset, if requested, of the location
180         from where the dump starts.
181         * doc/binutils.texi (objdump): Mention that dumping via the -s
182         switch is also affected by the -F option.
183
184 2008-02-26  Nick Clifton  <nickc@redhat.com>
185
186         Re-apply this patch which was accidentally deleted:
187         2006-05-16  Carlos O'Donell  <carlos@codesourcery.com>
188
189         * doc/binutils.texi: Use "Binutils Index" for index name.
190
191 2008-02-22  Nick Clifton  <nickc@redhat.com>
192
193         * objdump.c (display_file_offsets): New variable.
194         (long_options): Add -F/--file-offsets.
195         (objdump_print_addr_with_sym): If displaying file offsets, print
196         the offset of the given address.
197         (disassemble_bytes): If displaying file offsets, tell the user how
198         many zeroes are skipped and the file offset of the point where
199         dumping resumes.
200         (disassemble_section): Only display the name of the section if
201         data is going to be dumped from it.
202         (main): Handle new option.  Produce error messages if the start or
203         stop addresses do not make sense.
204         * doc/binutils.texi: Document the new feature.
205         * NEWS: Mention the new feature.
206
207 2008-02-15  Chu Li  <chul@cn.fujitsu.com>
208             Nick Clifton  <nickc@redhat.com>
209
210         PR binutils/5713
211         * strings.c (integer_arg): Delete function.
212         (string_min): Initialise to 4.
213         (main): Use strtoul to parse integer arguments.
214         Move check for an invalid string length to after all the arguments
215         have been parsed.
216         (usage): Use indentation to indicate that -<n> is a another form
217         of the --bytes= command line option.
218
219 2008-02-12  Nick Clifton  <nickc@redhat.com>
220
221         * dlltool.c (mcore_elf_cache_filename): Add a const qualifier to
222         the argument.
223         (scan_obj_filename): Do not drop the const qualifier when calling
224         mcore_elf_cache_filename.
225         (struct fname_cache): Add const qualifier to filename field.
226
227 2008-02-08  H.J. Lu  <hongjiu.lu@intel.com>
228
229         PR binutils/5713
230         * strings.c (main): Set string_min to 4 if it is <= 0.
231
232 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
233
234         * objdump.c (main): Don't pass unadorned NULL to concat.
235
236 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
237
238         PR 5715
239         * configure: Regenerated.
240
241 2008-02-03  Adam Nemet  <anemet@caviumnetworks.com>
242
243         * readelf.c (get_machine_flags): Handle Octeon.
244
245 2008-01-30  Tristan Gingold  <gingold@adacore.com>
246
247         * readelf.c (dump_relocations): Decode OpenVMS-specific sections.
248         (get_ia64_dynamic_type): Decode OpenVMS-specific tags.
249         (get_dynamic_type): Handle IA64-specific tags.
250         (get_ia64_section_type_name): Handle OpenVMS-specific sections.
251         (get_section_type_name): Handle OS-specific sections (and
252         particularly IA64 OpenVMS one).
253         (get_elf_section_flags): Makes flags static.  Add entries for IA64 and
254         decode them.
255
256 2008-01-29  Nick Clifton  <nickc@redhat.com>
257
258         * dwarf.c (print_dwarf_vma): New function.  Display the value of a
259         dwarf_vma type at a specified precision.  Use mingw field type
260         specifier if necessary.
261         (display_debug_loc): Use dwarf_vma type for begin and end values.
262         Use print_dwarf_vma to display their values.  Use byte_get_signed
263         in order to correctly detect the -1 escape value.
264         (display_debug_aranges): Likewise.
265         (display_debug_ranges): Likewise.
266
267 2008-01-29  Alan Modra  <amodra@bigpond.net.au>
268
269         * dwarf.c (display_debug_loc): Correct test for base address
270         entry when 64-bit host dumping 32-bit object.
271
272 2008-01-29  Alan Modra  <amodra@bigpond.net.au>
273
274         * MAINTAINERS: Remove myself as ix86 maintainer.  Add for SPU.
275
276 2008-01-28  Nick Clifton  <nickc@redhat.com>
277
278         PR binutils/5529
279         * rclex.c (yylex): Also allow the hypen character.
280
281 2008-01-28  H.J. Lu  <hongjiu.lu@intel.com>
282
283         * dwarf.c: Include "elf/common.h".
284         (eh_addr_size): Changed to int.
285         (dwarf_regnames_i386): New.
286         (dwarf_regnames_x86_64): Likewise.
287         (dwarf_regnames): Likewise.
288         (dwarf_regnames_count): Likewise.
289         (init_dwarf_regnames): Likewise.
290         (regname): Likewise.
291         (frame_display_row): Properly support different address size.
292         Call regname to get register name.
293         (display_debug_frames): Call regname to get register name.
294         Display DW_CFA_def_cfa_register as DW_CFA_def_cfa_register
295         instead of DW_CFA_def_cfa_reg.
296
297         * dwarf.h (init_dwarf_regnames): New.
298
299         * objdump.c: Include "elf-bfd.h".
300         (dump_dwarf): Call init_dwarf_regnames on ELF input.
301
302         * readelf.c (guess_is_rela): Change argument to int.
303         (parse_args): Remove the undocumented upper case options for
304         -wX.
305         (process_file_header): Call init_dwarf_regnames.
306
307 2008-01-25  DJ Delorie  <dj@redhat.com>
308
309         * readelf.c (process_section_headers): Add m16c handler.
310         (is_16bit_abs_reloc): Recognize R_M32C_16.
311
312 2008-01-25  Kai Tietz  <kai.tietz@onevision.com>
313
314         * prdbg.c: Correct formatter style use.
315         * readelf.c: Likewise.
316         * strings.c: Likewise.
317
318 2008-01-25  Nick Clifton  <nickc@redhat.com>
319
320         * po/ru.po: Updated Russian translation.
321
322 2008-01-17  H.J. Lu  <hjl.tools@gmail.com>
323
324         * MAINTAINERS: Update my email address.
325
326 2008-01-14  Nick Clifton  <nickc@redhat.com>
327
328         * dwarf.c (process_debug_info): Include the CU offset and corrupt
329         version value when reporting unrecognised DWARF version numbers.
330         (load_debug_info): Remember a failed attempt to load and parse the
331         .debug_info section and do not repeat such attempts.
332         (display_debug_lines): Check the return value from load_debug_info
333         and return whilst displaying a warning message if the load failed.
334         (display_debug_loc): Likewise.
335         (display_debug_ranges): Likewise.
336         (DEBUG_INFO_UNAVAILABLE): Value stored in num_debug_info_entries
337         when the .debug_info section could not be loaded/parsed.
338         (process_debug_info): Display the length of the compilation unit
339         in hex, so that it corresponds with the offsets that will follow.
340         Tell the user if the length was 32-bit or 64-bit.
341         If a DIE abbreviation could not be found, tell the user the offset
342         of the DIE.
343         (free_debug_memory): Do not attempt to free any entries in the
344         debug_information array if num_debug_info_entries is set to
345         DEBUG_INFO_UNAVAILABLE.
346
347 2008-01-10  Andreas Schwab  <schwab@suse.de>
348
349         * readelf.c (is_64bit_abs_reloc): Handle R_S390_64.
350
351 2008-01-09  Jakub Zawadzki  <darkjames@darkjames.ath.cx>
352
353         PR binutils/55326
354         * bucomm.c (list_supported_architectures): Free architecture list
355         after use.
356         * windres.c (set_endianess): Likewise.
357         * windmc.c (set_endianess): Likewise.
358
359 2008-01-08  Kai Tietz  <kai.tietz@onevision.com>
360
361         PR binutils/5529
362         * binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post
363         characters for name tokens.
364
365 2008-01-04  Greg McGary  <greg@mcgary.org>
366
367         * prdbg.c (print_vma): Print as long long, if host supports it.
368
369 2008-01-03  Nick Clifton  <nickc@redhat.com>
370
371         * dwarf.c (read_and_display_attr_value): Prefix values that are
372         displayed in hexadecimal with 0x.
373         For the DW_AT_import attribute display the abbreviation number and
374         tag of the imported DIE.
375         (process_debug_info): Warn about lengths that reserved by the
376         DWARF3 specification.
377         Provide more information when corrupted DIEs are detected.
378         Warn if DIE corruption makes the sibling level negative.
379
380 For older changes see ChangeLog-2007
381 \f
382 Local Variables:
383 mode: change-log
384 left-margin: 8
385 fill-column: 74
386 version-control: never
387 End: