1 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
4 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
5 (liblto_plugin_la_LDFLAGS): Add -module.
6 (copy_lto_plugin): Renamed to...
7 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
9 * Makefile.in: Rebuild.
11 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
14 * Makefile.am (Wc): New helper for encoding -Wc,.
15 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
16 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
17 * Makefile.in: Regenerated.
19 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
23 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
26 * Makefile.am (Wl): New helper for encoding -Wl,.
27 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
28 * Makefile.in: Regenerated.
30 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
33 * Makefile.am (Wl): New helper for encoding -Wl,.
34 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
35 * Makefile.in: Regenerated.
37 2011-01-25 Ian Lance Taylor <iant@google.com>
39 * lto-plugin.c (gold_version): New static variable.
40 (all_symbols_read_handler): Don't check pass_through_items if
41 using gold 1.11 or later.
42 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
44 2011-01-12 Richard Guenther <rguenther@suse.de>
47 * lto-plugin.c (parse_table_entry): Use memcpy to access
50 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
52 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
53 * Makefile.in: Regenerate.
55 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
59 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
61 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
62 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
63 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
64 * Makefile.in: Regenerate.
66 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
70 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
71 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
72 * configure: Regenerate.
73 * config.h.in: Likewise.
75 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
79 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
80 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
81 override -bindir setting.
82 * aclocal.m4: Regenerate.
83 * configure: Regenerate.
84 * Makefile.in: Regenerate.
86 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
88 * config.h.in: Regenerated.
89 * configure: Regenerated.
90 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
91 * lto-plugin.c (WIFEXITED): Define default.
92 (WEXITSTATUS): Likeiwse.
94 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
96 * config.h.in: Regenerated.
97 * configure: Regenerated.
98 * Makefile.in: Regenerated.
99 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
100 * lto-plugin.c: Include sys/wait.h conditionally.
101 * aclocal.m4: Regenerated.
103 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
105 * lto-plugin.c (add_output_files): Fix memory leak.
107 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
111 * configure.ac: Add AC_TYPE_INT64_T test.
112 * config.h.in: Regenerate.
113 * configure: Likewise.
114 * lto-plugin.c (debug): Use char not bool.
116 (check_1): Rename from check, and use int not bool for gate argument.
117 (check): Macro wrapper for the above to coerce gate argument into
118 boolean-valued integer in case it has pointer type.
119 (parse_table_entry): Use 0 not false.
120 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
121 into two 32-bit parts and printing as hex ints.
123 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
126 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
128 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
131 * lto-plugin.h: Delete.
132 * lto-plugin-elf.c: Likewise.
133 * lto-plugin-coff.c: Likewise.
134 * configure.ac: Don't use libelf, don't source config.gcc.
135 (LIBELFLIBS): Delete.
137 (LTO_FORMAT): Delete.
138 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
139 (config.h): Add AC_CONFIG_HEADERS directive.
140 * Makefile.am (LIBELFLIBS): Delete.
142 (LTO_FORMAT): Delete.
144 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
145 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
146 any object-format-specific source file in the link.
147 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
148 * config.h.in: Generate.
149 * configure: Regenerate.
150 * Makefile.in: Likewise.
151 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
152 (LTO_SEGMENT_NAME): New definition.
153 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
154 (LTO_SECTION_PREFIX_LEN): New definition.
155 (struct sym_aux): Struct definition moved here from lto-plugin.h.
156 (struct plugin_symtab): Likewise.
157 (struct plugin_objfile): Likewise.
158 (struct plugin_objfile): New struct def.
159 (enum symbol_style): New enum type.
160 (add_symbols): Make static.
161 (claimed_files): Likewise.
162 (num_claimed_files): Likewise.
163 (sym_style): New global.
164 (check): Make static.
165 (parse_table_entry): Likewise. Respect sym_style when extracting
166 symbol from symtab entry.
167 (translate): Make static.
168 (resolve_conflicts): Likewise.
169 (process_symtab): New function, per-section callback version of
170 old object-format-specific handling from deleted lto-plugin-elf.c.
171 (claim_file_handler): Convert ELF-specific version from deleted
172 lto-plugin-elf.c to simple_object interface and move here.
173 (process_options): Allow new '-sym-style=' option.
174 (onload): Don't call deleted onload_format_checks hook.
176 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
178 * lto-plugin.c (dump_symtab): Correct printf argument type.
179 (finish_conflict_resolution): Initialize resolution.
181 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
184 * configure.ac: Add AC_CANONICAL_SYSTEM.
185 * configure: Regenerated.
187 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
189 * configure.ac: Source config.gcc to determine lto_binary_reader.
190 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
191 * Makefile.am (LTO_FORMAT): Import.
192 (liblto_plugin_la_SOURCES): Add object format dependent module
193 defined by LTO_FORMAT.
194 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
195 and work around libtool warning.
196 * configure: Regenerate.
197 * Makefile.in: Likewise.
198 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
199 (struct sym_aux): Likewise.
200 (struct plugin_symtab): Likewise.
201 (struct plugin_file_info): Likewise.
202 (LTO_SECTION_PREFIX): Likewise.
203 (add_symbols): Make non-static.
204 (claimed_files): Likewise.
205 (num_claimed_files): Likewise.
207 (parse_table_entry): Likewise.
208 (translate): Likewise.
209 (resolve_conflicts): Likewise.
210 (process_symtab): Move to new lto-plugin-elf.c object format dependent
212 (claim_file_handler): Likewise, and make non-static.
213 (onload): Call new onload_format_checks function.
214 * lto-plugin.h: New file.
215 (LTO_SECTION_PREFIX): Move here.
216 (struct sym_aux): Likewise.
217 (struct plugin_symtab): Likewise.
218 (struct plugin_file_info): Likewise.
219 (claim_file_handler): Add new function prototype.
220 (onload_format_checks): Likewise.
221 (check): Declare extern.
222 (translate): Likewise.
223 (parse_table_entry): Likewise.
224 (resolve_conflicts): Likewise.
225 (add_symbols): Likewise.
226 (claimed_files): Likewise.
227 (num_claimed_files): Likewise.
228 * lto-plugin-elf.c (process_symtab): Move here.
229 (claim_file_handler): Likewise, and make non-static.
230 (onload_format_checks): New function factored out from onload.
231 * lto-plugin-coff.c (claim_file_handler): New function stub.
232 (onload_format_checks): Likewise.
234 2010-08-05 Andi Kleen <ak@linux.intel.com>
236 * lto-plugin.c: Include <hashtab.h>
237 (sym_aux): Add next_conflict field to save conflict chains.
238 (plugin_file_info): Add conflicts symtab.
239 (parse_table_entry): Initialize aux->next_conflict.
240 (process_symtab): Increment found.
242 (finish_conflict_resolution): Add.
244 (write_resolution): Remove symbols loop and move into
245 dump_symtab. Call dump_symtab for main symbol and conflicts table.
246 Call free_symtab to free conflicts table.
250 (symbol_strength): Add.
251 (resolve_conflicts): Add.
252 (claim_file_handler): Add n variable. Check return value of
253 process_symtab. Call resolve_conflicts.
255 2010-07-27 Andi Kleen <ak@linux.intel.com>
257 * lto-plugin.c (translate): Remove debug fprintf.
259 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
262 * lto-plugin.c (translate): Cast to unsigned long.
264 2010-07-23 Andi Kleen <ak@linux.intel.com>
267 * lto-plugin.c (sym_aux): Add.
268 (plugin_symtab): Remove slots. Add aux and id.
269 (parse_table_entry): Change to use aux instead of slots.
270 (LTO_SECTION_PREFIX): Add.
271 (translate): Improve buffer allocation. Change to append
272 symbols to existing out buffer.
273 (get_section): Remove.
274 (process_symtab): Add.
275 (free_2): Free symtab->aux.
276 (write_resolution): Handle aux instead of slots.
277 Print sub id to resolution file.
278 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
279 calls with call to process_symtab.
281 2010-07-22 Richard Guenther <rguenther@suse.de>
283 * Makefile.am: New copy_lto_plugin rule to install the plugin
285 * Makefile.in: Regenerated.
287 2010-05-21 Richard Guenther <rguenther@suse.de>
289 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
291 2010-05-07 Richard Guenther <rguenther@suse.de>
293 * lto-plugin.c (free_2): Do not free resolution_file.
294 (write_resolution): Check that we were passed a resolution file.
295 (all_symbols_read_handler): Adjust.
296 (cleanup_handler): Do not remove the resolution file.
297 (process_option): Handle -fresolution=.
299 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
302 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
303 * Makefile.in: Regenerate.
305 2010-04-23 Richard Guenther <rguenther@suse.de>
308 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
309 (translate): Likewise.
310 (all_symbols_read_handler): Likewise.
311 (claim_file_handler): Likewise.
312 (process_option): Likewise.
313 (add_output_files): Likewise. Remove filename length limit.
315 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
317 * Makefile.in: Regenerate.
318 * aclocal.m4: Regenerate.
320 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
323 * lto-plugin.c (cleanup_handler): Delete temporary output files.
325 2010-01-11 Richard Guenther <rguenther@suse.de>
328 * Makefile.am: Disable dependencies.
329 * Makefile.in: Regenerated.
331 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
334 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
337 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
340 * configure: Regenerated.
341 * Makefile.in: Likewise.
343 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
346 * lto-plugin.c (claim_file_handler): Print offsets in hex.
348 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
350 * lto-plugin.c (write_resolution): Assume resolution_file is set.
351 Print the symbol name.
352 (all_symbols_read_handler): Create a resolution file.
354 (cleanup_handler): Remove the resolution file.
355 (process_option): Drop the -resolution option.
357 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
359 * lto-plugin.c (temp_obj_dir_name): Remove.
360 (arguments_file_name): New.
361 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
362 (exec_lto_wrapper): Create arguments file with make_temp_file.
363 (cleanup_handler): Don't remove the temporary directory. Remove the
365 (onload): Don't create the temporary directory.
367 2009-11-04 Richard Guenther <rguenther@suse.de>
368 Rafael Avila de Espindola <espindola@google.com>
370 * lto-plugin.c (plugin_file_info): Remove temp field.
371 (cleanup_handler): Don't delete temporary objects.
372 (claim_file_handler): Don't create temporary objects.
374 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
376 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
378 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
381 * lto-plugin.c (claim_file_handler): Close files that we created.
383 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
385 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
388 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
391 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
392 * configure: Regenerate.
394 2009-10-26 Richard Guenther <rguenther@suse.de>
396 * configure.ac: Use AM_MAINTAINER_MODE.
397 * acinclude.m4: Remove.
398 * configure: Re-generate.
399 * Makefile.in: Likewise.
400 * aclocal.m4: Likewise.
402 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
405 * configure: Regenerate.
406 * configure.ac: Add AC_TYPE_UINT64_T.
408 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
410 * lto-plugin.c (message): New variable.
411 (check): New function.
412 (parse_table_entry, translate, write_resolution,add_output_files,
413 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
415 (cleanup_handler): Use check instead of assert. Remove the arguments
418 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
420 * lto-plugin.c (resolution_file): New.
421 (free_1): Update comment.
422 (free_2): Free resolution_file.
423 (write_resolution): Write resolution to specified file. Use the
424 syms array from the symbol table.
425 (all_symbols_read_handler): Delay call to free_1 past call to
427 (process_option): Add a -resolution option.
429 2009-10-13 Richard Guenther <rguenther@suse.de>
431 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
433 * Makefile.in: Regenerated.
435 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
437 * lto-plugin.c (add_input_library): New.
438 (all_symbols_read_handler): Use add_input_library for items that
440 (process_option): Fit in 80 columns.
441 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
443 2009-10-02 Diego Novillo <dnovillo@google.com>
445 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
446 and -D_FILE_OFFSET_BITS=64.
447 * configure.ac: Add AC_SYS_LARGEFILE.
448 * configure: Regenerate.
449 * Makefile.in: Regenerate.
450 * lto-plugin.c: Fix copyright boilerplate.
452 2009-10-02 Diego Novillo <dnovillo@google.com>
454 * Makefile.am (ACLOCAL_AMFLAGS): Define.
455 * aclocal.m4: Regenerate with aclocal-2.64
456 * acinclude.m4: Remove.
457 * Makefile.in: Regenerate with automake-1.11
458 * configure.ac (AC_PREREQ): Update to 2.64.
459 * configure: Regenerate.
461 2009-10-02 Diego Novillo <dnovillo@google.com>
463 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
464 and -D_FILE_OFFSET_BITS=64.
465 * configure.ac: Add AC_SYS_LARGEFILE.
466 * configure: Regenerate.
467 * Makefile.in: Regenerate.
468 * lto-plugin.c: Fix copyright boilerplate.
470 2009-10-02 Diego Novillo <dnovillo@google.com>
472 * Makefile.am (ACLOCAL_AMFLAGS): Define.
473 * aclocal.m4: Regenerate with aclocal-2.64
474 * acinclude.m4: Remove.
475 * Makefile.in: Regenerate with automake-1.11
476 * configure.ac (AC_PREREQ): Update to 2.64.
477 * configure: Regenerate.
479 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
481 * Makefile.am (liblto_plugin_la_SOURCES): Remove
482 $(top_srcdir)/../gcc/lto/common.c
483 * Makefile.in: Regenerate.
485 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
487 * lto-plugin.c (pass_through_items): New.
488 (num_pass_through_items): New.
489 (all_symbols_read_handler): Update to use the -pass-through option.
490 (process_option): Replace -libgcc with -pass-through.
492 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
494 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
495 register_cleanup to be set.
497 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
499 * Makefile.am: Remove all reference to ltosymtab.
500 * Makefile.in: Regenerate.
501 * lto-symtab.c: Remove.
503 2009-05-21 Diego Novillo <dnovillo@google.com>
505 * configure.ac: Remove call to AC_CHECK_GELF.
506 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
507 * acinclude.m4: Do not include ../config/libelf.m4
508 * Makefile.am (LIBELFLIBS): Define.
510 (AM_CPPFLAGS): Add $(LIBELFINC).
511 (ltosymtab_LDADD): Add $(LIBELFLIBS).
512 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
513 * lto-plugin.c: Always include <gelf.h>
514 * lto-symtab.c: Likewise.
515 * configure: Regenerate.
516 * Makefile.in: Regenerate.
518 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
520 * lto-plugin.c (libgcc_filename): New.
521 (all_symbols_read_handler): Pass libgcc to the linker.
522 (all_symbols_read_handler): Parse -libgcc
524 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
526 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
527 * Makefile.in: Regenerate.
528 * lto-plugin.c (add_output_files): Argument is now a FILE.
529 (exec_lto_wrapper): Use writeargv and pex.
531 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
534 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
535 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
538 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
540 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
542 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
544 * lto-plugin.c: Include libiberty.h.
545 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
548 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
550 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
553 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
555 * lto-plugin.c (plugin_file_info): Remove fd and elf.
556 (parse_table_entry): strdup entry->name and entry->comdat_key.
557 (free_1): Free name and comdat_key. Don't close the file. Don't call
559 (claim_file_handler): Always call elf_end.
561 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
563 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
564 -D_FILE_OFFSET_BITS=64
565 * Makefile.in: Regenerate
567 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
569 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
570 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
571 * Makefile.in: Regenerate.
572 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
573 * configure: Regenerate.
574 * configure.ac: Add AC_SUBST(target_noncanonical).
576 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
578 * lto-plugin.c: Include stdbool.h.
579 (debug, nop): Declare as bool.
581 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
583 * lto-plugin.c (nop): New.
584 (use_original_files): New.
585 (all_symbols_read_handler): Call use_original_files if nop is true.
586 (process_option): Parse the -nop option.
588 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
590 * lto-plugin.c (debug): New.
591 (exec_lto_wrapper): Print argv if debug is true.
592 (process_option): Process the -debug command line option.
594 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
596 * lto-plugin.c (process_option): The argument is now a single option,
597 not a space separated list.
599 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
601 * lto-plugin.c: Include sys/types.h and sys/wait.h
602 (output_files, num_output_files, lto_wrapper_argv,
603 lto_wrapper_num_args): New.
604 (free_2): Free output_files.
605 (write_resolution): Disable.
606 (add_output_files): New.
607 (exec_lto_wrapper): New.
608 (all_symbols_read_handler): Run lto-wrapper.
609 (claim_file_handler): Free lto_file.name and call elf_end.
610 (process_option): New.
612 2008-11-26 Rafael Espindola <espindola@google.com>
614 * lto-plugin.c (add_input_file): New.
615 (get_section): Return NULL if get_section fails.
616 (write_resolution): New.
617 (all_symbols_read_handler): Call add_input_file.
618 (claim_file_handler): Unlink the correct file.
619 (onload): Record add_input_file.
621 2008-09-23 Rafael Espindola <espindola@google.com>
623 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
624 Update the location of common.c.
625 * Makefile.in: Regenerate.
626 * common.c: Moved to gcc/lto.
627 * common.h: Moved to gcc/lto.
628 * lto-plugin.c: Update the location of common.h.
629 * lto-symtab.c: Update the location of common.h.
631 2008-09-23 Rafael Espindola <espindola@google.com>
633 * common.c: Include common.h.
634 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
636 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
639 2008-09-23 Rafael Espindola <espindola@google.com>
641 * lto-plugin.c (plugin_file_info): Add temp.
642 (cleanup_handler): Only delete temporary files.
643 (claim_file_handler): Initialize lto_file.temp.
645 2008-09-23 Rafael Espindola <espindola@google.com>
647 * plugin-api.h: Moved to include.
649 2008-09-23 Rafael Espindola <espindola@google.com>
651 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
654 2008-09-22 Rafael Espindola <espindola@google.com>
656 * plugin-api.h: Copy from binutils' cvs.
658 2008-09-22 Rafael Espindola <espindola@google.com>
660 * lto-symtab.c (get_symbols, add_symbols): Update signature.
661 * plugin-api.h: Copy from binutils' cvs.
663 2008-09-22 Rafael Espindola <espindola@google.com>
665 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
668 2008-09-10 Rafael Espindola <espindola@google.com>
670 * lto-plugin.c (onload): add missing break statements and asserts.
671 * lto-symtab.c (claim_file_handler): Make it static.
672 (all_symbols_read_handler): Make it static.
673 (all_file_handles): Make it static.
674 (num_file_handles): Make it static.
675 (register_claim_file): Make it static.
676 (register_object): Indent properly.
678 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
680 * Makefile.am (ltosymtab_LDADD): Add -lelf.
681 * Makefiel.in: Regenerate.
682 * lto-plugin.c: Include ar.h.
683 (claim_file_handler): Handle file->offset != 0.
684 * lto-symtab.c: Include gelf.h.
685 (all_file_handles): Change type.
686 (register_object): New.
687 (register_file): Add support for archives.
688 (resolve): Update to new type of all_file_handles.
689 (print): Update to new type of all_file_handles.
690 (free_all): Update to new type of all_file_handles.
691 (main): Update to new type of all_file_handles.
693 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
695 * lto-plugin.c (get_string_table): Remove.
696 (get_section): Use elf_strptr instead of get_string_table.
698 2008-09-08 Doug Kwan <dougkwan@google.com>
700 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
701 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
703 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
705 * Makefile.am (ltosymtab_SOURCES): add common.c.
706 (ltosymtab_CFLAGS): New.
707 (liblto_plugin_la_SOURCES): Add common.c.
708 * Makefile.in: Regenerate.
711 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
712 (plugin_symtab): New.
713 (plugin_file_info): New.
714 (register_all_symbols_read): New.
716 (claimed_files): New.
717 (num_claimed_files): New.
718 (translate): Don't drop the slot number.
721 (all_symbols_read_handler): New.
722 (claim_file_handler): Record every claimed file.
723 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
725 * lto-symtab.c: Include stdlib.h, string.h and common.h.
726 (current_file_handle): Remove.
727 (ld_plugin_all_symbols_read_handler): New.
728 (plugin_handle): New.
730 (all_file_handles): New.
731 (num_file_handles): New.
733 (register_all_symbols_read): New.
734 (add_symbols): Don't print the symbols, just record them.
735 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
737 (load_plugin): Use plugin_handle.
738 (register_file): Add the file handle to all_file_handles.
741 (unload_plugin): New.
743 (main): Call all_symbols_read_handler and free resources.
745 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
747 * Makefile.am (AM_CFLAGS): New.
748 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
749 (lib_LTLIBRARIES): New.
750 (liblto_plugin_la_SOURCES): New.
751 (liblto_plugin_la_LIBADD): New.
752 * Makefile.in: Regenerate.
753 * acinclude.m4: Don't include ../config/acx.m4 and
754 ../config/no-executables.m4.
755 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
757 * aclocal.m4: Regenerate.
758 * configure: Regenerate.
759 * configure.ac: Use AM_PROG_LIBTOOL.
761 * lto-symtab.c: Rewrite to use the plugin.
764 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
766 * configure: Regenerate.
767 * configure.ac: Use AC_CHECK_GELF.
768 * lto-symtab.c: Include gelf.h.
769 (get_string_table): Use size independent API.
770 (printTable): Use lld to print 64 bit integers.
772 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
774 * lto-symtab.c (parse_table_entry): Assert entry->kind and
775 entry->visibility are valid.
777 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
778 * lto-symtab.c (table_entry): Add comdat.
779 (parse_table_entry): Read comdat.
781 2008-08-21 Rafael Espindola <espindola@google.com>