1 2011-11-20 Andreas Tobler <andreast@fgznet.ch>
3 * configure: Regenerate.
5 2011-10-26 Release Manager
9 2011-06-27 Release Manager
13 2011-04-05 Richard Guenther <rguenther@suse.de>
16 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
18 2011-03-25 Release Manager
22 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24 * Makefile.in: Regenerate.
25 * aclocal.m4: Regenerate.
26 * configure: Regenerate.
28 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30 * Makefile.am (all-local): Rename from 'all'.
31 * Makefile.in: Regenerate.
33 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
36 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
37 (liblto_plugin_la_LDFLAGS): Add -module.
38 (copy_lto_plugin): Renamed to...
39 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
41 * Makefile.in: Rebuild.
43 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
46 * Makefile.am (Wc): New helper for encoding -Wc,.
47 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
48 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
49 * Makefile.in: Regenerated.
51 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
55 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
58 * Makefile.am (Wl): New helper for encoding -Wl,.
59 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
60 * Makefile.in: Regenerated.
62 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
65 * Makefile.am (Wl): New helper for encoding -Wl,.
66 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
67 * Makefile.in: Regenerated.
69 2011-01-25 Ian Lance Taylor <iant@google.com>
71 * lto-plugin.c (gold_version): New static variable.
72 (all_symbols_read_handler): Don't check pass_through_items if
73 using gold 1.11 or later.
74 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
76 2011-01-12 Richard Guenther <rguenther@suse.de>
79 * lto-plugin.c (parse_table_entry): Use memcpy to access
82 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
84 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
85 * Makefile.in: Regenerate.
87 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
91 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
93 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
94 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
95 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
96 * Makefile.in: Regenerate.
98 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
102 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
103 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
104 * configure: Regenerate.
105 * config.h.in: Likewise.
107 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
111 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
112 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
113 override -bindir setting.
114 * aclocal.m4: Regenerate.
115 * configure: Regenerate.
116 * Makefile.in: Regenerate.
118 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
120 * config.h.in: Regenerated.
121 * configure: Regenerated.
122 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
123 * lto-plugin.c (WIFEXITED): Define default.
124 (WEXITSTATUS): Likeiwse.
126 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
128 * config.h.in: Regenerated.
129 * configure: Regenerated.
130 * Makefile.in: Regenerated.
131 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
132 * lto-plugin.c: Include sys/wait.h conditionally.
133 * aclocal.m4: Regenerated.
135 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
137 * lto-plugin.c (add_output_files): Fix memory leak.
139 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
143 * configure.ac: Add AC_TYPE_INT64_T test.
144 * config.h.in: Regenerate.
145 * configure: Likewise.
146 * lto-plugin.c (debug): Use char not bool.
148 (check_1): Rename from check, and use int not bool for gate argument.
149 (check): Macro wrapper for the above to coerce gate argument into
150 boolean-valued integer in case it has pointer type.
151 (parse_table_entry): Use 0 not false.
152 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
153 into two 32-bit parts and printing as hex ints.
155 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
158 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
160 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
163 * lto-plugin.h: Delete.
164 * lto-plugin-elf.c: Likewise.
165 * lto-plugin-coff.c: Likewise.
166 * configure.ac: Don't use libelf, don't source config.gcc.
167 (LIBELFLIBS): Delete.
169 (LTO_FORMAT): Delete.
170 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
171 (config.h): Add AC_CONFIG_HEADERS directive.
172 * Makefile.am (LIBELFLIBS): Delete.
174 (LTO_FORMAT): Delete.
176 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
177 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
178 any object-format-specific source file in the link.
179 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
180 * config.h.in: Generate.
181 * configure: Regenerate.
182 * Makefile.in: Likewise.
183 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
184 (LTO_SEGMENT_NAME): New definition.
185 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
186 (LTO_SECTION_PREFIX_LEN): New definition.
187 (struct sym_aux): Struct definition moved here from lto-plugin.h.
188 (struct plugin_symtab): Likewise.
189 (struct plugin_objfile): Likewise.
190 (struct plugin_objfile): New struct def.
191 (enum symbol_style): New enum type.
192 (add_symbols): Make static.
193 (claimed_files): Likewise.
194 (num_claimed_files): Likewise.
195 (sym_style): New global.
196 (check): Make static.
197 (parse_table_entry): Likewise. Respect sym_style when extracting
198 symbol from symtab entry.
199 (translate): Make static.
200 (resolve_conflicts): Likewise.
201 (process_symtab): New function, per-section callback version of
202 old object-format-specific handling from deleted lto-plugin-elf.c.
203 (claim_file_handler): Convert ELF-specific version from deleted
204 lto-plugin-elf.c to simple_object interface and move here.
205 (process_options): Allow new '-sym-style=' option.
206 (onload): Don't call deleted onload_format_checks hook.
208 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
210 * lto-plugin.c (dump_symtab): Correct printf argument type.
211 (finish_conflict_resolution): Initialize resolution.
213 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
216 * configure.ac: Add AC_CANONICAL_SYSTEM.
217 * configure: Regenerated.
219 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
221 * configure.ac: Source config.gcc to determine lto_binary_reader.
222 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
223 * Makefile.am (LTO_FORMAT): Import.
224 (liblto_plugin_la_SOURCES): Add object format dependent module
225 defined by LTO_FORMAT.
226 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
227 and work around libtool warning.
228 * configure: Regenerate.
229 * Makefile.in: Likewise.
230 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
231 (struct sym_aux): Likewise.
232 (struct plugin_symtab): Likewise.
233 (struct plugin_file_info): Likewise.
234 (LTO_SECTION_PREFIX): Likewise.
235 (add_symbols): Make non-static.
236 (claimed_files): Likewise.
237 (num_claimed_files): Likewise.
239 (parse_table_entry): Likewise.
240 (translate): Likewise.
241 (resolve_conflicts): Likewise.
242 (process_symtab): Move to new lto-plugin-elf.c object format dependent
244 (claim_file_handler): Likewise, and make non-static.
245 (onload): Call new onload_format_checks function.
246 * lto-plugin.h: New file.
247 (LTO_SECTION_PREFIX): Move here.
248 (struct sym_aux): Likewise.
249 (struct plugin_symtab): Likewise.
250 (struct plugin_file_info): Likewise.
251 (claim_file_handler): Add new function prototype.
252 (onload_format_checks): Likewise.
253 (check): Declare extern.
254 (translate): Likewise.
255 (parse_table_entry): Likewise.
256 (resolve_conflicts): Likewise.
257 (add_symbols): Likewise.
258 (claimed_files): Likewise.
259 (num_claimed_files): Likewise.
260 * lto-plugin-elf.c (process_symtab): Move here.
261 (claim_file_handler): Likewise, and make non-static.
262 (onload_format_checks): New function factored out from onload.
263 * lto-plugin-coff.c (claim_file_handler): New function stub.
264 (onload_format_checks): Likewise.
266 2010-08-05 Andi Kleen <ak@linux.intel.com>
268 * lto-plugin.c: Include <hashtab.h>
269 (sym_aux): Add next_conflict field to save conflict chains.
270 (plugin_file_info): Add conflicts symtab.
271 (parse_table_entry): Initialize aux->next_conflict.
272 (process_symtab): Increment found.
274 (finish_conflict_resolution): Add.
276 (write_resolution): Remove symbols loop and move into
277 dump_symtab. Call dump_symtab for main symbol and conflicts table.
278 Call free_symtab to free conflicts table.
282 (symbol_strength): Add.
283 (resolve_conflicts): Add.
284 (claim_file_handler): Add n variable. Check return value of
285 process_symtab. Call resolve_conflicts.
287 2010-07-27 Andi Kleen <ak@linux.intel.com>
289 * lto-plugin.c (translate): Remove debug fprintf.
291 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
294 * lto-plugin.c (translate): Cast to unsigned long.
296 2010-07-23 Andi Kleen <ak@linux.intel.com>
299 * lto-plugin.c (sym_aux): Add.
300 (plugin_symtab): Remove slots. Add aux and id.
301 (parse_table_entry): Change to use aux instead of slots.
302 (LTO_SECTION_PREFIX): Add.
303 (translate): Improve buffer allocation. Change to append
304 symbols to existing out buffer.
305 (get_section): Remove.
306 (process_symtab): Add.
307 (free_2): Free symtab->aux.
308 (write_resolution): Handle aux instead of slots.
309 Print sub id to resolution file.
310 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
311 calls with call to process_symtab.
313 2010-07-22 Richard Guenther <rguenther@suse.de>
315 * Makefile.am: New copy_lto_plugin rule to install the plugin
317 * Makefile.in: Regenerated.
319 2010-05-21 Richard Guenther <rguenther@suse.de>
321 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
323 2010-05-07 Richard Guenther <rguenther@suse.de>
325 * lto-plugin.c (free_2): Do not free resolution_file.
326 (write_resolution): Check that we were passed a resolution file.
327 (all_symbols_read_handler): Adjust.
328 (cleanup_handler): Do not remove the resolution file.
329 (process_option): Handle -fresolution=.
331 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
334 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
335 * Makefile.in: Regenerate.
337 2010-04-23 Richard Guenther <rguenther@suse.de>
340 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
341 (translate): Likewise.
342 (all_symbols_read_handler): Likewise.
343 (claim_file_handler): Likewise.
344 (process_option): Likewise.
345 (add_output_files): Likewise. Remove filename length limit.
347 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
349 * Makefile.in: Regenerate.
350 * aclocal.m4: Regenerate.
352 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
355 * lto-plugin.c (cleanup_handler): Delete temporary output files.
357 2010-01-11 Richard Guenther <rguenther@suse.de>
360 * Makefile.am: Disable dependencies.
361 * Makefile.in: Regenerated.
363 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
366 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
369 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
372 * configure: Regenerated.
373 * Makefile.in: Likewise.
375 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
378 * lto-plugin.c (claim_file_handler): Print offsets in hex.
380 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
382 * lto-plugin.c (write_resolution): Assume resolution_file is set.
383 Print the symbol name.
384 (all_symbols_read_handler): Create a resolution file.
386 (cleanup_handler): Remove the resolution file.
387 (process_option): Drop the -resolution option.
389 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
391 * lto-plugin.c (temp_obj_dir_name): Remove.
392 (arguments_file_name): New.
393 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
394 (exec_lto_wrapper): Create arguments file with make_temp_file.
395 (cleanup_handler): Don't remove the temporary directory. Remove the
397 (onload): Don't create the temporary directory.
399 2009-11-04 Richard Guenther <rguenther@suse.de>
400 Rafael Avila de Espindola <espindola@google.com>
402 * lto-plugin.c (plugin_file_info): Remove temp field.
403 (cleanup_handler): Don't delete temporary objects.
404 (claim_file_handler): Don't create temporary objects.
406 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
408 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
410 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
413 * lto-plugin.c (claim_file_handler): Close files that we created.
415 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
417 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
420 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
423 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
424 * configure: Regenerate.
426 2009-10-26 Richard Guenther <rguenther@suse.de>
428 * configure.ac: Use AM_MAINTAINER_MODE.
429 * acinclude.m4: Remove.
430 * configure: Re-generate.
431 * Makefile.in: Likewise.
432 * aclocal.m4: Likewise.
434 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
437 * configure: Regenerate.
438 * configure.ac: Add AC_TYPE_UINT64_T.
440 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
442 * lto-plugin.c (message): New variable.
443 (check): New function.
444 (parse_table_entry, translate, write_resolution,add_output_files,
445 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
447 (cleanup_handler): Use check instead of assert. Remove the arguments
450 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
452 * lto-plugin.c (resolution_file): New.
453 (free_1): Update comment.
454 (free_2): Free resolution_file.
455 (write_resolution): Write resolution to specified file. Use the
456 syms array from the symbol table.
457 (all_symbols_read_handler): Delay call to free_1 past call to
459 (process_option): Add a -resolution option.
461 2009-10-13 Richard Guenther <rguenther@suse.de>
463 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
465 * Makefile.in: Regenerated.
467 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
469 * lto-plugin.c (add_input_library): New.
470 (all_symbols_read_handler): Use add_input_library for items that
472 (process_option): Fit in 80 columns.
473 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
475 2009-10-02 Diego Novillo <dnovillo@google.com>
477 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
478 and -D_FILE_OFFSET_BITS=64.
479 * configure.ac: Add AC_SYS_LARGEFILE.
480 * configure: Regenerate.
481 * Makefile.in: Regenerate.
482 * lto-plugin.c: Fix copyright boilerplate.
484 2009-10-02 Diego Novillo <dnovillo@google.com>
486 * Makefile.am (ACLOCAL_AMFLAGS): Define.
487 * aclocal.m4: Regenerate with aclocal-2.64
488 * acinclude.m4: Remove.
489 * Makefile.in: Regenerate with automake-1.11
490 * configure.ac (AC_PREREQ): Update to 2.64.
491 * configure: Regenerate.
493 2009-10-02 Diego Novillo <dnovillo@google.com>
495 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
496 and -D_FILE_OFFSET_BITS=64.
497 * configure.ac: Add AC_SYS_LARGEFILE.
498 * configure: Regenerate.
499 * Makefile.in: Regenerate.
500 * lto-plugin.c: Fix copyright boilerplate.
502 2009-10-02 Diego Novillo <dnovillo@google.com>
504 * Makefile.am (ACLOCAL_AMFLAGS): Define.
505 * aclocal.m4: Regenerate with aclocal-2.64
506 * acinclude.m4: Remove.
507 * Makefile.in: Regenerate with automake-1.11
508 * configure.ac (AC_PREREQ): Update to 2.64.
509 * configure: Regenerate.
511 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
513 * Makefile.am (liblto_plugin_la_SOURCES): Remove
514 $(top_srcdir)/../gcc/lto/common.c
515 * Makefile.in: Regenerate.
517 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
519 * lto-plugin.c (pass_through_items): New.
520 (num_pass_through_items): New.
521 (all_symbols_read_handler): Update to use the -pass-through option.
522 (process_option): Replace -libgcc with -pass-through.
524 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
526 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
527 register_cleanup to be set.
529 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
531 * Makefile.am: Remove all reference to ltosymtab.
532 * Makefile.in: Regenerate.
533 * lto-symtab.c: Remove.
535 2009-05-21 Diego Novillo <dnovillo@google.com>
537 * configure.ac: Remove call to AC_CHECK_GELF.
538 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
539 * acinclude.m4: Do not include ../config/libelf.m4
540 * Makefile.am (LIBELFLIBS): Define.
542 (AM_CPPFLAGS): Add $(LIBELFINC).
543 (ltosymtab_LDADD): Add $(LIBELFLIBS).
544 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
545 * lto-plugin.c: Always include <gelf.h>
546 * lto-symtab.c: Likewise.
547 * configure: Regenerate.
548 * Makefile.in: Regenerate.
550 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
552 * lto-plugin.c (libgcc_filename): New.
553 (all_symbols_read_handler): Pass libgcc to the linker.
554 (all_symbols_read_handler): Parse -libgcc
556 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
558 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
559 * Makefile.in: Regenerate.
560 * lto-plugin.c (add_output_files): Argument is now a FILE.
561 (exec_lto_wrapper): Use writeargv and pex.
563 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
566 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
567 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
570 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
572 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
574 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
576 * lto-plugin.c: Include libiberty.h.
577 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
580 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
582 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
585 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
587 * lto-plugin.c (plugin_file_info): Remove fd and elf.
588 (parse_table_entry): strdup entry->name and entry->comdat_key.
589 (free_1): Free name and comdat_key. Don't close the file. Don't call
591 (claim_file_handler): Always call elf_end.
593 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
595 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
596 -D_FILE_OFFSET_BITS=64
597 * Makefile.in: Regenerate
599 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
601 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
602 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
603 * Makefile.in: Regenerate.
604 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
605 * configure: Regenerate.
606 * configure.ac: Add AC_SUBST(target_noncanonical).
608 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
610 * lto-plugin.c: Include stdbool.h.
611 (debug, nop): Declare as bool.
613 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
615 * lto-plugin.c (nop): New.
616 (use_original_files): New.
617 (all_symbols_read_handler): Call use_original_files if nop is true.
618 (process_option): Parse the -nop option.
620 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
622 * lto-plugin.c (debug): New.
623 (exec_lto_wrapper): Print argv if debug is true.
624 (process_option): Process the -debug command line option.
626 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
628 * lto-plugin.c (process_option): The argument is now a single option,
629 not a space separated list.
631 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
633 * lto-plugin.c: Include sys/types.h and sys/wait.h
634 (output_files, num_output_files, lto_wrapper_argv,
635 lto_wrapper_num_args): New.
636 (free_2): Free output_files.
637 (write_resolution): Disable.
638 (add_output_files): New.
639 (exec_lto_wrapper): New.
640 (all_symbols_read_handler): Run lto-wrapper.
641 (claim_file_handler): Free lto_file.name and call elf_end.
642 (process_option): New.
644 2008-11-26 Rafael Espindola <espindola@google.com>
646 * lto-plugin.c (add_input_file): New.
647 (get_section): Return NULL if get_section fails.
648 (write_resolution): New.
649 (all_symbols_read_handler): Call add_input_file.
650 (claim_file_handler): Unlink the correct file.
651 (onload): Record add_input_file.
653 2008-09-23 Rafael Espindola <espindola@google.com>
655 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
656 Update the location of common.c.
657 * Makefile.in: Regenerate.
658 * common.c: Moved to gcc/lto.
659 * common.h: Moved to gcc/lto.
660 * lto-plugin.c: Update the location of common.h.
661 * lto-symtab.c: Update the location of common.h.
663 2008-09-23 Rafael Espindola <espindola@google.com>
665 * common.c: Include common.h.
666 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
668 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
671 2008-09-23 Rafael Espindola <espindola@google.com>
673 * lto-plugin.c (plugin_file_info): Add temp.
674 (cleanup_handler): Only delete temporary files.
675 (claim_file_handler): Initialize lto_file.temp.
677 2008-09-23 Rafael Espindola <espindola@google.com>
679 * plugin-api.h: Moved to include.
681 2008-09-23 Rafael Espindola <espindola@google.com>
683 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
686 2008-09-22 Rafael Espindola <espindola@google.com>
688 * plugin-api.h: Copy from binutils' cvs.
690 2008-09-22 Rafael Espindola <espindola@google.com>
692 * lto-symtab.c (get_symbols, add_symbols): Update signature.
693 * plugin-api.h: Copy from binutils' cvs.
695 2008-09-22 Rafael Espindola <espindola@google.com>
697 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
700 2008-09-10 Rafael Espindola <espindola@google.com>
702 * lto-plugin.c (onload): add missing break statements and asserts.
703 * lto-symtab.c (claim_file_handler): Make it static.
704 (all_symbols_read_handler): Make it static.
705 (all_file_handles): Make it static.
706 (num_file_handles): Make it static.
707 (register_claim_file): Make it static.
708 (register_object): Indent properly.
710 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
712 * Makefile.am (ltosymtab_LDADD): Add -lelf.
713 * Makefiel.in: Regenerate.
714 * lto-plugin.c: Include ar.h.
715 (claim_file_handler): Handle file->offset != 0.
716 * lto-symtab.c: Include gelf.h.
717 (all_file_handles): Change type.
718 (register_object): New.
719 (register_file): Add support for archives.
720 (resolve): Update to new type of all_file_handles.
721 (print): Update to new type of all_file_handles.
722 (free_all): Update to new type of all_file_handles.
723 (main): Update to new type of all_file_handles.
725 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
727 * lto-plugin.c (get_string_table): Remove.
728 (get_section): Use elf_strptr instead of get_string_table.
730 2008-09-08 Doug Kwan <dougkwan@google.com>
732 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
733 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
735 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
737 * Makefile.am (ltosymtab_SOURCES): add common.c.
738 (ltosymtab_CFLAGS): New.
739 (liblto_plugin_la_SOURCES): Add common.c.
740 * Makefile.in: Regenerate.
743 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
744 (plugin_symtab): New.
745 (plugin_file_info): New.
746 (register_all_symbols_read): New.
748 (claimed_files): New.
749 (num_claimed_files): New.
750 (translate): Don't drop the slot number.
753 (all_symbols_read_handler): New.
754 (claim_file_handler): Record every claimed file.
755 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
757 * lto-symtab.c: Include stdlib.h, string.h and common.h.
758 (current_file_handle): Remove.
759 (ld_plugin_all_symbols_read_handler): New.
760 (plugin_handle): New.
762 (all_file_handles): New.
763 (num_file_handles): New.
765 (register_all_symbols_read): New.
766 (add_symbols): Don't print the symbols, just record them.
767 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
769 (load_plugin): Use plugin_handle.
770 (register_file): Add the file handle to all_file_handles.
773 (unload_plugin): New.
775 (main): Call all_symbols_read_handler and free resources.
777 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
779 * Makefile.am (AM_CFLAGS): New.
780 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
781 (lib_LTLIBRARIES): New.
782 (liblto_plugin_la_SOURCES): New.
783 (liblto_plugin_la_LIBADD): New.
784 * Makefile.in: Regenerate.
785 * acinclude.m4: Don't include ../config/acx.m4 and
786 ../config/no-executables.m4.
787 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
789 * aclocal.m4: Regenerate.
790 * configure: Regenerate.
791 * configure.ac: Use AM_PROG_LIBTOOL.
793 * lto-symtab.c: Rewrite to use the plugin.
796 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
798 * configure: Regenerate.
799 * configure.ac: Use AC_CHECK_GELF.
800 * lto-symtab.c: Include gelf.h.
801 (get_string_table): Use size independent API.
802 (printTable): Use lld to print 64 bit integers.
804 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
806 * lto-symtab.c (parse_table_entry): Assert entry->kind and
807 entry->visibility are valid.
809 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
810 * lto-symtab.c (table_entry): Add comdat.
811 (parse_table_entry): Read comdat.
813 2008-08-21 Rafael Espindola <espindola@google.com>