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