1 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3 * Makefile.am (all-local): Rename from 'all'.
4 * Makefile.in: Regenerate.
6 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
9 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
10 (liblto_plugin_la_LDFLAGS): Add -module.
11 (copy_lto_plugin): Renamed to...
12 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
14 * Makefile.in: Rebuild.
16 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
19 * Makefile.am (Wc): New helper for encoding -Wc,.
20 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
21 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
22 * Makefile.in: Regenerated.
24 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
28 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
31 * Makefile.am (Wl): New helper for encoding -Wl,.
32 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
33 * Makefile.in: Regenerated.
35 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
38 * Makefile.am (Wl): New helper for encoding -Wl,.
39 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
40 * Makefile.in: Regenerated.
42 2011-01-25 Ian Lance Taylor <iant@google.com>
44 * lto-plugin.c (gold_version): New static variable.
45 (all_symbols_read_handler): Don't check pass_through_items if
46 using gold 1.11 or later.
47 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
49 2011-01-12 Richard Guenther <rguenther@suse.de>
52 * lto-plugin.c (parse_table_entry): Use memcpy to access
55 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
57 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
58 * Makefile.in: Regenerate.
60 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
64 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
67 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
68 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
69 * Makefile.in: Regenerate.
71 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
75 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
76 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
77 * configure: Regenerate.
78 * config.h.in: Likewise.
80 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
84 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
85 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
86 override -bindir setting.
87 * aclocal.m4: Regenerate.
88 * configure: Regenerate.
89 * Makefile.in: Regenerate.
91 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
93 * config.h.in: Regenerated.
94 * configure: Regenerated.
95 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
96 * lto-plugin.c (WIFEXITED): Define default.
97 (WEXITSTATUS): Likeiwse.
99 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
101 * config.h.in: Regenerated.
102 * configure: Regenerated.
103 * Makefile.in: Regenerated.
104 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
105 * lto-plugin.c: Include sys/wait.h conditionally.
106 * aclocal.m4: Regenerated.
108 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
110 * lto-plugin.c (add_output_files): Fix memory leak.
112 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
116 * configure.ac: Add AC_TYPE_INT64_T test.
117 * config.h.in: Regenerate.
118 * configure: Likewise.
119 * lto-plugin.c (debug): Use char not bool.
121 (check_1): Rename from check, and use int not bool for gate argument.
122 (check): Macro wrapper for the above to coerce gate argument into
123 boolean-valued integer in case it has pointer type.
124 (parse_table_entry): Use 0 not false.
125 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
126 into two 32-bit parts and printing as hex ints.
128 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
131 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
133 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
136 * lto-plugin.h: Delete.
137 * lto-plugin-elf.c: Likewise.
138 * lto-plugin-coff.c: Likewise.
139 * configure.ac: Don't use libelf, don't source config.gcc.
140 (LIBELFLIBS): Delete.
142 (LTO_FORMAT): Delete.
143 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
144 (config.h): Add AC_CONFIG_HEADERS directive.
145 * Makefile.am (LIBELFLIBS): Delete.
147 (LTO_FORMAT): Delete.
149 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
150 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
151 any object-format-specific source file in the link.
152 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
153 * config.h.in: Generate.
154 * configure: Regenerate.
155 * Makefile.in: Likewise.
156 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
157 (LTO_SEGMENT_NAME): New definition.
158 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
159 (LTO_SECTION_PREFIX_LEN): New definition.
160 (struct sym_aux): Struct definition moved here from lto-plugin.h.
161 (struct plugin_symtab): Likewise.
162 (struct plugin_objfile): Likewise.
163 (struct plugin_objfile): New struct def.
164 (enum symbol_style): New enum type.
165 (add_symbols): Make static.
166 (claimed_files): Likewise.
167 (num_claimed_files): Likewise.
168 (sym_style): New global.
169 (check): Make static.
170 (parse_table_entry): Likewise. Respect sym_style when extracting
171 symbol from symtab entry.
172 (translate): Make static.
173 (resolve_conflicts): Likewise.
174 (process_symtab): New function, per-section callback version of
175 old object-format-specific handling from deleted lto-plugin-elf.c.
176 (claim_file_handler): Convert ELF-specific version from deleted
177 lto-plugin-elf.c to simple_object interface and move here.
178 (process_options): Allow new '-sym-style=' option.
179 (onload): Don't call deleted onload_format_checks hook.
181 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
183 * lto-plugin.c (dump_symtab): Correct printf argument type.
184 (finish_conflict_resolution): Initialize resolution.
186 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
189 * configure.ac: Add AC_CANONICAL_SYSTEM.
190 * configure: Regenerated.
192 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
194 * configure.ac: Source config.gcc to determine lto_binary_reader.
195 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
196 * Makefile.am (LTO_FORMAT): Import.
197 (liblto_plugin_la_SOURCES): Add object format dependent module
198 defined by LTO_FORMAT.
199 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
200 and work around libtool warning.
201 * configure: Regenerate.
202 * Makefile.in: Likewise.
203 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
204 (struct sym_aux): Likewise.
205 (struct plugin_symtab): Likewise.
206 (struct plugin_file_info): Likewise.
207 (LTO_SECTION_PREFIX): Likewise.
208 (add_symbols): Make non-static.
209 (claimed_files): Likewise.
210 (num_claimed_files): Likewise.
212 (parse_table_entry): Likewise.
213 (translate): Likewise.
214 (resolve_conflicts): Likewise.
215 (process_symtab): Move to new lto-plugin-elf.c object format dependent
217 (claim_file_handler): Likewise, and make non-static.
218 (onload): Call new onload_format_checks function.
219 * lto-plugin.h: New file.
220 (LTO_SECTION_PREFIX): Move here.
221 (struct sym_aux): Likewise.
222 (struct plugin_symtab): Likewise.
223 (struct plugin_file_info): Likewise.
224 (claim_file_handler): Add new function prototype.
225 (onload_format_checks): Likewise.
226 (check): Declare extern.
227 (translate): Likewise.
228 (parse_table_entry): Likewise.
229 (resolve_conflicts): Likewise.
230 (add_symbols): Likewise.
231 (claimed_files): Likewise.
232 (num_claimed_files): Likewise.
233 * lto-plugin-elf.c (process_symtab): Move here.
234 (claim_file_handler): Likewise, and make non-static.
235 (onload_format_checks): New function factored out from onload.
236 * lto-plugin-coff.c (claim_file_handler): New function stub.
237 (onload_format_checks): Likewise.
239 2010-08-05 Andi Kleen <ak@linux.intel.com>
241 * lto-plugin.c: Include <hashtab.h>
242 (sym_aux): Add next_conflict field to save conflict chains.
243 (plugin_file_info): Add conflicts symtab.
244 (parse_table_entry): Initialize aux->next_conflict.
245 (process_symtab): Increment found.
247 (finish_conflict_resolution): Add.
249 (write_resolution): Remove symbols loop and move into
250 dump_symtab. Call dump_symtab for main symbol and conflicts table.
251 Call free_symtab to free conflicts table.
255 (symbol_strength): Add.
256 (resolve_conflicts): Add.
257 (claim_file_handler): Add n variable. Check return value of
258 process_symtab. Call resolve_conflicts.
260 2010-07-27 Andi Kleen <ak@linux.intel.com>
262 * lto-plugin.c (translate): Remove debug fprintf.
264 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
267 * lto-plugin.c (translate): Cast to unsigned long.
269 2010-07-23 Andi Kleen <ak@linux.intel.com>
272 * lto-plugin.c (sym_aux): Add.
273 (plugin_symtab): Remove slots. Add aux and id.
274 (parse_table_entry): Change to use aux instead of slots.
275 (LTO_SECTION_PREFIX): Add.
276 (translate): Improve buffer allocation. Change to append
277 symbols to existing out buffer.
278 (get_section): Remove.
279 (process_symtab): Add.
280 (free_2): Free symtab->aux.
281 (write_resolution): Handle aux instead of slots.
282 Print sub id to resolution file.
283 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
284 calls with call to process_symtab.
286 2010-07-22 Richard Guenther <rguenther@suse.de>
288 * Makefile.am: New copy_lto_plugin rule to install the plugin
290 * Makefile.in: Regenerated.
292 2010-05-21 Richard Guenther <rguenther@suse.de>
294 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
296 2010-05-07 Richard Guenther <rguenther@suse.de>
298 * lto-plugin.c (free_2): Do not free resolution_file.
299 (write_resolution): Check that we were passed a resolution file.
300 (all_symbols_read_handler): Adjust.
301 (cleanup_handler): Do not remove the resolution file.
302 (process_option): Handle -fresolution=.
304 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
307 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
308 * Makefile.in: Regenerate.
310 2010-04-23 Richard Guenther <rguenther@suse.de>
313 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
314 (translate): Likewise.
315 (all_symbols_read_handler): Likewise.
316 (claim_file_handler): Likewise.
317 (process_option): Likewise.
318 (add_output_files): Likewise. Remove filename length limit.
320 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
322 * Makefile.in: Regenerate.
323 * aclocal.m4: Regenerate.
325 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
328 * lto-plugin.c (cleanup_handler): Delete temporary output files.
330 2010-01-11 Richard Guenther <rguenther@suse.de>
333 * Makefile.am: Disable dependencies.
334 * Makefile.in: Regenerated.
336 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
339 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
342 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
345 * configure: Regenerated.
346 * Makefile.in: Likewise.
348 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
351 * lto-plugin.c (claim_file_handler): Print offsets in hex.
353 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
355 * lto-plugin.c (write_resolution): Assume resolution_file is set.
356 Print the symbol name.
357 (all_symbols_read_handler): Create a resolution file.
359 (cleanup_handler): Remove the resolution file.
360 (process_option): Drop the -resolution option.
362 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
364 * lto-plugin.c (temp_obj_dir_name): Remove.
365 (arguments_file_name): New.
366 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
367 (exec_lto_wrapper): Create arguments file with make_temp_file.
368 (cleanup_handler): Don't remove the temporary directory. Remove the
370 (onload): Don't create the temporary directory.
372 2009-11-04 Richard Guenther <rguenther@suse.de>
373 Rafael Avila de Espindola <espindola@google.com>
375 * lto-plugin.c (plugin_file_info): Remove temp field.
376 (cleanup_handler): Don't delete temporary objects.
377 (claim_file_handler): Don't create temporary objects.
379 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
381 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
383 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
386 * lto-plugin.c (claim_file_handler): Close files that we created.
388 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
390 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
393 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
396 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
397 * configure: Regenerate.
399 2009-10-26 Richard Guenther <rguenther@suse.de>
401 * configure.ac: Use AM_MAINTAINER_MODE.
402 * acinclude.m4: Remove.
403 * configure: Re-generate.
404 * Makefile.in: Likewise.
405 * aclocal.m4: Likewise.
407 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
410 * configure: Regenerate.
411 * configure.ac: Add AC_TYPE_UINT64_T.
413 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
415 * lto-plugin.c (message): New variable.
416 (check): New function.
417 (parse_table_entry, translate, write_resolution,add_output_files,
418 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
420 (cleanup_handler): Use check instead of assert. Remove the arguments
423 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
425 * lto-plugin.c (resolution_file): New.
426 (free_1): Update comment.
427 (free_2): Free resolution_file.
428 (write_resolution): Write resolution to specified file. Use the
429 syms array from the symbol table.
430 (all_symbols_read_handler): Delay call to free_1 past call to
432 (process_option): Add a -resolution option.
434 2009-10-13 Richard Guenther <rguenther@suse.de>
436 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
438 * Makefile.in: Regenerated.
440 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
442 * lto-plugin.c (add_input_library): New.
443 (all_symbols_read_handler): Use add_input_library for items that
445 (process_option): Fit in 80 columns.
446 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
448 2009-10-02 Diego Novillo <dnovillo@google.com>
450 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
451 and -D_FILE_OFFSET_BITS=64.
452 * configure.ac: Add AC_SYS_LARGEFILE.
453 * configure: Regenerate.
454 * Makefile.in: Regenerate.
455 * lto-plugin.c: Fix copyright boilerplate.
457 2009-10-02 Diego Novillo <dnovillo@google.com>
459 * Makefile.am (ACLOCAL_AMFLAGS): Define.
460 * aclocal.m4: Regenerate with aclocal-2.64
461 * acinclude.m4: Remove.
462 * Makefile.in: Regenerate with automake-1.11
463 * configure.ac (AC_PREREQ): Update to 2.64.
464 * configure: Regenerate.
466 2009-10-02 Diego Novillo <dnovillo@google.com>
468 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
469 and -D_FILE_OFFSET_BITS=64.
470 * configure.ac: Add AC_SYS_LARGEFILE.
471 * configure: Regenerate.
472 * Makefile.in: Regenerate.
473 * lto-plugin.c: Fix copyright boilerplate.
475 2009-10-02 Diego Novillo <dnovillo@google.com>
477 * Makefile.am (ACLOCAL_AMFLAGS): Define.
478 * aclocal.m4: Regenerate with aclocal-2.64
479 * acinclude.m4: Remove.
480 * Makefile.in: Regenerate with automake-1.11
481 * configure.ac (AC_PREREQ): Update to 2.64.
482 * configure: Regenerate.
484 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
486 * Makefile.am (liblto_plugin_la_SOURCES): Remove
487 $(top_srcdir)/../gcc/lto/common.c
488 * Makefile.in: Regenerate.
490 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
492 * lto-plugin.c (pass_through_items): New.
493 (num_pass_through_items): New.
494 (all_symbols_read_handler): Update to use the -pass-through option.
495 (process_option): Replace -libgcc with -pass-through.
497 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
499 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
500 register_cleanup to be set.
502 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
504 * Makefile.am: Remove all reference to ltosymtab.
505 * Makefile.in: Regenerate.
506 * lto-symtab.c: Remove.
508 2009-05-21 Diego Novillo <dnovillo@google.com>
510 * configure.ac: Remove call to AC_CHECK_GELF.
511 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
512 * acinclude.m4: Do not include ../config/libelf.m4
513 * Makefile.am (LIBELFLIBS): Define.
515 (AM_CPPFLAGS): Add $(LIBELFINC).
516 (ltosymtab_LDADD): Add $(LIBELFLIBS).
517 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
518 * lto-plugin.c: Always include <gelf.h>
519 * lto-symtab.c: Likewise.
520 * configure: Regenerate.
521 * Makefile.in: Regenerate.
523 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
525 * lto-plugin.c (libgcc_filename): New.
526 (all_symbols_read_handler): Pass libgcc to the linker.
527 (all_symbols_read_handler): Parse -libgcc
529 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
531 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
532 * Makefile.in: Regenerate.
533 * lto-plugin.c (add_output_files): Argument is now a FILE.
534 (exec_lto_wrapper): Use writeargv and pex.
536 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
539 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
540 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
543 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
545 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
547 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
549 * lto-plugin.c: Include libiberty.h.
550 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
553 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
555 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
558 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
560 * lto-plugin.c (plugin_file_info): Remove fd and elf.
561 (parse_table_entry): strdup entry->name and entry->comdat_key.
562 (free_1): Free name and comdat_key. Don't close the file. Don't call
564 (claim_file_handler): Always call elf_end.
566 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
568 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
569 -D_FILE_OFFSET_BITS=64
570 * Makefile.in: Regenerate
572 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
574 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
575 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
576 * Makefile.in: Regenerate.
577 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
578 * configure: Regenerate.
579 * configure.ac: Add AC_SUBST(target_noncanonical).
581 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
583 * lto-plugin.c: Include stdbool.h.
584 (debug, nop): Declare as bool.
586 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
588 * lto-plugin.c (nop): New.
589 (use_original_files): New.
590 (all_symbols_read_handler): Call use_original_files if nop is true.
591 (process_option): Parse the -nop option.
593 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
595 * lto-plugin.c (debug): New.
596 (exec_lto_wrapper): Print argv if debug is true.
597 (process_option): Process the -debug command line option.
599 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
601 * lto-plugin.c (process_option): The argument is now a single option,
602 not a space separated list.
604 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
606 * lto-plugin.c: Include sys/types.h and sys/wait.h
607 (output_files, num_output_files, lto_wrapper_argv,
608 lto_wrapper_num_args): New.
609 (free_2): Free output_files.
610 (write_resolution): Disable.
611 (add_output_files): New.
612 (exec_lto_wrapper): New.
613 (all_symbols_read_handler): Run lto-wrapper.
614 (claim_file_handler): Free lto_file.name and call elf_end.
615 (process_option): New.
617 2008-11-26 Rafael Espindola <espindola@google.com>
619 * lto-plugin.c (add_input_file): New.
620 (get_section): Return NULL if get_section fails.
621 (write_resolution): New.
622 (all_symbols_read_handler): Call add_input_file.
623 (claim_file_handler): Unlink the correct file.
624 (onload): Record add_input_file.
626 2008-09-23 Rafael Espindola <espindola@google.com>
628 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
629 Update the location of common.c.
630 * Makefile.in: Regenerate.
631 * common.c: Moved to gcc/lto.
632 * common.h: Moved to gcc/lto.
633 * lto-plugin.c: Update the location of common.h.
634 * lto-symtab.c: Update the location of common.h.
636 2008-09-23 Rafael Espindola <espindola@google.com>
638 * common.c: Include common.h.
639 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
641 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
644 2008-09-23 Rafael Espindola <espindola@google.com>
646 * lto-plugin.c (plugin_file_info): Add temp.
647 (cleanup_handler): Only delete temporary files.
648 (claim_file_handler): Initialize lto_file.temp.
650 2008-09-23 Rafael Espindola <espindola@google.com>
652 * plugin-api.h: Moved to include.
654 2008-09-23 Rafael Espindola <espindola@google.com>
656 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
659 2008-09-22 Rafael Espindola <espindola@google.com>
661 * plugin-api.h: Copy from binutils' cvs.
663 2008-09-22 Rafael Espindola <espindola@google.com>
665 * lto-symtab.c (get_symbols, add_symbols): Update signature.
666 * plugin-api.h: Copy from binutils' cvs.
668 2008-09-22 Rafael Espindola <espindola@google.com>
670 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
673 2008-09-10 Rafael Espindola <espindola@google.com>
675 * lto-plugin.c (onload): add missing break statements and asserts.
676 * lto-symtab.c (claim_file_handler): Make it static.
677 (all_symbols_read_handler): Make it static.
678 (all_file_handles): Make it static.
679 (num_file_handles): Make it static.
680 (register_claim_file): Make it static.
681 (register_object): Indent properly.
683 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
685 * Makefile.am (ltosymtab_LDADD): Add -lelf.
686 * Makefiel.in: Regenerate.
687 * lto-plugin.c: Include ar.h.
688 (claim_file_handler): Handle file->offset != 0.
689 * lto-symtab.c: Include gelf.h.
690 (all_file_handles): Change type.
691 (register_object): New.
692 (register_file): Add support for archives.
693 (resolve): Update to new type of all_file_handles.
694 (print): Update to new type of all_file_handles.
695 (free_all): Update to new type of all_file_handles.
696 (main): Update to new type of all_file_handles.
698 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
700 * lto-plugin.c (get_string_table): Remove.
701 (get_section): Use elf_strptr instead of get_string_table.
703 2008-09-08 Doug Kwan <dougkwan@google.com>
705 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
706 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
708 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
710 * Makefile.am (ltosymtab_SOURCES): add common.c.
711 (ltosymtab_CFLAGS): New.
712 (liblto_plugin_la_SOURCES): Add common.c.
713 * Makefile.in: Regenerate.
716 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
717 (plugin_symtab): New.
718 (plugin_file_info): New.
719 (register_all_symbols_read): New.
721 (claimed_files): New.
722 (num_claimed_files): New.
723 (translate): Don't drop the slot number.
726 (all_symbols_read_handler): New.
727 (claim_file_handler): Record every claimed file.
728 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
730 * lto-symtab.c: Include stdlib.h, string.h and common.h.
731 (current_file_handle): Remove.
732 (ld_plugin_all_symbols_read_handler): New.
733 (plugin_handle): New.
735 (all_file_handles): New.
736 (num_file_handles): New.
738 (register_all_symbols_read): New.
739 (add_symbols): Don't print the symbols, just record them.
740 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
742 (load_plugin): Use plugin_handle.
743 (register_file): Add the file handle to all_file_handles.
746 (unload_plugin): New.
748 (main): Call all_symbols_read_handler and free resources.
750 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
752 * Makefile.am (AM_CFLAGS): New.
753 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
754 (lib_LTLIBRARIES): New.
755 (liblto_plugin_la_SOURCES): New.
756 (liblto_plugin_la_LIBADD): New.
757 * Makefile.in: Regenerate.
758 * acinclude.m4: Don't include ../config/acx.m4 and
759 ../config/no-executables.m4.
760 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
762 * aclocal.m4: Regenerate.
763 * configure: Regenerate.
764 * configure.ac: Use AM_PROG_LIBTOOL.
766 * lto-symtab.c: Rewrite to use the plugin.
769 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
771 * configure: Regenerate.
772 * configure.ac: Use AC_CHECK_GELF.
773 * lto-symtab.c: Include gelf.h.
774 (get_string_table): Use size independent API.
775 (printTable): Use lld to print 64 bit integers.
777 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
779 * lto-symtab.c (parse_table_entry): Assert entry->kind and
780 entry->visibility are valid.
782 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
783 * lto-symtab.c (table_entry): Add comdat.
784 (parse_table_entry): Read comdat.
786 2008-08-21 Rafael Espindola <espindola@google.com>