1 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
3 * config.h.in: Regenerated.
4 * configure: Regenerated.
5 * Makefile.in: Regenerated.
6 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
7 * lto-plugin.c: Include sys/wait.h conditionally.
8 * aclocal.m4: Regenerated.
10 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
12 * lto-plugin.c (add_output_files): Fix memory leak.
14 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
18 * configure.ac: Add AC_TYPE_INT64_T test.
19 * config.h.in: Regenerate.
20 * configure: Likewise.
21 * lto-plugin.c (debug): Use char not bool.
23 (check_1): Rename from check, and use int not bool for gate argument.
24 (check): Macro wrapper for the above to coerce gate argument into
25 boolean-valued integer in case it has pointer type.
26 (parse_table_entry): Use 0 not false.
27 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
28 into two 32-bit parts and printing as hex ints.
30 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
33 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
35 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
38 * lto-plugin.h: Delete.
39 * lto-plugin-elf.c: Likewise.
40 * lto-plugin-coff.c: Likewise.
41 * configure.ac: Don't use libelf, don't source config.gcc.
45 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
46 (config.h): Add AC_CONFIG_HEADERS directive.
47 * Makefile.am (LIBELFLIBS): Delete.
51 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
52 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
53 any object-format-specific source file in the link.
54 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
55 * config.h.in: Generate.
56 * configure: Regenerate.
57 * Makefile.in: Likewise.
58 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
59 (LTO_SEGMENT_NAME): New definition.
60 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
61 (LTO_SECTION_PREFIX_LEN): New definition.
62 (struct sym_aux): Struct definition moved here from lto-plugin.h.
63 (struct plugin_symtab): Likewise.
64 (struct plugin_objfile): Likewise.
65 (struct plugin_objfile): New struct def.
66 (enum symbol_style): New enum type.
67 (add_symbols): Make static.
68 (claimed_files): Likewise.
69 (num_claimed_files): Likewise.
70 (sym_style): New global.
72 (parse_table_entry): Likewise. Respect sym_style when extracting
73 symbol from symtab entry.
74 (translate): Make static.
75 (resolve_conflicts): Likewise.
76 (process_symtab): New function, per-section callback version of
77 old object-format-specific handling from deleted lto-plugin-elf.c.
78 (claim_file_handler): Convert ELF-specific version from deleted
79 lto-plugin-elf.c to simple_object interface and move here.
80 (process_options): Allow new '-sym-style=' option.
81 (onload): Don't call deleted onload_format_checks hook.
83 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
85 * lto-plugin.c (dump_symtab): Correct printf argument type.
86 (finish_conflict_resolution): Initialize resolution.
88 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
91 * configure.ac: Add AC_CANONICAL_SYSTEM.
92 * configure: Regenerated.
94 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
96 * configure.ac: Source config.gcc to determine lto_binary_reader.
97 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
98 * Makefile.am (LTO_FORMAT): Import.
99 (liblto_plugin_la_SOURCES): Add object format dependent module
100 defined by LTO_FORMAT.
101 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
102 and work around libtool warning.
103 * configure: Regenerate.
104 * Makefile.in: Likewise.
105 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
106 (struct sym_aux): Likewise.
107 (struct plugin_symtab): Likewise.
108 (struct plugin_file_info): Likewise.
109 (LTO_SECTION_PREFIX): Likewise.
110 (add_symbols): Make non-static.
111 (claimed_files): Likewise.
112 (num_claimed_files): Likewise.
114 (parse_table_entry): Likewise.
115 (translate): Likewise.
116 (resolve_conflicts): Likewise.
117 (process_symtab): Move to new lto-plugin-elf.c object format dependent
119 (claim_file_handler): Likewise, and make non-static.
120 (onload): Call new onload_format_checks function.
121 * lto-plugin.h: New file.
122 (LTO_SECTION_PREFIX): Move here.
123 (struct sym_aux): Likewise.
124 (struct plugin_symtab): Likewise.
125 (struct plugin_file_info): Likewise.
126 (claim_file_handler): Add new function prototype.
127 (onload_format_checks): Likewise.
128 (check): Declare extern.
129 (translate): Likewise.
130 (parse_table_entry): Likewise.
131 (resolve_conflicts): Likewise.
132 (add_symbols): Likewise.
133 (claimed_files): Likewise.
134 (num_claimed_files): Likewise.
135 * lto-plugin-elf.c (process_symtab): Move here.
136 (claim_file_handler): Likewise, and make non-static.
137 (onload_format_checks): New function factored out from onload.
138 * lto-plugin-coff.c (claim_file_handler): New function stub.
139 (onload_format_checks): Likewise.
141 2010-08-05 Andi Kleen <ak@linux.intel.com>
143 * lto-plugin.c: Include <hashtab.h>
144 (sym_aux): Add next_conflict field to save conflict chains.
145 (plugin_file_info): Add conflicts symtab.
146 (parse_table_entry): Initialize aux->next_conflict.
147 (process_symtab): Increment found.
149 (finish_conflict_resolution): Add.
151 (write_resolution): Remove symbols loop and move into
152 dump_symtab. Call dump_symtab for main symbol and conflicts table.
153 Call free_symtab to free conflicts table.
157 (symbol_strength): Add.
158 (resolve_conflicts): Add.
159 (claim_file_handler): Add n variable. Check return value of
160 process_symtab. Call resolve_conflicts.
162 2010-07-27 Andi Kleen <ak@linux.intel.com>
164 * lto-plugin.c (translate): Remove debug fprintf.
166 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
169 * lto-plugin.c (translate): Cast to unsigned long.
171 2010-07-23 Andi Kleen <ak@linux.intel.com>
174 * lto-plugin.c (sym_aux): Add.
175 (plugin_symtab): Remove slots. Add aux and id.
176 (parse_table_entry): Change to use aux instead of slots.
177 (LTO_SECTION_PREFIX): Add.
178 (translate): Improve buffer allocation. Change to append
179 symbols to existing out buffer.
180 (get_section): Remove.
181 (process_symtab): Add.
182 (free_2): Free symtab->aux.
183 (write_resolution): Handle aux instead of slots.
184 Print sub id to resolution file.
185 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
186 calls with call to process_symtab.
188 2010-07-22 Richard Guenther <rguenther@suse.de>
190 * Makefile.am: New copy_lto_plugin rule to install the plugin
192 * Makefile.in: Regenerated.
194 2010-05-21 Richard Guenther <rguenther@suse.de>
196 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
198 2010-05-07 Richard Guenther <rguenther@suse.de>
200 * lto-plugin.c (free_2): Do not free resolution_file.
201 (write_resolution): Check that we were passed a resolution file.
202 (all_symbols_read_handler): Adjust.
203 (cleanup_handler): Do not remove the resolution file.
204 (process_option): Handle -fresolution=.
206 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
209 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
210 * Makefile.in: Regenerate.
212 2010-04-23 Richard Guenther <rguenther@suse.de>
215 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
216 (translate): Likewise.
217 (all_symbols_read_handler): Likewise.
218 (claim_file_handler): Likewise.
219 (process_option): Likewise.
220 (add_output_files): Likewise. Remove filename length limit.
222 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
224 * Makefile.in: Regenerate.
225 * aclocal.m4: Regenerate.
227 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
230 * lto-plugin.c (cleanup_handler): Delete temporary output files.
232 2010-01-11 Richard Guenther <rguenther@suse.de>
235 * Makefile.am: Disable dependencies.
236 * Makefile.in: Regenerated.
238 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
241 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
244 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
247 * configure: Regenerated.
248 * Makefile.in: Likewise.
250 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
253 * lto-plugin.c (claim_file_handler): Print offsets in hex.
255 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
257 * lto-plugin.c (write_resolution): Assume resolution_file is set.
258 Print the symbol name.
259 (all_symbols_read_handler): Create a resolution file.
261 (cleanup_handler): Remove the resolution file.
262 (process_option): Drop the -resolution option.
264 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
266 * lto-plugin.c (temp_obj_dir_name): Remove.
267 (arguments_file_name): New.
268 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
269 (exec_lto_wrapper): Create arguments file with make_temp_file.
270 (cleanup_handler): Don't remove the temporary directory. Remove the
272 (onload): Don't create the temporary directory.
274 2009-11-04 Richard Guenther <rguenther@suse.de>
275 Rafael Avila de Espindola <espindola@google.com>
277 * lto-plugin.c (plugin_file_info): Remove temp field.
278 (cleanup_handler): Don't delete temporary objects.
279 (claim_file_handler): Don't create temporary objects.
281 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
283 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
285 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
288 * lto-plugin.c (claim_file_handler): Close files that we created.
290 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
292 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
295 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
298 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
299 * configure: Regenerate.
301 2009-10-26 Richard Guenther <rguenther@suse.de>
303 * configure.ac: Use AM_MAINTAINER_MODE.
304 * acinclude.m4: Remove.
305 * configure: Re-generate.
306 * Makefile.in: Likewise.
307 * aclocal.m4: Likewise.
309 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
312 * configure: Regenerate.
313 * configure.ac: Add AC_TYPE_UINT64_T.
315 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
317 * lto-plugin.c (message): New variable.
318 (check): New function.
319 (parse_table_entry, translate, write_resolution,add_output_files,
320 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
322 (cleanup_handler): Use check instead of assert. Remove the arguments
325 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
327 * lto-plugin.c (resolution_file): New.
328 (free_1): Update comment.
329 (free_2): Free resolution_file.
330 (write_resolution): Write resolution to specified file. Use the
331 syms array from the symbol table.
332 (all_symbols_read_handler): Delay call to free_1 past call to
334 (process_option): Add a -resolution option.
336 2009-10-13 Richard Guenther <rguenther@suse.de>
338 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
340 * Makefile.in: Regenerated.
342 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
344 * lto-plugin.c (add_input_library): New.
345 (all_symbols_read_handler): Use add_input_library for items that
347 (process_option): Fit in 80 columns.
348 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
350 2009-10-02 Diego Novillo <dnovillo@google.com>
352 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
353 and -D_FILE_OFFSET_BITS=64.
354 * configure.ac: Add AC_SYS_LARGEFILE.
355 * configure: Regenerate.
356 * Makefile.in: Regenerate.
357 * lto-plugin.c: Fix copyright boilerplate.
359 2009-10-02 Diego Novillo <dnovillo@google.com>
361 * Makefile.am (ACLOCAL_AMFLAGS): Define.
362 * aclocal.m4: Regenerate with aclocal-2.64
363 * acinclude.m4: Remove.
364 * Makefile.in: Regenerate with automake-1.11
365 * configure.ac (AC_PREREQ): Update to 2.64.
366 * configure: Regenerate.
368 2009-10-02 Diego Novillo <dnovillo@google.com>
370 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
371 and -D_FILE_OFFSET_BITS=64.
372 * configure.ac: Add AC_SYS_LARGEFILE.
373 * configure: Regenerate.
374 * Makefile.in: Regenerate.
375 * lto-plugin.c: Fix copyright boilerplate.
377 2009-10-02 Diego Novillo <dnovillo@google.com>
379 * Makefile.am (ACLOCAL_AMFLAGS): Define.
380 * aclocal.m4: Regenerate with aclocal-2.64
381 * acinclude.m4: Remove.
382 * Makefile.in: Regenerate with automake-1.11
383 * configure.ac (AC_PREREQ): Update to 2.64.
384 * configure: Regenerate.
386 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
388 * Makefile.am (liblto_plugin_la_SOURCES): Remove
389 $(top_srcdir)/../gcc/lto/common.c
390 * Makefile.in: Regenerate.
392 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
394 * lto-plugin.c (pass_through_items): New.
395 (num_pass_through_items): New.
396 (all_symbols_read_handler): Update to use the -pass-through option.
397 (process_option): Replace -libgcc with -pass-through.
399 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
401 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
402 register_cleanup to be set.
404 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
406 * Makefile.am: Remove all reference to ltosymtab.
407 * Makefile.in: Regenerate.
408 * lto-symtab.c: Remove.
410 2009-05-21 Diego Novillo <dnovillo@google.com>
412 * configure.ac: Remove call to AC_CHECK_GELF.
413 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
414 * acinclude.m4: Do not include ../config/libelf.m4
415 * Makefile.am (LIBELFLIBS): Define.
417 (AM_CPPFLAGS): Add $(LIBELFINC).
418 (ltosymtab_LDADD): Add $(LIBELFLIBS).
419 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
420 * lto-plugin.c: Always include <gelf.h>
421 * lto-symtab.c: Likewise.
422 * configure: Regenerate.
423 * Makefile.in: Regenerate.
425 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
427 * lto-plugin.c (libgcc_filename): New.
428 (all_symbols_read_handler): Pass libgcc to the linker.
429 (all_symbols_read_handler): Parse -libgcc
431 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
433 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
434 * Makefile.in: Regenerate.
435 * lto-plugin.c (add_output_files): Argument is now a FILE.
436 (exec_lto_wrapper): Use writeargv and pex.
438 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
441 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
442 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
445 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
447 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
449 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
451 * lto-plugin.c: Include libiberty.h.
452 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
455 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
457 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
460 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
462 * lto-plugin.c (plugin_file_info): Remove fd and elf.
463 (parse_table_entry): strdup entry->name and entry->comdat_key.
464 (free_1): Free name and comdat_key. Don't close the file. Don't call
466 (claim_file_handler): Always call elf_end.
468 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
470 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
471 -D_FILE_OFFSET_BITS=64
472 * Makefile.in: Regenerate
474 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
476 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
477 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
478 * Makefile.in: Regenerate.
479 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
480 * configure: Regenerate.
481 * configure.ac: Add AC_SUBST(target_noncanonical).
483 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
485 * lto-plugin.c: Include stdbool.h.
486 (debug, nop): Declare as bool.
488 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
490 * lto-plugin.c (nop): New.
491 (use_original_files): New.
492 (all_symbols_read_handler): Call use_original_files if nop is true.
493 (process_option): Parse the -nop option.
495 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
497 * lto-plugin.c (debug): New.
498 (exec_lto_wrapper): Print argv if debug is true.
499 (process_option): Process the -debug command line option.
501 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
503 * lto-plugin.c (process_option): The argument is now a single option,
504 not a space separated list.
506 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
508 * lto-plugin.c: Include sys/types.h and sys/wait.h
509 (output_files, num_output_files, lto_wrapper_argv,
510 lto_wrapper_num_args): New.
511 (free_2): Free output_files.
512 (write_resolution): Disable.
513 (add_output_files): New.
514 (exec_lto_wrapper): New.
515 (all_symbols_read_handler): Run lto-wrapper.
516 (claim_file_handler): Free lto_file.name and call elf_end.
517 (process_option): New.
519 2008-11-26 Rafael Espindola <espindola@google.com>
521 * lto-plugin.c (add_input_file): New.
522 (get_section): Return NULL if get_section fails.
523 (write_resolution): New.
524 (all_symbols_read_handler): Call add_input_file.
525 (claim_file_handler): Unlink the correct file.
526 (onload): Record add_input_file.
528 2008-09-23 Rafael Espindola <espindola@google.com>
530 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
531 Update the location of common.c.
532 * Makefile.in: Regenerate.
533 * common.c: Moved to gcc/lto.
534 * common.h: Moved to gcc/lto.
535 * lto-plugin.c: Update the location of common.h.
536 * lto-symtab.c: Update the location of common.h.
538 2008-09-23 Rafael Espindola <espindola@google.com>
540 * common.c: Include common.h.
541 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
543 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
546 2008-09-23 Rafael Espindola <espindola@google.com>
548 * lto-plugin.c (plugin_file_info): Add temp.
549 (cleanup_handler): Only delete temporary files.
550 (claim_file_handler): Initialize lto_file.temp.
552 2008-09-23 Rafael Espindola <espindola@google.com>
554 * plugin-api.h: Moved to include.
556 2008-09-23 Rafael Espindola <espindola@google.com>
558 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
561 2008-09-22 Rafael Espindola <espindola@google.com>
563 * plugin-api.h: Copy from binutils' cvs.
565 2008-09-22 Rafael Espindola <espindola@google.com>
567 * lto-symtab.c (get_symbols, add_symbols): Update signature.
568 * plugin-api.h: Copy from binutils' cvs.
570 2008-09-22 Rafael Espindola <espindola@google.com>
572 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
575 2008-09-10 Rafael Espindola <espindola@google.com>
577 * lto-plugin.c (onload): add missing break statements and asserts.
578 * lto-symtab.c (claim_file_handler): Make it static.
579 (all_symbols_read_handler): Make it static.
580 (all_file_handles): Make it static.
581 (num_file_handles): Make it static.
582 (register_claim_file): Make it static.
583 (register_object): Indent properly.
585 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
587 * Makefile.am (ltosymtab_LDADD): Add -lelf.
588 * Makefiel.in: Regenerate.
589 * lto-plugin.c: Include ar.h.
590 (claim_file_handler): Handle file->offset != 0.
591 * lto-symtab.c: Include gelf.h.
592 (all_file_handles): Change type.
593 (register_object): New.
594 (register_file): Add support for archives.
595 (resolve): Update to new type of all_file_handles.
596 (print): Update to new type of all_file_handles.
597 (free_all): Update to new type of all_file_handles.
598 (main): Update to new type of all_file_handles.
600 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
602 * lto-plugin.c (get_string_table): Remove.
603 (get_section): Use elf_strptr instead of get_string_table.
605 2008-09-08 Doug Kwan <dougkwan@google.com>
607 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
608 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
610 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
612 * Makefile.am (ltosymtab_SOURCES): add common.c.
613 (ltosymtab_CFLAGS): New.
614 (liblto_plugin_la_SOURCES): Add common.c.
615 * Makefile.in: Regenerate.
618 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
619 (plugin_symtab): New.
620 (plugin_file_info): New.
621 (register_all_symbols_read): New.
623 (claimed_files): New.
624 (num_claimed_files): New.
625 (translate): Don't drop the slot number.
628 (all_symbols_read_handler): New.
629 (claim_file_handler): Record every claimed file.
630 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
632 * lto-symtab.c: Include stdlib.h, string.h and common.h.
633 (current_file_handle): Remove.
634 (ld_plugin_all_symbols_read_handler): New.
635 (plugin_handle): New.
637 (all_file_handles): New.
638 (num_file_handles): New.
640 (register_all_symbols_read): New.
641 (add_symbols): Don't print the symbols, just record them.
642 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
644 (load_plugin): Use plugin_handle.
645 (register_file): Add the file handle to all_file_handles.
648 (unload_plugin): New.
650 (main): Call all_symbols_read_handler and free resources.
652 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
654 * Makefile.am (AM_CFLAGS): New.
655 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
656 (lib_LTLIBRARIES): New.
657 (liblto_plugin_la_SOURCES): New.
658 (liblto_plugin_la_LIBADD): New.
659 * Makefile.in: Regenerate.
660 * acinclude.m4: Don't include ../config/acx.m4 and
661 ../config/no-executables.m4.
662 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
664 * aclocal.m4: Regenerate.
665 * configure: Regenerate.
666 * configure.ac: Use AM_PROG_LIBTOOL.
668 * lto-symtab.c: Rewrite to use the plugin.
671 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
673 * configure: Regenerate.
674 * configure.ac: Use AC_CHECK_GELF.
675 * lto-symtab.c: Include gelf.h.
676 (get_string_table): Use size independent API.
677 (printTable): Use lld to print 64 bit integers.
679 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
681 * lto-symtab.c (parse_table_entry): Assert entry->kind and
682 entry->visibility are valid.
684 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
685 * lto-symtab.c (table_entry): Add comdat.
686 (parse_table_entry): Read comdat.
688 2008-08-21 Rafael Espindola <espindola@google.com>