PR 6615
[external/binutils.git] / binutils / ChangeLog
1 2008-08-09  Alan Modra  <amodra@bigpond.net.au>
2
3         PR 6615
4         * rename.c (smart_rename): Punctuate error messages.
5
6 2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
7             Daniel Jacobowitz  <dan@codesourcery.com>
8             Catherine Moore  <clm@codesourcery.com>
9             Mark Shinwell  <shinwell@codesourcery.com>
10
11         * readelf.c (get_mips_symbol_other): Handle STO_MIPS_PLT and
12         STO_MIPS_PIC.
13         (slurp_rela_relocs, slurp_rel_relocs): Handle MIPS ELF64 here.
14         (dump_relocations, debug_apply_relocations): Don't handle it here.
15         (get_mips_dynamic_type): Handle DT_MIPS_PLTGOT and DT_MIPS_RWPLT.
16         (print_mips_pltgot_entry): New function.
17         (process_mips_specific): Dump the PLT GOT.
18
19 2008-08-08  Alan Modra  <amodra@bigpond.net.au>
20
21         * readelf.c (is_64bit_abs_reloc): Return true for R_MIPS_64.
22
23 2008-08-06  Alan Modra  <amodra@bigpond.net.au>
24
25         PR 6774
26         * objcopy.c (copy_object): Don't setup_bfd_headers when extract_symbol.
27         (setup_section): Don't zero vma and lma when extract_symbol.
28         (copy_section): Discard relocations when extract_symbol.
29         * doc/binutils.texi: Update --extract-symbol description.
30
31 2008-08-04  Alan Modra  <amodra@bigpond.net.au>
32
33         * Makefile.am (POTFILES.in): Set LC_ALL=C.
34         * Makefile.in: Regenerate.
35
36 2008-08-04  Markus Weiss  <weissms@aros.org>
37
38         * readelf.c (get_osabi_name <ELFOSABI_AROS>): Change name.
39
40 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
41
42         * dwarf.c (dwarf_regnames_i386): Remove AVX registers.
43         (dwarf_regnames_x86_64): Likewise.
44
45 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
46
47         * dlltool.c, dwarf.c, objdump.c, readelf.c, resrc.c, resres.c,
48         windmc.c: Silence gcc warnings.
49
50 2008-07-28  Alan Modra  <amodra@bigpond.net.au>
51
52         * readelf.c (print_vma): Typo fix.
53
54 2008-07-28  Alan Modra  <amodra@bigpond.net.au>
55
56         PR 6769
57         * readelf.c (print_dec_vma, print_hex_vma): Delete.
58         (print_vma): Use BFD_VMA_FMT.
59         * size.c (size_number, rprint_number): Likewise.
60
61 2008-07-26  Michael Eager <eager@eagercon.com>
62
63         * readelf.c (display_power_gnu_attribute): Display
64         single-precision hard float.
65
66 2008-07-21  Luis Machado  <luisgpm@br.ibm.com>
67
68         * readelf.c (get_note_type): Handle VSX notes.
69
70 2008-07-15  H.J. Lu  <hongjiu.lu@intel.com>
71
72         * objdump.c (load_debug_section): Initialize section_is_compressed 
73         for gcc 3.4/ia64.
74         * readelf.c (load_debug_section): Likewise.
75
76 2008-07-12  Jie Zhang  <jie.zhang@analog.com>
77
78         Revert
79         2008-07-12  Jie Zhang  <jie.zhang@analog.com>
80         * readelf.c (get_machine_flags): Deal with Blackfin specific
81         flags.
82
83 2008-07-12  Jie Zhang  <jie.zhang@analog.com>
84
85         * readelf.c (get_machine_flags): Deal with Blackfin specific
86         flags.
87
88 2008-07-09  Craig Silverstein  <csilvers@google.com>
89
90         * config.in: Add HAVE_ZLIB_H
91         * configure.in: Add test for libz and zlib.h
92         * configure: Regenerate.
93         * dwarf.c (debug_displays): Add .zdebug_* strings.
94         * dwarf.h (struct dwarf_section): Add fields uncompressed_namd
95         and compressed_name.
96         * objdump.c (load_debug_section): Call
97         bfd_uncompress_section_contents when loading a compressed
98         section.
99         (dump_dwarf_section): Recognize compressed section name.
100         (mach_o_dwarf_sections): Rename as
101         mach_o_uncompressed_dwarf_sections.
102         (mach_o_compressed_dwarf_sections): New variable.
103         (generic_dwarf_section): Rename as
104         generic_uncompressed_dwarf_sections.
105         (generic_compressed_dwarf_sections): New variable.
106         (check_mach_o_dwarf): Save and restore
107         mach_o_compressed_dwarf_sections.
108         * readelf.c: Add #include for config.h and zlib.h
109         (process_section_headers): Recognize compressed section name.
110         (uncompress_section_contents): New function.
111         (load_debug_section): Call uncompress_section_contents when
112         loading a compressed section.
113         (display_debug_section): Recognize compressed section name.
114
115 2008-07-07  Alan Modra  <amodra@bigpond.net.au>
116
117         * objdump.c (find_symbol_for_address): Prefer symbols in current
118         section.
119
120 2008-07-07  Alan Modra  <amodra@bigpond.net.au>
121
122         * ieee.c (write_ieee_debugging_info): Use bfd_make_section_with_flags.
123         * nlmconv.c (main, powerpc_build_stubs): Likewise.
124         * rescoff.c (write_coff_file): Likewise.
125         * resres.c (write_res_file): Likewise.
126         * windmc.c (windmc_write_bin): Likewise.
127
128 2008-06-18  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
129
130         * readelf.c (guess_is_rela): Add EM_CR16_OLD.
131         (dump_relocations): Likewise.
132         (get_machine_name): Likewise.
133         (is_32bit_abs_reloc): Likewise.
134
135 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
136
137         * configure: Regenerate.
138
139 2008-06-12  DJ Delorie  <dj@redhat.com>
140
141         * readelf.c (guess_is_rela): Add EM_M32C_OLD.
142         (dump_relocations): Likewise.
143         (process_section_headers): Likewise.
144         (is_32bit_abs_reloc): Likewise.
145         (is_16bit_abs_reloc): Likewise.
146
147 2008-06-12  Nick Clifton  <nickc@redhat.com>
148
149         PR binutils/6483
150         * objdump.c (dump_bfd): If the -g option found no STABS or IEEE
151         debug information to display, try dumping DWARF information
152         instead.
153         * rddbg.c (read_debugging_info): Add a parameter to suppress the
154         display of a warning message when no debug information is found.
155         * budbg.h (read_debugging_info): Update prototype.
156         * objcopy.c (copy_object): Continue to allow read_debugging_info
157         to produce warning messages.
158         * doc/binutils.texi (--debugging): Document new behaviour of the
159         -g/--debugging option.
160
161 2008-06-10  Ben Elliston  <bje@gnu.org>
162
163         * MAINTAINERS: Remove myself as m68k maintainer.
164
165 2008-05-14  Alan Modra  <amodra@bigpond.net.au>
166
167         * Makefile.in: Regenerate.
168         * doc/Makefile.in: Regenerate.
169
170 2008-05-12  Alan Modra  <amodra@bigpond.net.au>
171
172         * embedspu.sh: Test for presence of ._ea by looking at section
173         table rather than looking at relocs.  Correct toe_addr substitution.
174
175 2008-05-08  Alan Modra  <amodra@bigpond.net.au>
176
177         * embedspu.sh: Take note of R_SPU_PPU32/64 relocs without a symbol,
178         and if present, put image in ".data.speelf".  Put program handle
179         in ".data.spehandle".
180
181 2008-05-01  Nick Clifton  <nickc@redhat.com>
182
183         * readelf.c (print_symbol): Add code to display non-printing
184         characters.
185
186 2008-04-30  John Heidemann  <johnh@isi.edu>
187
188         * doc/binutils.texi (strings): Add "unicode" to the documentation
189         of strings in order to make explicit that it supports this
190         feature.
191
192 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
193
194         * readelf.c (process_program_headers): Correct section in segment
195         display.
196
197 2008-04-28  M Thomas  <mthomas@rhrk.uni-kl.de>
198             Nick Clifton  <nickc@redhat.com>
199
200         PR binutils/6449
201         * objdump.c (slurp_file): Open the file in binary mode.
202         * ar.c: Remove conditional definition of O_BINARY.
203         * bin2.c: Likewise.
204         * rename.c: Likewise.
205         * strings.c: Likewise.
206         * sysdep.h: Add conditional definition of O_BINARY.
207
208 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
209
210         * aclocal.m4: Regenerate.
211         * configure: Regenerate.
212
213 2008-04-16  Jean-Yves Lefort  <jylefort@brutele.be>
214
215         PR binutils/6034
216         * objcopy.c (stuct symlist): Rename to
217         is_specified_symbol_predicate_data.
218         (strip_specific_list): Rename to strip_specific_htab.
219         (strip_unneeded_list): Rename to strip_unneeded_htab.
220         (keep_specific_list):  Rename to keep_specific_htab.
221         (localize_specific_list): Rename to localize_specific_htab.
222         (globalize_specific_list): Rename to globalize_specific_htab.
223         (keepglobal_specific_list): Rename to keepglobal_specific_htab.
224         (weaken_specific_list): Rename to weaken_specific_htab.
225         (eq_string): New function.
226         (create_symbol_htab): New function.
227         (create_symbol_htabs): New function.
228         (add_specific_symbol): Change to use hash tables.
229         (is_specified_symbol_predicate): New function.
230         (is_specified_symbol): Use hash table lookup.
231         (is_strip_section): Update to use new functions and hash tables.
232         (filter_symbols): Likewise.
233         (copy_object): Likewise.
234         (copy_section): Likewise.
235         (strip_main): Likewise.
236         (copy_main): Likewise.
237         (main): Likewise.
238
239 2008-04-14  David S. Miller  <davem@davemloft.net>
240
241         * readelf.c (get_gnu_elf_note_type): Recognize NT_GNU_GOLD_VERSION.
242
243 2008-04-11  Torleif Sandnes  <torleif.sandnes@gmail.com>
244
245         * dwarf.c (display_debug_lines): Rename to
246         display_debug_lines_raw.
247         (display_debug_lines_decoded): New function.  Displays the
248         interpreted contents of a .debug_line section.
249         (display_debug_lines): New function: Selects either a raw dump or
250         a decoded dump (or both) as requested by the user.
251         * dwarf.h (do_debug_lines_decoded): New extern.
252         * readelf.c: Add support for -wL or --debug-dump=decodedline
253         option to display the decoded contents of a .debug_line section.
254         * doc/binutils.texi: Document the new option.
255         * NEWS: Mention the new feature.
256
257 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
258
259         * dwarf.c: Remove trailing whitespace throughout file.
260
261 2008-04-04  Nick Clifton  <nickc@redhat.com>
262
263         * po/sk.po: Updated Slovak translation.
264
265 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
266
267         * dwarf.c (dwarf_regnames_i386): Add AVX registers.
268         (dwarf_regnames_x86_64): Likewise.
269
270 2008-03-27  Cary Coutant <ccoutant@google.com>
271
272         Add support for thin archives.
273         * ar.c (make_thin_archive): New global flag.
274         (map_over_members): Deal with full pathnames in thin archives.
275         (usage, main): Add 'T' option for building thin archives.
276         (replace_members): Pass thin archive flag to ar_emul_append.
277         * arsup.c (ar_open): Initialize new flag.
278         * binemul.c (ar_emul_append): Add new parameter for
279         flattening nested archives.
280         (do_ar_emul_default_append): New function.
281         (ar_emul_default_append): Factored out recursive code.
282         * binutils/binemul.h (ar_emul_default_append): Add new parameter.
283         (struct bin_emulation_xfer_struct): New parameter for ar_append.
284         * dlltool.c (gen_lib_file): Initialize thin archive flag.
285         * emul_aix.c (ar_emul_aix_internal): Add new flatten
286         parameter, currently unimplemented.
287         All callers changed.
288         * objcopy.c (copy_archive): Preserve thin archive flag.
289         * doc/binutils.texi: Update ar documentation.
290         * NEWS: Mention the new feature.
291
292 2008-03-20  H.J. Lu  <hongjiu.lu@intel.com>
293
294         * readelf.c (process_mips_specific): Declare addr_size as int.
295
296 2008-03-20  Richard Sandiford  <rsandifo@nildram.co.uk>
297
298         * readelf.c (print_mips_got_entry): New function.
299         (process_mips_specific): Print GOT information.
300
301 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
302
303         * aclocal.m4: Regenerate.
304         * configure: Likewise.
305         * Makefile.in: Likewise.
306         * doc/Makefile.in: Likewise.
307
308 2008-03-16  Brian Dessent  <brian@dessent.net>
309
310         * rcparse.y (resid): Allow control text to span multiple lines.
311
312 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
313
314         * readelf.c: Use %u throughout when printing sh_link or sh_info,
315         %lu when printing sh_addralign.
316         (process_version_sections): Use identical formats when printing
317         all offset and sh_link fields.
318
319 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
320
321         * Makefile.am: Run "make dep-am".
322         * Makefile.in: Regenerate.
323         * doc/Makefile.in: Regenerate.
324         * configure: Regenerate.
325
326 2008-03-12  Alan Modra  <amodra@bigpond.net.au>
327
328         PR 5900
329         * readelf.c (SECTION_HEADER_INDEX, SECTION_HEADER_NUM): Delete.
330         Remove use throughout file.
331         (SECTION_HEADER): Likewise.
332         (dump_relocations): Don't adjust st_shndx for reserved range.
333         (process_file_header): Mask SHN_XINDEX to values seen in external
334         elf structs.  Simplify valid section index tests.
335         (get_32bit_elf_symbols, get_64bit_elf_symbols): Mask SHN_XINDEX.
336         Map reserved st_shndx to internal form.
337         (process_section_groups): Test that group symbol st_shndx is in
338         range, not just non-zero.  Delete reserved range check.
339         (get_symbol_index_type): Mask "type" to 16 bits when printing PRC,
340         OS or RSV.
341
342 2008-03-09  Paul Brook  <paul@codesourcery.com>
343
344         * readelf.c (arm_attr_tag_VFP_arch): Add "VFPv3-D16".
345
346 2008-03-03  James E. Wilson  <wilson@tuliptree.org>
347
348         * MAINTAINERS: Update my email address.
349
350 2008-03-03  Nick Clifton  <nickc@redhat.com>
351
352         * dwarf.c (decode_location_expression): Handle
353         DW_OP_PGI_omp_thread_num.
354
355 2008-03-01  Alan Modra  <amodra@bigpond.net.au>
356
357         * objdump.c (objdump_print_addr): Initialise "sym".
358
359 2008-02-27  Justin Pryzby  <justinpryzby@users.sourceforge.net>
360             Nick Clifton  <nickc@redhat.com>
361
362         * ar.c (usage): Mention -t command line switch.
363         * doc/binutils.texi (ranlib): Document -t command line switch.
364
365 2008-02-26  Nick Clifton  <nickc@redhat.com>
366
367         * objdump.c (objdump_print_addr): If displaying file offsets, show
368         the offset even if there are no symbols available.
369         (dump_section): Display nothing if none of the section is going to
370         be dumped.  Display the file offset, if requested, of the location
371         from where the dump starts.
372         * doc/binutils.texi (objdump): Mention that dumping via the -s
373         switch is also affected by the -F option.
374
375 2008-02-26  Nick Clifton  <nickc@redhat.com>
376
377         Re-apply this patch which was accidentally deleted:
378         2006-05-16  Carlos O'Donell  <carlos@codesourcery.com>
379
380         * doc/binutils.texi: Use "Binutils Index" for index name.
381
382 2008-02-22  Nick Clifton  <nickc@redhat.com>
383
384         * objdump.c (display_file_offsets): New variable.
385         (long_options): Add -F/--file-offsets.
386         (objdump_print_addr_with_sym): If displaying file offsets, print
387         the offset of the given address.
388         (disassemble_bytes): If displaying file offsets, tell the user how
389         many zeroes are skipped and the file offset of the point where
390         dumping resumes.
391         (disassemble_section): Only display the name of the section if
392         data is going to be dumped from it.
393         (main): Handle new option.  Produce error messages if the start or
394         stop addresses do not make sense.
395         * doc/binutils.texi: Document the new feature.
396         * NEWS: Mention the new feature.
397
398 2008-02-15  Chu Li  <chul@cn.fujitsu.com>
399             Nick Clifton  <nickc@redhat.com>
400
401         PR binutils/5713
402         * strings.c (integer_arg): Delete function.
403         (string_min): Initialise to 4.
404         (main): Use strtoul to parse integer arguments.
405         Move check for an invalid string length to after all the arguments
406         have been parsed.
407         (usage): Use indentation to indicate that -<n> is a another form
408         of the --bytes= command line option.
409
410 2008-02-12  Nick Clifton  <nickc@redhat.com>
411
412         * dlltool.c (mcore_elf_cache_filename): Add a const qualifier to
413         the argument.
414         (scan_obj_filename): Do not drop the const qualifier when calling
415         mcore_elf_cache_filename.
416         (struct fname_cache): Add const qualifier to filename field.
417
418 2008-02-08  H.J. Lu  <hongjiu.lu@intel.com>
419
420         PR binutils/5713
421         * strings.c (main): Set string_min to 4 if it is <= 0.
422
423 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
424
425         * objdump.c (main): Don't pass unadorned NULL to concat.
426
427 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
428
429         PR 5715
430         * configure: Regenerated.
431
432 2008-02-03  Adam Nemet  <anemet@caviumnetworks.com>
433
434         * readelf.c (get_machine_flags): Handle Octeon.
435
436 2008-01-30  Tristan Gingold  <gingold@adacore.com>
437
438         * readelf.c (dump_relocations): Decode OpenVMS-specific sections.
439         (get_ia64_dynamic_type): Decode OpenVMS-specific tags.
440         (get_dynamic_type): Handle IA64-specific tags.
441         (get_ia64_section_type_name): Handle OpenVMS-specific sections.
442         (get_section_type_name): Handle OS-specific sections (and
443         particularly IA64 OpenVMS one).
444         (get_elf_section_flags): Makes flags static.  Add entries for IA64 and
445         decode them.
446
447 2008-01-29  Nick Clifton  <nickc@redhat.com>
448
449         * dwarf.c (print_dwarf_vma): New function.  Display the value of a
450         dwarf_vma type at a specified precision.  Use mingw field type
451         specifier if necessary.
452         (display_debug_loc): Use dwarf_vma type for begin and end values.
453         Use print_dwarf_vma to display their values.  Use byte_get_signed
454         in order to correctly detect the -1 escape value.
455         (display_debug_aranges): Likewise.
456         (display_debug_ranges): Likewise.
457
458 2008-01-29  Alan Modra  <amodra@bigpond.net.au>
459
460         * dwarf.c (display_debug_loc): Correct test for base address
461         entry when 64-bit host dumping 32-bit object.
462
463 2008-01-29  Alan Modra  <amodra@bigpond.net.au>
464
465         * MAINTAINERS: Remove myself as ix86 maintainer.  Add for SPU.
466
467 2008-01-28  Nick Clifton  <nickc@redhat.com>
468
469         PR binutils/5529
470         * rclex.c (yylex): Also allow the hypen character.
471
472 2008-01-28  H.J. Lu  <hongjiu.lu@intel.com>
473
474         * dwarf.c: Include "elf/common.h".
475         (eh_addr_size): Changed to int.
476         (dwarf_regnames_i386): New.
477         (dwarf_regnames_x86_64): Likewise.
478         (dwarf_regnames): Likewise.
479         (dwarf_regnames_count): Likewise.
480         (init_dwarf_regnames): Likewise.
481         (regname): Likewise.
482         (frame_display_row): Properly support different address size.
483         Call regname to get register name.
484         (display_debug_frames): Call regname to get register name.
485         Display DW_CFA_def_cfa_register as DW_CFA_def_cfa_register
486         instead of DW_CFA_def_cfa_reg.
487
488         * dwarf.h (init_dwarf_regnames): New.
489
490         * objdump.c: Include "elf-bfd.h".
491         (dump_dwarf): Call init_dwarf_regnames on ELF input.
492
493         * readelf.c (guess_is_rela): Change argument to int.
494         (parse_args): Remove the undocumented upper case options for
495         -wX.
496         (process_file_header): Call init_dwarf_regnames.
497
498 2008-01-25  DJ Delorie  <dj@redhat.com>
499
500         * readelf.c (process_section_headers): Add m16c handler.
501         (is_16bit_abs_reloc): Recognize R_M32C_16.
502
503 2008-01-25  Kai Tietz  <kai.tietz@onevision.com>
504
505         * prdbg.c: Correct formatter style use.
506         * readelf.c: Likewise.
507         * strings.c: Likewise.
508
509 2008-01-25  Nick Clifton  <nickc@redhat.com>
510
511         * po/ru.po: Updated Russian translation.
512
513 2008-01-17  H.J. Lu  <hjl.tools@gmail.com>
514
515         * MAINTAINERS: Update my email address.
516
517 2008-01-14  Nick Clifton  <nickc@redhat.com>
518
519         * dwarf.c (process_debug_info): Include the CU offset and corrupt
520         version value when reporting unrecognised DWARF version numbers.
521         (load_debug_info): Remember a failed attempt to load and parse the
522         .debug_info section and do not repeat such attempts.
523         (display_debug_lines): Check the return value from load_debug_info
524         and return whilst displaying a warning message if the load failed.
525         (display_debug_loc): Likewise.
526         (display_debug_ranges): Likewise.
527         (DEBUG_INFO_UNAVAILABLE): Value stored in num_debug_info_entries
528         when the .debug_info section could not be loaded/parsed.
529         (process_debug_info): Display the length of the compilation unit
530         in hex, so that it corresponds with the offsets that will follow.
531         Tell the user if the length was 32-bit or 64-bit.
532         If a DIE abbreviation could not be found, tell the user the offset
533         of the DIE.
534         (free_debug_memory): Do not attempt to free any entries in the
535         debug_information array if num_debug_info_entries is set to
536         DEBUG_INFO_UNAVAILABLE.
537
538 2008-01-10  Andreas Schwab  <schwab@suse.de>
539
540         * readelf.c (is_64bit_abs_reloc): Handle R_S390_64.
541
542 2008-01-09  Jakub Zawadzki  <darkjames@darkjames.ath.cx>
543
544         PR binutils/55326
545         * bucomm.c (list_supported_architectures): Free architecture list
546         after use.
547         * windres.c (set_endianess): Likewise.
548         * windmc.c (set_endianess): Likewise.
549
550 2008-01-08  Kai Tietz  <kai.tietz@onevision.com>
551
552         PR binutils/5529
553         * binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post
554         characters for name tokens.
555
556 2008-01-04  Greg McGary  <greg@mcgary.org>
557
558         * prdbg.c (print_vma): Print as long long, if host supports it.
559
560 2008-01-03  Nick Clifton  <nickc@redhat.com>
561
562         * dwarf.c (read_and_display_attr_value): Prefix values that are
563         displayed in hexadecimal with 0x.
564         For the DW_AT_import attribute display the abbreviation number and
565         tag of the imported DIE.
566         (process_debug_info): Warn about lengths that reserved by the
567         DWARF3 specification.
568         Provide more information when corrupted DIEs are detected.
569         Warn if DIE corruption makes the sibling level negative.
570
571 For older changes see ChangeLog-2007
572 \f
573 Local Variables:
574 mode: change-log
575 left-margin: 8
576 fill-column: 74
577 version-control: never
578 End: