2009-05-25 Tristan Gingold <gingold@adacore.com>
[platform/upstream/binutils.git] / binutils / ChangeLog
1 2009-05-25  Tristan Gingold  <gingold@adacore.com>
2
3         * makefile.vms-in: Fix CFLAGS, add addr2line.exe target.
4
5         * configure.com: Fix it: handle alloca and define TARGET in config.h.
6
7 2009-05-22  Alan Modra  <amodra@bigpond.net.au>
8
9         * Makefile.am: Run "make dep-am".
10         * Makefile.in: Regenerate.
11
12 2009-05-12  Alan Modra  <amodra@bigpond.net.au>
13
14         * objcopy.c (set_long_section_mode): Check input_bfd is coff
15         before accessing coff specific fields of bfd.
16
17 2009-05-09  Dave Korn  <dave.korn.cygwin@gmail.com>
18
19         * MAINTAINERS:  Add myself as PE/COFF co-maintainer.
20
21 2009-05-08  Kai Tietz  <kai.tietz@onevision.com>
22
23         * winduni.c (iconv_onechar): Only define when HAVE_ICONV
24         is defined, but not when __CYGWIN__ or _WIN32 are defined.
25         See wind_iconv_cp for call logic of this local funtion.
26
27 2009-05-05  Guillaume Duhamel  <guillaume.duhamel@gmail.com>
28
29         PR 10109
30         * winduni.c: Replace test of HAVE_ICONV_H with a test of
31         HAVE_ICONV.
32         (iconv_onechar): Use ICONV_CONST instead of "const".
33         (wind_MultiByteToWideChar): Initialise local strings.
34
35 2009-04-30  Nick Clifton  <nickc@redhat.com>
36
37         * readelf.c (dump_relocations): Display a relocation against an
38         ifunc symbol as if it were a function invocation.
39         (get_symbol_type): Handle STT_GNU_IFUNC.
40
41 2009-04-29  Anthony Green  <green@moxielogic.com>
42
43         * NEWS: Tweak verilog support description.
44
45 2009-04-29  Alan Modra  <amodra@bigpond.net.au>
46             Denis Scherbakov <denis_scherbakov@yahoo.com>
47
48         * readelf.c (slurp_ia64_unwind_table): Correct 64-bit unwind table
49         read, and merge with 32-bit case.
50
51 2009-04-27  Anthony Green  <green@moxielogic.com>
52
53         * NEWS: Mention verilog support added to bfd.
54
55 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
56
57         * objcopy.c (copy_object): Copy pe_opthdr before changing PE
58         parameters.
59
60 2009-04-24  Cary Coutant  <ccoutant@google.com>
61
62         * dwarf.c (process_extended_line_op): Add DW_LNE_set_discriminator.
63         Add missing newlines to HP extensions.
64
65 2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>
66
67         * objcopy.c (set_pe_subsystem): Replace efi-rom with sal-rtd.
68         * doc/binutils.texi: Likewise.
69
70 2009-04-17  H.J. Lu  <hongjiu.lu@intel.com>
71
72         PR binutils/10074
73         * objcopy.c: Include coff/i386.h and coff/pe.h.
74         (pe_file_alignment): New.
75         (pe_heap_commit): Likewise.
76         (pe_heap_reserve): Likewise.
77         (pe_image_base): Likewise.
78         (pe_section_alignment): Likewise.
79         (pe_stack_commit): Likewise.
80         (pe_stack_reserve): Likewise.
81         (pe_subsystem): Likewise.
82         (pe_major_subsystem_version): Likewise.
83         (pe_minor_subsystem_version): Likewise.
84         (set_pe_subsystem): Likewise.
85         (convert_efi_target): Likewise.
86         (command_line_switch): Add OPTION_FILE_ALIGNMENT,
87         OPTION_HEAP, OPTION_IMAGE_BASE, OPTION_SECTION_ALIGNMENT,
88         OPTION_STACK and OPTION_SUBSYSTEM.
89         (copy_options): Likewise.
90         (copy_usage): Add --file-alignment, --heap, --image-base,
91         --section-alignment, --stack and --subsystem.
92         (copy_object): Set up PE parameters.
93         (copy_main): Process Add OPTION_FILE_ALIGNMENT,
94         OPTION_HEAP, OPTION_IMAGE_BASE, OPTION_SECTION_ALIGNMENT,
95         OPTION_STACK and OPTION_SUBSYSTEM.   Convert EFI target to
96         PEI target.
97
98         * NEWS: Mention --file-alignment, --heap, --image-base,
99         --section-alignment, --stack and --subsystem command line
100         options for objcopy.
101
102         * doc/binutils.texi: Document --file-alignment, --heap,
103         --image-base, --section-alignment, --stack and --subsystem
104         command line options for objcopy.
105
106 2009-04-15  Anthony Green  <green@moxielogic.com>
107
108         * MAINTAINERS: Add myself as Moxie port maintainer.
109
110 2009-04-14  Dave Korn  <dave.korn.cygwin@gmail.com>
111
112         * objcopy.c (enum long_section_name_handling):  New enum type.
113         (enum command_line_switch):  Add OPTION_LONG_SECTION_NAMES.
114         (copy_options[]):  Add entry for --long-section-names option.
115         (copy_usage):  Document it.
116         (set_long_section_mode):  New subroutine.
117         (copy_file):  Call it.
118         (copy_main):  Accept OPTION_LONG_SECTION_NAMES and parse arg.
119         * doc/binutils.texi:  Update objcopy documentation with details
120         of new option.
121
122 2009-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
123
124         * dlltool.c (set_dll_name_from_def):  Accept new second arg that
125         indicates if we are building DLL or EXE, and use it to add a
126         default suffix to the output filename when none is already present.
127         (def_name):  Indicate we are building an EXE when calling it.
128         (def_library):  Indicate we are building a DLL when calling it.
129
130 2009-04-01  Jari Aalto  <jari.aalto@cante.net>
131
132         PR 9972
133         * doc/binutils.texi (strings): Document the -V alias for the
134         --version option.
135         * strings.c (usage): Likewise.
136
137 2009-03-31  Nick Clifton  <nickc@redhat.com>
138
139         PR 9992
140         * configure.in: Import Solaris specific largefile test from
141         bfd/configure.in.
142         * configure: Regenerate.
143
144 2009-03-30  Richard Sandiford  <rdsandiford@googlemail.com>
145
146         * MAINTAINERS: Add self.
147
148 2009-03-27  Nick Clifton  <nickc@redhat.com>
149
150         * dwarf.c (display_debug_ranges): Add the base address to the
151         displayed values for 'Begin' and 'End'. 
152
153 2009-03-25  Ryan Mansfield  <rmansfield@qnx.com>
154
155         * readelf.c (process_file_header): Don't report a corrupt string
156         table index if it is zero.
157
158 2009-03-19  H.J. Lu  <hongjiu.lu@intel.com>
159
160         * dwarf.c (dwarf_regnames): Moved before frame_need_space.
161         (dwarf_regnames_count): Likewise.
162         (frame_need_space): Return int.
163         (display_debug_frames): Check invalid registers.
164
165 2009-03-19  H.J. Lu  <hongjiu.lu@intel.com>
166
167         * readelf.c (debug_apply_relocations): Check relocations
168         against STT_SECTION symbol.
169
170 2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>
171
172         * readelf.c (debug_apply_relocations): Allow relocations
173         against function symbols.
174
175 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
176
177         * sysdep.h: Include alloca-conf.h instead of config.h and remove
178         existing #if's handling alloca.
179         * Makefile.am: Run "make dep-am".
180         * Makefile.in: Regenerate.
181
182 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
183
184         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
185         * configure.in: Likewise.
186         * configure: Regenerate.
187
188 2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>
189
190         PR binutils/9945
191         * objcopy.c (copy_object): Clear HAS_RELOC when stripping all.
192
193 2009-03-11  Chris Demetriou  <cgd@google.com>
194
195         * ar.c (deterministic): New global variable.
196         (main): Recognize new 'D' option, which enables 'deterministic mode'.
197         (usage): Document new 'D' option.
198         (write_archive): Set BFD_DETERMINISTIC_OUTPUT in output archive's
199         flags if deterministic mode was requested.
200         * doc/binutils.texi (ar): Document deterministic mode ('D' option).
201
202 2009-03-09  H.J. Lu  <hongjiu.lu@intel.com>
203
204         PR binutils/9933
205         * objcopy.c (filter_symbols): Properly handle common symbols
206         in relocatable file.
207
208 2009-03-06  Nick Clifton  <nickc@redhat.com>
209
210         * po/es.po: Updated Spanish translation.
211
212 2009-03-05  Nick Clifton  <nickc@redhat.com>
213
214         * objdump.c (disassemble_section): If the computed next offset is
215         not beyond the current offset then just continue to the end.
216
217 2009-03-04  Tristan Gingold  <gingold@adacore.com>
218
219         * MAINTAINERS: Add myself as VMS maintainer.
220
221 2009-03-03  Nick Clifton  <nickc@redhat.com>
222
223         * readelf.c: Update formatting.
224
225 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
226
227         * Makefile.am: Run "make dep-am".
228         * Makefile.in: Regenerate.
229
230 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
231
232         * objdump.c (disassemble_section): Mask address before sign extending.
233
234 2009-03-02  Sebastian Biallas  <sb@biallas.net>
235
236         * ieee.c (parse_ieee_ty): Add support for undocumented 'v' type.
237         (parse_ieee_bb): Set the filename if it has not already been
238         discovered.
239
240 2009-03-02  Cary Coutant  <ccoutant@google.com>
241
242         * readelf.c (adjust_relative_path): New function.
243         (struct archive_info): New type.
244         (setup_archive): New function.
245         (release_archive): New function.
246         (setup_nested_archive): New function.
247         (get_archive_member_name): New function.
248         (get_archive_member_name_at): New function.
249         (make_qualified_name): New function.
250         (process_archive): Factor out code for reading archive index and
251         long filename table to setup_archive.  Add support for thin archives.
252
253 2009-03-02  Nick Clifton  <nickc@redhat.com>
254
255         * po/sk.po: Updated Slovak translation.
256
257 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
258
259         * configure: Regenerate.
260
261 2009-02-23  Cary Coutant <ccoutant@google.com>
262
263         * objdump.c (load_specific_debug_section): New function, from
264         load_debug_section.
265         (load_debug_section): Use load_specific_debug_section.
266         (dump_dwarf_section): Likewise.
267
268 2009-02-23  Cary Coutant <ccoutant@google.com>
269
270         * readelf.c (parse_args): Select all sections explicitly for -w.
271
272 2009-02-09  Kai Tietz  <kai.tietz@onevision.com>
273
274         * windres.c (set_endianess): Copy name without leading '-'.
275
276 2009-02-09  Tristan Gingold  <gingold@adacore.com>
277
278         * NEWS: Mention feature match between objdump and readelf for dumping
279         dwarf info.
280
281         * doc/binutils.texi (objdump): Document -W/--dwarf improvments to
282         objdump.
283
284         * objdump.c (usage): Update documentation for -W/--dwarf.
285         (enum option_values): Add OPTION_DWARF.
286         (long_options): --dwarf can accept arguments.
287         (dump_dwarf_section): Also check enabled field.
288         (main): Option -W can accept arguments, code moved to
289         dwarf.c and call dwarf_select_sections_all instead.
290         * readelf.c (process_section_headers): Remove do_debug_lines_decoded.
291         (parse_args): Move code to...
292         * dwarf.c (dwarf_select_sections_by_letters,
293         dwarf_select_sections_by_names): : ...here (new functions).
294         (do_debug_lines_decoded): Remove and replaced by ...
295         (FLAG_DEBUG_LINES_RAW, FLAG_DEBUG_LINES_DECODED): ... new macros.
296         (display_debug_lines): Adjust for previous change.
297         (dwarf_select_sections_all): New function.
298         (debug_displays): Add initializer for enabled field.
299         * dwarf.h (do_debug_lines_decoded): Remove.
300         Add prototypes for the new functions.
301         (struct dwarf_section_display): Add enabled field.
302
303 2009-02-06  Nick Clifton  <nickc@redhat.com>
304
305         * po/vi.po: Updated Vietnamese translation.
306
307 2009-02-03  Sandip Matte  <sandip@rmicorp.com>
308
309         * readelf.c (get_machine_flags): Handle E_MIPS_MACH_XLR.
310
311 2009-02-03  H.J. Lu  <hongjiu.lu@intel.com>
312
313         * NEWS: Move --as-needed change to ...
314         * ../ld/NEWS: Here.
315
316 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
317
318         * configure.in: AC_SUBST pdfdir.
319         * Makefile.am: Add install-pdf, install-pdf-am,
320         and install-pdf-recursive targets.
321         * doc/Makefile.am: Define pdf__strip_dir. Add
322         install-pdf and install-pdf-am targets.
323         * po/Make-in: Add install-pdf target.
324         * configure: Regenerate.
325         * Makefile.in: Regenerate.
326         * doc/Makefile.in: Regenerate.
327
328 2009-02-03  H.J. Lu  <hongjiu.lu@intel.com>
329
330         PR binutils/9784
331         * NEWS: Mention --prefix=PREFIX and --prefix-strip=LEVEL.
332
333         * doc/binutils.texi: Document --prefix=PREFIX and
334         --prefix-strip=LEVEL.
335
336         * objdump.c: Include "filenames.h".
337         (prefix): New.
338         (prefix_strip): Likewise.
339         (prefix_length): Likewise.
340         (usage): Add --prefix=PREFIX and --prefix-strip=LEVEL.
341         (option_values): Add OPTION_PREFIX and OPTION_PREFIX_STRIP.
342         (long_options): Likewise.
343         (show_line): Handle prefix and prefix_strip.
344         (main): Handle OPTION_PREFIX and OPTION_PREFIX_STRIP.
345
346         * readelf.c (PATH_MAX): Moved to ...
347         * sysdep.h: Here.
348
349 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
350
351         * NEWS: Mention --as-needed change.
352
353 2009-01-29  Alan Modra  <amodra@bigpond.net.au>
354
355         PR 9798
356         * bucomm.c (bfd_nonfatal_message): Use bfd_get_archive_filename.
357         (bfd_get_archive_filename): Constify param.
358         * bucomm.h (bfd_get_archive_filename): Update prototype.
359         * objcopy.c (RETURN_NONFATAL): Delete.
360         (copy_unknown_object): Don't call bfd_get_archive_filename for
361         bfd_nonfatal_message filename, instead just pass bfd.
362         (copy_object): Likewise.
363         (copy_archive, copy_file): Likewise.  Expand RETURN_NONFATAL.  On
364         bfd_close errors, do not pass the bfd to bfd_nonfatal_message.
365         (setup_bfd_headers): Fix error message.
366
367 2009-01-27  Nick Clifton  <nickc@redhat.com>
368
369         PR 9774
370         * objdump.c (disassemble_section): When the target uses signed
371         addresses make sure that we compute signed values.
372
373 2009-01-27  Nick Clifton  <nickc@redhat.com>
374
375         * MAINTAINERS: Remove Thiemo Seufer's name from the list of MIPS
376         maintainers.
377
378 2009-01-26  Nick Clifton  <nickc@redhat.com>
379
380         PR 9766
381         * dlltool.c (xlate): When strip text after the @ sign, look for
382         the last one not the first one.
383
384 2009-01-16  Alan Modra  <amodra@bigpond.net.au>
385
386         * configure.in (commonbfdlib): Delete.
387         * configure: Regenerate.
388
389 2008-01-14  Charles Wilson  <cygwin@cwilson.fastmail.fm>
390
391         Cleanup code related to --identify option.
392
393         * binutils/dlltool.c (file scope): Removed globals identify_ms,
394         identify_member_contains_symname_result,
395         identify_dll_name_list_head, and identify_dll_name_list_tail.
396         Renamed existing typedef dll_name_list_type to
397         dll_name_list_node_type.
398         Added new typedefs dll_name_list_type, symname_search_data_type,
399         and identify_data_type.
400         (identify_append_dll_name_to_list): Renamed to...
401         (dll_name_list_append): ...here.  Changed signature to accept list
402         argument rather than use global.
403         (identify_count_dll_name_list): Renamed to...
404         (dll_name_list_count): ...here.  Changed signature to accept list
405         argument rather than use global.
406         (identify_print_dll_name_list): Renamed to...
407         (dll_name_list_print): ...here.  Changed signature to accept list
408         argument rather than use global.
409         (identify_free_dll_name_list): Renamed to...
410         (dll_name_list_free_contents): ...here.
411         (dll_name_list_free): New function.
412         (dll_name_list_create): New function.
413         (identify_process_section_p): Changed signature to accept
414         ms_style_implib argument rather than use global.
415         (identify_member_contains_symname): Expect incoming void * data to
416         be symname_search_data_type.
417         (identify_dll_for_implib): Use new functions dll_name_list_create
418         and dll_name_list_free.  Use new types symname_search_data_type
419         and identify_data_type to communicate with search routines.
420         (identify_search_section): Expect incoming void * data to be
421         identify_data_type. Use its contents rather than global
422         variables.
423
424 2009-01-13  Charles Wilson  <cygwin@cwilson.fastmail.fm>
425
426         Add --identify-strict option.  Handle ms-style implibs:
427
428         * dlltool.c (file scope): Added new globals identify_ms and
429         identify_strict. New typedef dll_name_list_type, and globals
430         identify_dll_name_list_head and identify_dll_name_list_tail. Added
431         new global identify_member_contains_symname_result.
432         (identify_append_dll_name_to_list): New function.
433         (identify_count_dll_name_list): New function.
434         (identify_print_dll_name_list): New function.
435         (identify_free_dll_name_list): New function.
436         (identify_search_archive): Changed signature to take function
437         pointer to operation to apply to each member, and data to pass on
438         to that function.
439         (identify_search_member): Changed signature to accept user data
440         from caller.
441         (identify_member_contains_symname): New function.
442         (identify_dll_for_implib): Rewrite. Now determines whether implib
443         is ms- or binutils- style, before searching sections for
444         dllname. Allows multiple dllnames.
445         (identify_process_section_p): Search alternate section for dllname
446         when implib is ms-style.
447         (identify_search_section): Add additional conditions to excludes
448         candidate sections from consideration.
449         (usage): Added --identify-strict.
450         (long_options): Added --identify-strict.
451         (main): Handle --identify-strict option.
452         * doc/binutils.texi: Document --identify-strict option.
453         * NEWS: Document --identify and --identify-strict options.
454
455 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
456
457         PR 7034
458         * doc/binutils.texi (objdump -R): Note effect of -d or -D.
459
460 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
461
462         * objdump.c (disassemble_section): Don't assume non-instruction
463         data if object symbol at given address is in different section.
464
465 2009-01-12  Kai Tietz  <kai.tietz@onevision.com>
466
467         * dlltool.c (create_for_pep): New.
468         (flush_page): Use create_for_pep instead of using
469         macro DLLTOOL_MX86_64 clause.
470         (generate_idata_ofile): Likewise.
471         (make_one_lib_file): Likewise.
472         (make_head): Likewise.
473         (make_tail): Likewise.
474         (main): Initialize create_for_pep.
475
476 2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
477
478         * dlltool.c (use_nul_prefixed_import_tables): New.
479         (make_head): Make prefix leading zero prefix element for
480         idata$4 and idata$5 dependent to new flag.
481         (usage): Add new option  --use-nul-prefixed-import-tables.
482         (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
483         (long_options): Add --use-nul-prefixed-import-tables.
484         (main): Likewise.
485         * doc/binutils.texi: Add new option documentation for
486         --use-nul-prefixed-import-tables.
487         * NEWS: Add new option.
488
489 2009-01-06  Kai Tietz  <kai.tietz@onevision.com>
490
491         * windres.c (set_endianess): Get architecture name
492         for internal target names like "pe-arm-wince-little".
493         (find_arch_match): New helper.
494         * ChangeLog: Reset it.
495         * ChangeLog-2008: Moved old ChangeLog.
496
497 For older changes see ChangeLog-2008
498 \f
499 Local Variables:
500 mode: change-log
501 left-margin: 8
502 fill-column: 74
503 version-control: never
504 End: