1 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
5 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
6 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
7 * configure: Regenerate.
8 * config.h.in: Likewise.
10 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
14 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
15 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
16 override -bindir setting.
17 * aclocal.m4: Regenerate.
18 * configure: Regenerate.
19 * Makefile.in: Regenerate.
21 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
23 * config.h.in: Regenerated.
24 * configure: Regenerated.
25 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
26 * lto-plugin.c (WIFEXITED): Define default.
27 (WEXITSTATUS): Likeiwse.
29 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
31 * config.h.in: Regenerated.
32 * configure: Regenerated.
33 * Makefile.in: Regenerated.
34 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
35 * lto-plugin.c: Include sys/wait.h conditionally.
36 * aclocal.m4: Regenerated.
38 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
40 * lto-plugin.c (add_output_files): Fix memory leak.
42 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
46 * configure.ac: Add AC_TYPE_INT64_T test.
47 * config.h.in: Regenerate.
48 * configure: Likewise.
49 * lto-plugin.c (debug): Use char not bool.
51 (check_1): Rename from check, and use int not bool for gate argument.
52 (check): Macro wrapper for the above to coerce gate argument into
53 boolean-valued integer in case it has pointer type.
54 (parse_table_entry): Use 0 not false.
55 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
56 into two 32-bit parts and printing as hex ints.
58 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
61 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
63 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
66 * lto-plugin.h: Delete.
67 * lto-plugin-elf.c: Likewise.
68 * lto-plugin-coff.c: Likewise.
69 * configure.ac: Don't use libelf, don't source config.gcc.
73 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
74 (config.h): Add AC_CONFIG_HEADERS directive.
75 * Makefile.am (LIBELFLIBS): Delete.
79 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
80 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
81 any object-format-specific source file in the link.
82 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
83 * config.h.in: Generate.
84 * configure: Regenerate.
85 * Makefile.in: Likewise.
86 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
87 (LTO_SEGMENT_NAME): New definition.
88 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
89 (LTO_SECTION_PREFIX_LEN): New definition.
90 (struct sym_aux): Struct definition moved here from lto-plugin.h.
91 (struct plugin_symtab): Likewise.
92 (struct plugin_objfile): Likewise.
93 (struct plugin_objfile): New struct def.
94 (enum symbol_style): New enum type.
95 (add_symbols): Make static.
96 (claimed_files): Likewise.
97 (num_claimed_files): Likewise.
98 (sym_style): New global.
100 (parse_table_entry): Likewise. Respect sym_style when extracting
101 symbol from symtab entry.
102 (translate): Make static.
103 (resolve_conflicts): Likewise.
104 (process_symtab): New function, per-section callback version of
105 old object-format-specific handling from deleted lto-plugin-elf.c.
106 (claim_file_handler): Convert ELF-specific version from deleted
107 lto-plugin-elf.c to simple_object interface and move here.
108 (process_options): Allow new '-sym-style=' option.
109 (onload): Don't call deleted onload_format_checks hook.
111 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
113 * lto-plugin.c (dump_symtab): Correct printf argument type.
114 (finish_conflict_resolution): Initialize resolution.
116 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
119 * configure.ac: Add AC_CANONICAL_SYSTEM.
120 * configure: Regenerated.
122 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
124 * configure.ac: Source config.gcc to determine lto_binary_reader.
125 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
126 * Makefile.am (LTO_FORMAT): Import.
127 (liblto_plugin_la_SOURCES): Add object format dependent module
128 defined by LTO_FORMAT.
129 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
130 and work around libtool warning.
131 * configure: Regenerate.
132 * Makefile.in: Likewise.
133 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
134 (struct sym_aux): Likewise.
135 (struct plugin_symtab): Likewise.
136 (struct plugin_file_info): Likewise.
137 (LTO_SECTION_PREFIX): Likewise.
138 (add_symbols): Make non-static.
139 (claimed_files): Likewise.
140 (num_claimed_files): Likewise.
142 (parse_table_entry): Likewise.
143 (translate): Likewise.
144 (resolve_conflicts): Likewise.
145 (process_symtab): Move to new lto-plugin-elf.c object format dependent
147 (claim_file_handler): Likewise, and make non-static.
148 (onload): Call new onload_format_checks function.
149 * lto-plugin.h: New file.
150 (LTO_SECTION_PREFIX): Move here.
151 (struct sym_aux): Likewise.
152 (struct plugin_symtab): Likewise.
153 (struct plugin_file_info): Likewise.
154 (claim_file_handler): Add new function prototype.
155 (onload_format_checks): Likewise.
156 (check): Declare extern.
157 (translate): Likewise.
158 (parse_table_entry): Likewise.
159 (resolve_conflicts): Likewise.
160 (add_symbols): Likewise.
161 (claimed_files): Likewise.
162 (num_claimed_files): Likewise.
163 * lto-plugin-elf.c (process_symtab): Move here.
164 (claim_file_handler): Likewise, and make non-static.
165 (onload_format_checks): New function factored out from onload.
166 * lto-plugin-coff.c (claim_file_handler): New function stub.
167 (onload_format_checks): Likewise.
169 2010-08-05 Andi Kleen <ak@linux.intel.com>
171 * lto-plugin.c: Include <hashtab.h>
172 (sym_aux): Add next_conflict field to save conflict chains.
173 (plugin_file_info): Add conflicts symtab.
174 (parse_table_entry): Initialize aux->next_conflict.
175 (process_symtab): Increment found.
177 (finish_conflict_resolution): Add.
179 (write_resolution): Remove symbols loop and move into
180 dump_symtab. Call dump_symtab for main symbol and conflicts table.
181 Call free_symtab to free conflicts table.
185 (symbol_strength): Add.
186 (resolve_conflicts): Add.
187 (claim_file_handler): Add n variable. Check return value of
188 process_symtab. Call resolve_conflicts.
190 2010-07-27 Andi Kleen <ak@linux.intel.com>
192 * lto-plugin.c (translate): Remove debug fprintf.
194 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
197 * lto-plugin.c (translate): Cast to unsigned long.
199 2010-07-23 Andi Kleen <ak@linux.intel.com>
202 * lto-plugin.c (sym_aux): Add.
203 (plugin_symtab): Remove slots. Add aux and id.
204 (parse_table_entry): Change to use aux instead of slots.
205 (LTO_SECTION_PREFIX): Add.
206 (translate): Improve buffer allocation. Change to append
207 symbols to existing out buffer.
208 (get_section): Remove.
209 (process_symtab): Add.
210 (free_2): Free symtab->aux.
211 (write_resolution): Handle aux instead of slots.
212 Print sub id to resolution file.
213 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
214 calls with call to process_symtab.
216 2010-07-22 Richard Guenther <rguenther@suse.de>
218 * Makefile.am: New copy_lto_plugin rule to install the plugin
220 * Makefile.in: Regenerated.
222 2010-05-21 Richard Guenther <rguenther@suse.de>
224 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
226 2010-05-07 Richard Guenther <rguenther@suse.de>
228 * lto-plugin.c (free_2): Do not free resolution_file.
229 (write_resolution): Check that we were passed a resolution file.
230 (all_symbols_read_handler): Adjust.
231 (cleanup_handler): Do not remove the resolution file.
232 (process_option): Handle -fresolution=.
234 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
237 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
238 * Makefile.in: Regenerate.
240 2010-04-23 Richard Guenther <rguenther@suse.de>
243 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
244 (translate): Likewise.
245 (all_symbols_read_handler): Likewise.
246 (claim_file_handler): Likewise.
247 (process_option): Likewise.
248 (add_output_files): Likewise. Remove filename length limit.
250 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
252 * Makefile.in: Regenerate.
253 * aclocal.m4: Regenerate.
255 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
258 * lto-plugin.c (cleanup_handler): Delete temporary output files.
260 2010-01-11 Richard Guenther <rguenther@suse.de>
263 * Makefile.am: Disable dependencies.
264 * Makefile.in: Regenerated.
266 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
269 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
272 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
275 * configure: Regenerated.
276 * Makefile.in: Likewise.
278 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
281 * lto-plugin.c (claim_file_handler): Print offsets in hex.
283 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
285 * lto-plugin.c (write_resolution): Assume resolution_file is set.
286 Print the symbol name.
287 (all_symbols_read_handler): Create a resolution file.
289 (cleanup_handler): Remove the resolution file.
290 (process_option): Drop the -resolution option.
292 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
294 * lto-plugin.c (temp_obj_dir_name): Remove.
295 (arguments_file_name): New.
296 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
297 (exec_lto_wrapper): Create arguments file with make_temp_file.
298 (cleanup_handler): Don't remove the temporary directory. Remove the
300 (onload): Don't create the temporary directory.
302 2009-11-04 Richard Guenther <rguenther@suse.de>
303 Rafael Avila de Espindola <espindola@google.com>
305 * lto-plugin.c (plugin_file_info): Remove temp field.
306 (cleanup_handler): Don't delete temporary objects.
307 (claim_file_handler): Don't create temporary objects.
309 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
311 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
313 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
316 * lto-plugin.c (claim_file_handler): Close files that we created.
318 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
320 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
323 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
326 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
327 * configure: Regenerate.
329 2009-10-26 Richard Guenther <rguenther@suse.de>
331 * configure.ac: Use AM_MAINTAINER_MODE.
332 * acinclude.m4: Remove.
333 * configure: Re-generate.
334 * Makefile.in: Likewise.
335 * aclocal.m4: Likewise.
337 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
340 * configure: Regenerate.
341 * configure.ac: Add AC_TYPE_UINT64_T.
343 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
345 * lto-plugin.c (message): New variable.
346 (check): New function.
347 (parse_table_entry, translate, write_resolution,add_output_files,
348 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
350 (cleanup_handler): Use check instead of assert. Remove the arguments
353 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
355 * lto-plugin.c (resolution_file): New.
356 (free_1): Update comment.
357 (free_2): Free resolution_file.
358 (write_resolution): Write resolution to specified file. Use the
359 syms array from the symbol table.
360 (all_symbols_read_handler): Delay call to free_1 past call to
362 (process_option): Add a -resolution option.
364 2009-10-13 Richard Guenther <rguenther@suse.de>
366 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
368 * Makefile.in: Regenerated.
370 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
372 * lto-plugin.c (add_input_library): New.
373 (all_symbols_read_handler): Use add_input_library for items that
375 (process_option): Fit in 80 columns.
376 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
378 2009-10-02 Diego Novillo <dnovillo@google.com>
380 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
381 and -D_FILE_OFFSET_BITS=64.
382 * configure.ac: Add AC_SYS_LARGEFILE.
383 * configure: Regenerate.
384 * Makefile.in: Regenerate.
385 * lto-plugin.c: Fix copyright boilerplate.
387 2009-10-02 Diego Novillo <dnovillo@google.com>
389 * Makefile.am (ACLOCAL_AMFLAGS): Define.
390 * aclocal.m4: Regenerate with aclocal-2.64
391 * acinclude.m4: Remove.
392 * Makefile.in: Regenerate with automake-1.11
393 * configure.ac (AC_PREREQ): Update to 2.64.
394 * configure: Regenerate.
396 2009-10-02 Diego Novillo <dnovillo@google.com>
398 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
399 and -D_FILE_OFFSET_BITS=64.
400 * configure.ac: Add AC_SYS_LARGEFILE.
401 * configure: Regenerate.
402 * Makefile.in: Regenerate.
403 * lto-plugin.c: Fix copyright boilerplate.
405 2009-10-02 Diego Novillo <dnovillo@google.com>
407 * Makefile.am (ACLOCAL_AMFLAGS): Define.
408 * aclocal.m4: Regenerate with aclocal-2.64
409 * acinclude.m4: Remove.
410 * Makefile.in: Regenerate with automake-1.11
411 * configure.ac (AC_PREREQ): Update to 2.64.
412 * configure: Regenerate.
414 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
416 * Makefile.am (liblto_plugin_la_SOURCES): Remove
417 $(top_srcdir)/../gcc/lto/common.c
418 * Makefile.in: Regenerate.
420 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
422 * lto-plugin.c (pass_through_items): New.
423 (num_pass_through_items): New.
424 (all_symbols_read_handler): Update to use the -pass-through option.
425 (process_option): Replace -libgcc with -pass-through.
427 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
429 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
430 register_cleanup to be set.
432 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
434 * Makefile.am: Remove all reference to ltosymtab.
435 * Makefile.in: Regenerate.
436 * lto-symtab.c: Remove.
438 2009-05-21 Diego Novillo <dnovillo@google.com>
440 * configure.ac: Remove call to AC_CHECK_GELF.
441 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
442 * acinclude.m4: Do not include ../config/libelf.m4
443 * Makefile.am (LIBELFLIBS): Define.
445 (AM_CPPFLAGS): Add $(LIBELFINC).
446 (ltosymtab_LDADD): Add $(LIBELFLIBS).
447 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
448 * lto-plugin.c: Always include <gelf.h>
449 * lto-symtab.c: Likewise.
450 * configure: Regenerate.
451 * Makefile.in: Regenerate.
453 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
455 * lto-plugin.c (libgcc_filename): New.
456 (all_symbols_read_handler): Pass libgcc to the linker.
457 (all_symbols_read_handler): Parse -libgcc
459 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
461 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
462 * Makefile.in: Regenerate.
463 * lto-plugin.c (add_output_files): Argument is now a FILE.
464 (exec_lto_wrapper): Use writeargv and pex.
466 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
469 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
470 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
473 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
475 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
477 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
479 * lto-plugin.c: Include libiberty.h.
480 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
483 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
485 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
488 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
490 * lto-plugin.c (plugin_file_info): Remove fd and elf.
491 (parse_table_entry): strdup entry->name and entry->comdat_key.
492 (free_1): Free name and comdat_key. Don't close the file. Don't call
494 (claim_file_handler): Always call elf_end.
496 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
498 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
499 -D_FILE_OFFSET_BITS=64
500 * Makefile.in: Regenerate
502 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
504 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
505 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
506 * Makefile.in: Regenerate.
507 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
508 * configure: Regenerate.
509 * configure.ac: Add AC_SUBST(target_noncanonical).
511 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
513 * lto-plugin.c: Include stdbool.h.
514 (debug, nop): Declare as bool.
516 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
518 * lto-plugin.c (nop): New.
519 (use_original_files): New.
520 (all_symbols_read_handler): Call use_original_files if nop is true.
521 (process_option): Parse the -nop option.
523 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
525 * lto-plugin.c (debug): New.
526 (exec_lto_wrapper): Print argv if debug is true.
527 (process_option): Process the -debug command line option.
529 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
531 * lto-plugin.c (process_option): The argument is now a single option,
532 not a space separated list.
534 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
536 * lto-plugin.c: Include sys/types.h and sys/wait.h
537 (output_files, num_output_files, lto_wrapper_argv,
538 lto_wrapper_num_args): New.
539 (free_2): Free output_files.
540 (write_resolution): Disable.
541 (add_output_files): New.
542 (exec_lto_wrapper): New.
543 (all_symbols_read_handler): Run lto-wrapper.
544 (claim_file_handler): Free lto_file.name and call elf_end.
545 (process_option): New.
547 2008-11-26 Rafael Espindola <espindola@google.com>
549 * lto-plugin.c (add_input_file): New.
550 (get_section): Return NULL if get_section fails.
551 (write_resolution): New.
552 (all_symbols_read_handler): Call add_input_file.
553 (claim_file_handler): Unlink the correct file.
554 (onload): Record add_input_file.
556 2008-09-23 Rafael Espindola <espindola@google.com>
558 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
559 Update the location of common.c.
560 * Makefile.in: Regenerate.
561 * common.c: Moved to gcc/lto.
562 * common.h: Moved to gcc/lto.
563 * lto-plugin.c: Update the location of common.h.
564 * lto-symtab.c: Update the location of common.h.
566 2008-09-23 Rafael Espindola <espindola@google.com>
568 * common.c: Include common.h.
569 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
571 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
574 2008-09-23 Rafael Espindola <espindola@google.com>
576 * lto-plugin.c (plugin_file_info): Add temp.
577 (cleanup_handler): Only delete temporary files.
578 (claim_file_handler): Initialize lto_file.temp.
580 2008-09-23 Rafael Espindola <espindola@google.com>
582 * plugin-api.h: Moved to include.
584 2008-09-23 Rafael Espindola <espindola@google.com>
586 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
589 2008-09-22 Rafael Espindola <espindola@google.com>
591 * plugin-api.h: Copy from binutils' cvs.
593 2008-09-22 Rafael Espindola <espindola@google.com>
595 * lto-symtab.c (get_symbols, add_symbols): Update signature.
596 * plugin-api.h: Copy from binutils' cvs.
598 2008-09-22 Rafael Espindola <espindola@google.com>
600 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
603 2008-09-10 Rafael Espindola <espindola@google.com>
605 * lto-plugin.c (onload): add missing break statements and asserts.
606 * lto-symtab.c (claim_file_handler): Make it static.
607 (all_symbols_read_handler): Make it static.
608 (all_file_handles): Make it static.
609 (num_file_handles): Make it static.
610 (register_claim_file): Make it static.
611 (register_object): Indent properly.
613 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
615 * Makefile.am (ltosymtab_LDADD): Add -lelf.
616 * Makefiel.in: Regenerate.
617 * lto-plugin.c: Include ar.h.
618 (claim_file_handler): Handle file->offset != 0.
619 * lto-symtab.c: Include gelf.h.
620 (all_file_handles): Change type.
621 (register_object): New.
622 (register_file): Add support for archives.
623 (resolve): Update to new type of all_file_handles.
624 (print): Update to new type of all_file_handles.
625 (free_all): Update to new type of all_file_handles.
626 (main): Update to new type of all_file_handles.
628 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
630 * lto-plugin.c (get_string_table): Remove.
631 (get_section): Use elf_strptr instead of get_string_table.
633 2008-09-08 Doug Kwan <dougkwan@google.com>
635 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
636 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
638 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
640 * Makefile.am (ltosymtab_SOURCES): add common.c.
641 (ltosymtab_CFLAGS): New.
642 (liblto_plugin_la_SOURCES): Add common.c.
643 * Makefile.in: Regenerate.
646 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
647 (plugin_symtab): New.
648 (plugin_file_info): New.
649 (register_all_symbols_read): New.
651 (claimed_files): New.
652 (num_claimed_files): New.
653 (translate): Don't drop the slot number.
656 (all_symbols_read_handler): New.
657 (claim_file_handler): Record every claimed file.
658 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
660 * lto-symtab.c: Include stdlib.h, string.h and common.h.
661 (current_file_handle): Remove.
662 (ld_plugin_all_symbols_read_handler): New.
663 (plugin_handle): New.
665 (all_file_handles): New.
666 (num_file_handles): New.
668 (register_all_symbols_read): New.
669 (add_symbols): Don't print the symbols, just record them.
670 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
672 (load_plugin): Use plugin_handle.
673 (register_file): Add the file handle to all_file_handles.
676 (unload_plugin): New.
678 (main): Call all_symbols_read_handler and free resources.
680 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
682 * Makefile.am (AM_CFLAGS): New.
683 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
684 (lib_LTLIBRARIES): New.
685 (liblto_plugin_la_SOURCES): New.
686 (liblto_plugin_la_LIBADD): New.
687 * Makefile.in: Regenerate.
688 * acinclude.m4: Don't include ../config/acx.m4 and
689 ../config/no-executables.m4.
690 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
692 * aclocal.m4: Regenerate.
693 * configure: Regenerate.
694 * configure.ac: Use AM_PROG_LIBTOOL.
696 * lto-symtab.c: Rewrite to use the plugin.
699 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
701 * configure: Regenerate.
702 * configure.ac: Use AC_CHECK_GELF.
703 * lto-symtab.c: Include gelf.h.
704 (get_string_table): Use size independent API.
705 (printTable): Use lld to print 64 bit integers.
707 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
709 * lto-symtab.c (parse_table_entry): Assert entry->kind and
710 entry->visibility are valid.
712 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
713 * lto-symtab.c (table_entry): Add comdat.
714 (parse_table_entry): Read comdat.
716 2008-08-21 Rafael Espindola <espindola@google.com>