combine.c (try_combine): Fix formatting issues, improve comments and fix a pasto.
[official-gcc.git] / lto-plugin / ChangeLog
blob690970f8524242e8848ff1cd5fd589c4d94d6d58
1 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
3         PR lto/46273
4         * lto-plugin.h: Delete.
5         * lto-plugin-elf.c: Likewise.
6         * lto-plugin-coff.c: Likewise.
7         * configure.ac: Don't use libelf, don't source config.gcc.
8         (LIBELFLIBS): Delete.
9         (LIBELFINC): Delete.
10         (LTO_FORMAT): Delete.
11         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
12         (config.h): Add AC_CONFIG_HEADERS directive.
13         * Makefile.am (LIBELFLIBS): Delete.
14         (LIBELFINC): Delete.
15         (LTO_FORMAT): Delete.
16         (DEFS): Import.
17         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
18         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
19         any object-format-specific source file in the link.
20         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
21         * config.h.in: Generate.
22         * configure: Regenerate.
23         * Makefile.in: Likewise.
24         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
25         (LTO_SEGMENT_NAME): New definition.
26         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
27         (LTO_SECTION_PREFIX_LEN): New definition.
28         (struct sym_aux): Struct definition moved here from lto-plugin.h.
29         (struct plugin_symtab): Likewise.
30         (struct plugin_objfile): Likewise.
31         (struct plugin_objfile): New struct def.
32         (enum symbol_style): New enum type.
33         (add_symbols): Make static.
34         (claimed_files): Likewise.
35         (num_claimed_files): Likewise.
36         (sym_style): New global.
37         (check): Make static.
38         (parse_table_entry): Likewise.  Respect sym_style when extracting
39         symbol from symtab entry.
40         (translate): Make static.
41         (resolve_conflicts): Likewise.
42         (process_symtab): New function, per-section callback version of
43         old object-format-specific handling from deleted lto-plugin-elf.c.
44         (claim_file_handler): Convert ELF-specific version from deleted
45         lto-plugin-elf.c to simple_object interface and move here.
46         (process_options): Allow new '-sym-style=' option.
47         (onload): Don't call deleted onload_format_checks hook.
49 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
51         * lto-plugin.c (dump_symtab): Correct printf argument type.
52         (finish_conflict_resolution): Initialize resolution.
54 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
56         PR bootstrap/45951
57         * configure.ac: Add AC_CANONICAL_SYSTEM.
58         * configure: Regenerated.
60 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
62         * configure.ac: Source config.gcc to determine lto_binary_reader.
63         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
64         * Makefile.am (LTO_FORMAT): Import.
65         (liblto_plugin_la_SOURCES): Add object format dependent module
66         defined by LTO_FORMAT.
67         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
68         and work around libtool warning.
69         * configure: Regenerate.
70         * Makefile.in: Likewise.
71         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
72         (struct sym_aux): Likewise.
73         (struct plugin_symtab): Likewise.
74         (struct plugin_file_info): Likewise.
75         (LTO_SECTION_PREFIX): Likewise.
76         (add_symbols):  Make non-static.
77         (claimed_files): Likewise.
78         (num_claimed_files): Likewise.
79         (check): Likewise.
80         (parse_table_entry): Likewise.
81         (translate): Likewise.
82         (resolve_conflicts): Likewise.
83         (process_symtab): Move to new lto-plugin-elf.c object format dependent
84         source file.
85         (claim_file_handler): Likewise, and make non-static.
86         (onload): Call new onload_format_checks function.
87         * lto-plugin.h: New file.
88         (LTO_SECTION_PREFIX): Move here.
89         (struct sym_aux): Likewise.
90         (struct plugin_symtab): Likewise.
91         (struct plugin_file_info): Likewise.
92         (claim_file_handler): Add new function prototype.
93         (onload_format_checks): Likewise.
94         (check): Declare extern.
95         (translate): Likewise.
96         (parse_table_entry): Likewise.
97         (resolve_conflicts): Likewise.
98         (add_symbols):  Likewise.
99         (claimed_files): Likewise.
100         (num_claimed_files): Likewise.
101         * lto-plugin-elf.c (process_symtab): Move here.
102         (claim_file_handler): Likewise, and make non-static.
103         (onload_format_checks): New function factored out from onload.
104         * lto-plugin-coff.c (claim_file_handler): New function stub.
105         (onload_format_checks): Likewise.
107 2010-08-05  Andi Kleen  <ak@linux.intel.com>
109         * lto-plugin.c: Include <hashtab.h>
110         (sym_aux): Add next_conflict field to save conflict chains.
111         (plugin_file_info): Add conflicts symtab.
112         (parse_table_entry): Initialize aux->next_conflict.
113         (process_symtab): Increment found.
114         (dump_symtab): Add.
115         (finish_conflict_resolution): Add.
116         (free_symtab): Add.
117         (write_resolution): Remove symbols loop and move into
118         dump_symtab. Call dump_symtab for main symbol and conflicts table.
119         Call free_symtab to free conflicts table.
120         (SWAP): Add.
121         (eq_sym): Add.
122         (hash_sym): Add.
123         (symbol_strength): Add.
124         (resolve_conflicts): Add.
125         (claim_file_handler): Add n variable. Check return value of
126         process_symtab. Call resolve_conflicts.
128 2010-07-27  Andi Kleen <ak@linux.intel.com>
130         * lto-plugin.c (translate): Remove debug fprintf.
132 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
134         PR bootstrap/45042
135         * lto-plugin.c (translate): Cast to unsigned long.
137 2010-07-23   Andi Kleen <ak@linux.intel.com>
139         PR lto/44992
140         * lto-plugin.c (sym_aux): Add.
141         (plugin_symtab): Remove slots. Add aux and id.
142         (parse_table_entry): Change to use aux instead of slots.
143         (LTO_SECTION_PREFIX): Add.
144         (translate): Improve buffer allocation. Change to append
145         symbols to existing out buffer.
146         (get_section): Remove.
147         (process_symtab): Add.
148         (free_2): Free symtab->aux.
149         (write_resolution): Handle aux instead of slots.
150         Print sub id to resolution file.
151         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
152         calls with call to process_symtab.
154 2010-07-22  Richard Guenther  <rguenther@suse.de>
156         * Makefile.am: New copy_lto_plugin rule to install the plugin
157         into ../gcc.
158         * Makefile.in: Regenerated.
160 2010-05-21  Richard Guenther  <rguenther@suse.de>
162         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
164 2010-05-07  Richard Guenther <rguenther@suse.de>
166         * lto-plugin.c (free_2): Do not free resolution_file.
167         (write_resolution): Check that we were passed a resolution file.
168         (all_symbols_read_handler): Adjust.
169         (cleanup_handler): Do not remove the resolution file.
170         (process_option): Handle -fresolution=.
172 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
174         PR other/43620
175         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
176         * Makefile.in: Regenerate.
178 2010-04-23  Richard Guenther  <rguenther@suse.de>
180         PR lto/41550
181         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
182         (translate): Likewise.
183         (all_symbols_read_handler): Likewise.
184         (claim_file_handler): Likewise.
185         (process_option): Likewise.
186         (add_output_files): Likewise.  Remove filename length limit.
188 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
190         * Makefile.in: Regenerate.
191         * aclocal.m4: Regenerate.
193 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
195         PR lto/43336
196         * lto-plugin.c (cleanup_handler): Delete temporary output files.
198 2010-01-11  Richard Guenther  <rguenther@suse.de>
200         PR lto/41569
201         * Makefile.am: Disable dependencies.
202         * Makefile.in: Regenerated.
204 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
206         PR lto/42520
207         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
208         if -v is passed.
210 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
212         PR bootstrap/42306
213         * configure: Regenerated.
214         * Makefile.in: Likewise.
216 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
218         PR bootstrap/42096
219         * lto-plugin.c (claim_file_handler): Print offsets in hex.
221 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
223         * lto-plugin.c (write_resolution): Assume resolution_file is set.
224         Print the symbol name.
225         (all_symbols_read_handler): Create a resolution file.
226         Pass it to gcc.
227         (cleanup_handler): Remove the resolution file.
228         (process_option): Drop the -resolution option.
230 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
232         * lto-plugin.c (temp_obj_dir_name): Remove.
233         (arguments_file_name): New.
234         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
235         (exec_lto_wrapper):  Create arguments file with make_temp_file.
236         (cleanup_handler): Don't remove the temporary directory. Remove the
237         arguments file.
238         (onload): Don't create the temporary directory.
240 2009-11-04  Richard Guenther  <rguenther@suse.de>
241             Rafael Avila de Espindola  <espindola@google.com>
243         * lto-plugin.c (plugin_file_info): Remove temp field.
244         (cleanup_handler): Don't delete temporary objects.
245         (claim_file_handler): Don't create temporary objects.
247 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
249         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
251 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
253         PR41871
254         * lto-plugin.c (claim_file_handler): Close files that we created.
256 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
258         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
259         LDPL_ERROR
261 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
263         PR lto/41652
264         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
265         * configure: Regenerate.
267 2009-10-26  Richard Guenther  <rguenther@suse.de>
269         * configure.ac: Use AM_MAINTAINER_MODE.
270         * acinclude.m4: Remove.
271         * configure: Re-generate.
272         * Makefile.in: Likewise.
273         * aclocal.m4: Likewise.
275 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
276     
277         PR40790
278         * configure: Regenerate.
279         * configure.ac: Add AC_TYPE_UINT64_T.
281 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
283         * lto-plugin.c (message): New variable.
284         (check): New function.
285         (parse_table_entry, translate, write_resolution,add_output_files,
286         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
287         assert.
288         (cleanup_handler): Use check instead of assert. Remove the arguments
289         file if it exists.
291 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
293         * lto-plugin.c (resolution_file): New.
294         (free_1): Update comment.
295         (free_2): Free resolution_file.
296         (write_resolution): Write resolution to specified file. Use the
297         syms array from the symbol table.
298         (all_symbols_read_handler): Delay call to free_1 past call to
299         write_resolution.
300         (process_option): Add a -resolution option.
302 2009-10-13  Richard Guenther  <rguenther@suse.de>
304         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
305         correct libiberty.
306         * Makefile.in: Regenerated.
308 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
310         * lto-plugin.c (add_input_library): New.
311         (all_symbols_read_handler): Use add_input_library for items that
312         start with -l.
313         (process_option): Fit in 80 columns.
314         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
316 2009-10-02  Diego Novillo  <dnovillo@google.com>
318         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
319         and -D_FILE_OFFSET_BITS=64.
320         * configure.ac: Add AC_SYS_LARGEFILE.
321         * configure: Regenerate.
322         * Makefile.in: Regenerate.
323         * lto-plugin.c: Fix copyright boilerplate.
325 2009-10-02  Diego Novillo  <dnovillo@google.com>
327         * Makefile.am (ACLOCAL_AMFLAGS): Define.
328         * aclocal.m4: Regenerate with aclocal-2.64
329         * acinclude.m4: Remove.
330         * Makefile.in: Regenerate with automake-1.11
331         * configure.ac (AC_PREREQ): Update to 2.64.
332         * configure: Regenerate.
334 2009-10-02  Diego Novillo  <dnovillo@google.com>
336         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
337         and -D_FILE_OFFSET_BITS=64.
338         * configure.ac: Add AC_SYS_LARGEFILE.
339         * configure: Regenerate.
340         * Makefile.in: Regenerate.
341         * lto-plugin.c: Fix copyright boilerplate.
343 2009-10-02  Diego Novillo  <dnovillo@google.com>
345         * Makefile.am (ACLOCAL_AMFLAGS): Define.
346         * aclocal.m4: Regenerate with aclocal-2.64
347         * acinclude.m4: Remove.
348         * Makefile.in: Regenerate with automake-1.11
349         * configure.ac (AC_PREREQ): Update to 2.64.
350         * configure: Regenerate.
352 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
354         * Makefile.am (liblto_plugin_la_SOURCES): Remove
355         $(top_srcdir)/../gcc/lto/common.c
356         * Makefile.in: Regenerate.
358 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
360         * lto-plugin.c (pass_through_items): New.
361         (num_pass_through_items): New.
362         (all_symbols_read_handler): Update to use the -pass-through option.
363         (process_option): Replace -libgcc with -pass-through.
364         
365 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
367         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
368         register_cleanup to be set.
370 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
372         * Makefile.am: Remove all reference to ltosymtab.
373         * Makefile.in: Regenerate.
374         * lto-symtab.c: Remove.
376 2009-05-21  Diego Novillo  <dnovillo@google.com>
378         * configure.ac: Remove call to AC_CHECK_GELF.
379         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
380         * acinclude.m4: Do not include ../config/libelf.m4
381         * Makefile.am (LIBELFLIBS): Define.
382         (LIBELFINC): Define.
383         (AM_CPPFLAGS): Add $(LIBELFINC).
384         (ltosymtab_LDADD): Add $(LIBELFLIBS).
385         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
386         * lto-plugin.c: Always include <gelf.h>
387         * lto-symtab.c: Likewise.
388         * configure: Regenerate.
389         * Makefile.in: Regenerate.
391 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
393         * lto-plugin.c (libgcc_filename): New.
394         (all_symbols_read_handler): Pass libgcc to the linker.
395         (all_symbols_read_handler): Parse -libgcc
397 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
399         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
400         * Makefile.in: Regenerate.
401         * lto-plugin.c (add_output_files): Argument is now a FILE.
402         (exec_lto_wrapper): Use writeargv and pex.
404 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
406         Revert:
407         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
408         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
411 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
413         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
415 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
417         * lto-plugin.c: Include libiberty.h.
418         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
419         snprintf.
421 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
423         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
424         file to lto-wrapper.
426 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
428         * lto-plugin.c (plugin_file_info): Remove fd and elf.
429         (parse_table_entry): strdup entry->name and entry->comdat_key.
430         (free_1): Free name and comdat_key. Don't close the file. Don't call
431         elf_end.
432         (claim_file_handler): Always call elf_end.
434 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
436         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
437         -D_FILE_OFFSET_BITS=64
438         * Makefile.in: Regenerate
440 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
442         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
443         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
444         * Makefile.in: Regenerate.
445         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
446         * configure: Regenerate.
447         * configure.ac: Add AC_SUBST(target_noncanonical).
449 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
451         * lto-plugin.c: Include stdbool.h.
452         (debug, nop): Declare as bool.
454 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
456         * lto-plugin.c (nop): New.
457         (use_original_files): New.
458         (all_symbols_read_handler): Call use_original_files if nop is true.
459         (process_option): Parse the -nop option.
461 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
463         * lto-plugin.c (debug): New.
464         (exec_lto_wrapper): Print argv if debug is true.
465         (process_option): Process the -debug command line option.
467 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
469         * lto-plugin.c (process_option): The argument is now a single option,
470         not a space separated list.
472 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
474         * lto-plugin.c: Include sys/types.h and sys/wait.h
475         (output_files, num_output_files, lto_wrapper_argv,
476         lto_wrapper_num_args): New.
477         (free_2): Free output_files.
478         (write_resolution): Disable.
479         (add_output_files): New.
480         (exec_lto_wrapper): New.
481         (all_symbols_read_handler): Run lto-wrapper.
482         (claim_file_handler): Free lto_file.name and call elf_end.
483         (process_option): New.
485 2008-11-26  Rafael Espindola  <espindola@google.com>
487         * lto-plugin.c (add_input_file): New.
488         (get_section): Return NULL if get_section fails.
489         (write_resolution): New.
490         (all_symbols_read_handler): Call add_input_file.
491         (claim_file_handler): Unlink the correct file.
492         (onload): Record add_input_file.
494 2008-09-23 Rafael Espindola  <espindola@google.com>
496         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
497         Update the location of common.c.
498         * Makefile.in: Regenerate.
499         * common.c: Moved to gcc/lto.
500         * common.h: Moved to gcc/lto.
501         * lto-plugin.c: Update the location of common.h.
502         * lto-symtab.c: Update the location of common.h.
504 2008-09-23 Rafael Espindola  <espindola@google.com>
506         * common.c: Include common.h.
507         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
508         sizes.
509         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
510         explicit sizes.
512 2008-09-23 Rafael Espindola  <espindola@google.com>
514         * lto-plugin.c (plugin_file_info): Add temp.
515         (cleanup_handler): Only delete temporary files.
516         (claim_file_handler): Initialize lto_file.temp.
518 2008-09-23  Rafael Espindola  <espindola@google.com>
520         * plugin-api.h: Moved to include.
522 2008-09-23 Rafael Espindola  <espindola@google.com>
524         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
525         format.
527 2008-09-22 Rafael Espindola  <espindola@google.com>
529         * plugin-api.h: Copy from binutils' cvs.
531 2008-09-22 Rafael Espindola  <espindola@google.com>
533         * lto-symtab.c (get_symbols, add_symbols): Update signature.
534         * plugin-api.h: Copy from binutils' cvs.
536 2008-09-22 Rafael Espindola  <espindola@google.com>
538         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
539         Make extern
541 2008-09-10 Rafael Espindola  <espindola@google.com>
543         * lto-plugin.c (onload): add missing break statements and asserts.
544         * lto-symtab.c (claim_file_handler): Make it static.
545         (all_symbols_read_handler): Make it static.
546         (all_file_handles): Make it static.
547         (num_file_handles): Make it static.
548         (register_claim_file): Make it static.
549         (register_object): Indent properly.
551 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
553         * Makefile.am (ltosymtab_LDADD): Add -lelf.
554         * Makefiel.in: Regenerate.
555         * lto-plugin.c: Include ar.h.
556         (claim_file_handler): Handle file->offset != 0.
557         * lto-symtab.c: Include gelf.h.
558         (all_file_handles): Change type.
559         (register_object): New.
560         (register_file): Add support for archives.
561         (resolve): Update to new type of all_file_handles.
562         (print): Update to new type of all_file_handles.
563         (free_all): Update to new type of all_file_handles.
564         (main): Update to new type of all_file_handles.
566 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
568         * lto-plugin.c (get_string_table): Remove.
569         (get_section): Use elf_strptr instead of get_string_table.
571 2008-09-08  Doug Kwan  <dougkwan@google.com>
573         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
574         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
576 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
578         * Makefile.am (ltosymtab_SOURCES): add common.c.
579         (ltosymtab_CFLAGS): New.
580         (liblto_plugin_la_SOURCES): Add common.c.
581         * Makefile.in: Regenerate.
582         * common.c: New.
583         * common.h: New.
584         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
585         (plugin_symtab): New.
586         (plugin_file_info): New.
587         (register_all_symbols_read): New.
588         (get_symbols): New.
589         (claimed_files): New.
590         (num_claimed_files): New.
591         (translate): Don't drop the slot number.
592         (free_1): New.
593         (free_2): New.
594         (all_symbols_read_handler): New.
595         (claim_file_handler): Record every claimed file.
596         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
597         LDPT_GET_SYMBOLS.
598         * lto-symtab.c: Include stdlib.h, string.h and common.h.
599         (current_file_handle): Remove.
600         (ld_plugin_all_symbols_read_handler): New.
601         (plugin_handle): New.
602         (file_handle): New.
603         (all_file_handles): New.
604         (num_file_handles): New.
605         (get_symbols): New.
606         (register_all_symbols_read): New.
607         (add_symbols): Don't print the symbols, just record them.
608         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
609         LDPT_GET_SYMBOLS.
610         (load_plugin): Use plugin_handle.
611         (register_file): Add the file handle to all_file_handles.
612         (resolve): New.
613         (print): New.
614         (unload_plugin): New.
615         (free_all): New.
616         (main): Call all_symbols_read_handler and free resources.
618 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
620         * Makefile.am (AM_CFLAGS): New.
621         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
622         (lib_LTLIBRARIES): New.
623         (liblto_plugin_la_SOURCES): New.
624         (liblto_plugin_la_LIBADD): New.
625         * Makefile.in: Regenerate.
626         * acinclude.m4: Don't include ../config/acx.m4 and
627         ../config/no-executables.m4.
628         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
629         ../libtool.m4.
630         * aclocal.m4: Regenerate.
631         * configure: Regenerate.
632         * configure.ac: Use AM_PROG_LIBTOOL.
633         * lto-plugin.c: New.
634         * lto-symtab.c: Rewrite to use the plugin.
635         * plugin-api.h: New.
637 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
639         * configure: Regenerate.
640         * configure.ac: Use AC_CHECK_GELF.
641         * lto-symtab.c: Include gelf.h.
642         (get_string_table): Use size independent API.
643         (printTable): Use lld to print 64 bit integers.
645 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
647         * lto-symtab.c (parse_table_entry): Assert entry->kind and
648         entry->visibility are valid.
650 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
651         * lto-symtab.c (table_entry): Add comdat.
652         (parse_table_entry): Read comdat.
654 2008-08-21  Rafael Espindola  <espindola@google.com>
656         * Makefile.am: New.
657         * Makefile.in: New.
658         * acinclude.m4: New.
659         * aclocal.m4: New.
660         * configure: New.
661         * configure.ac: New.
662         * lto-symtab.c: New.