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