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