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