1 2011-01-12 Richard Guenther <rguenther@suse.de>
4 * lto-plugin.c (parse_table_entry): Use memcpy to access
7 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
9 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
10 * Makefile.in: Regenerate.
12 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
19 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
20 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
21 * Makefile.in: Regenerate.
23 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
27 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
28 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
29 * configure: Regenerate.
30 * config.h.in: Likewise.
32 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
36 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
37 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
38 override -bindir setting.
39 * aclocal.m4: Regenerate.
40 * configure: Regenerate.
41 * Makefile.in: Regenerate.
43 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
45 * config.h.in: Regenerated.
46 * configure: Regenerated.
47 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
48 * lto-plugin.c (WIFEXITED): Define default.
49 (WEXITSTATUS): Likeiwse.
51 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
53 * config.h.in: Regenerated.
54 * configure: Regenerated.
55 * Makefile.in: Regenerated.
56 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
57 * lto-plugin.c: Include sys/wait.h conditionally.
58 * aclocal.m4: Regenerated.
60 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
62 * lto-plugin.c (add_output_files): Fix memory leak.
64 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
68 * configure.ac: Add AC_TYPE_INT64_T test.
69 * config.h.in: Regenerate.
70 * configure: Likewise.
71 * lto-plugin.c (debug): Use char not bool.
73 (check_1): Rename from check, and use int not bool for gate argument.
74 (check): Macro wrapper for the above to coerce gate argument into
75 boolean-valued integer in case it has pointer type.
76 (parse_table_entry): Use 0 not false.
77 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
78 into two 32-bit parts and printing as hex ints.
80 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
83 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
85 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
88 * lto-plugin.h: Delete.
89 * lto-plugin-elf.c: Likewise.
90 * lto-plugin-coff.c: Likewise.
91 * configure.ac: Don't use libelf, don't source config.gcc.
95 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
96 (config.h): Add AC_CONFIG_HEADERS directive.
97 * Makefile.am (LIBELFLIBS): Delete.
101 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
102 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
103 any object-format-specific source file in the link.
104 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
105 * config.h.in: Generate.
106 * configure: Regenerate.
107 * Makefile.in: Likewise.
108 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
109 (LTO_SEGMENT_NAME): New definition.
110 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
111 (LTO_SECTION_PREFIX_LEN): New definition.
112 (struct sym_aux): Struct definition moved here from lto-plugin.h.
113 (struct plugin_symtab): Likewise.
114 (struct plugin_objfile): Likewise.
115 (struct plugin_objfile): New struct def.
116 (enum symbol_style): New enum type.
117 (add_symbols): Make static.
118 (claimed_files): Likewise.
119 (num_claimed_files): Likewise.
120 (sym_style): New global.
121 (check): Make static.
122 (parse_table_entry): Likewise. Respect sym_style when extracting
123 symbol from symtab entry.
124 (translate): Make static.
125 (resolve_conflicts): Likewise.
126 (process_symtab): New function, per-section callback version of
127 old object-format-specific handling from deleted lto-plugin-elf.c.
128 (claim_file_handler): Convert ELF-specific version from deleted
129 lto-plugin-elf.c to simple_object interface and move here.
130 (process_options): Allow new '-sym-style=' option.
131 (onload): Don't call deleted onload_format_checks hook.
133 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
135 * lto-plugin.c (dump_symtab): Correct printf argument type.
136 (finish_conflict_resolution): Initialize resolution.
138 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
141 * configure.ac: Add AC_CANONICAL_SYSTEM.
142 * configure: Regenerated.
144 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
146 * configure.ac: Source config.gcc to determine lto_binary_reader.
147 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
148 * Makefile.am (LTO_FORMAT): Import.
149 (liblto_plugin_la_SOURCES): Add object format dependent module
150 defined by LTO_FORMAT.
151 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
152 and work around libtool warning.
153 * configure: Regenerate.
154 * Makefile.in: Likewise.
155 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
156 (struct sym_aux): Likewise.
157 (struct plugin_symtab): Likewise.
158 (struct plugin_file_info): Likewise.
159 (LTO_SECTION_PREFIX): Likewise.
160 (add_symbols): Make non-static.
161 (claimed_files): Likewise.
162 (num_claimed_files): Likewise.
164 (parse_table_entry): Likewise.
165 (translate): Likewise.
166 (resolve_conflicts): Likewise.
167 (process_symtab): Move to new lto-plugin-elf.c object format dependent
169 (claim_file_handler): Likewise, and make non-static.
170 (onload): Call new onload_format_checks function.
171 * lto-plugin.h: New file.
172 (LTO_SECTION_PREFIX): Move here.
173 (struct sym_aux): Likewise.
174 (struct plugin_symtab): Likewise.
175 (struct plugin_file_info): Likewise.
176 (claim_file_handler): Add new function prototype.
177 (onload_format_checks): Likewise.
178 (check): Declare extern.
179 (translate): Likewise.
180 (parse_table_entry): Likewise.
181 (resolve_conflicts): Likewise.
182 (add_symbols): Likewise.
183 (claimed_files): Likewise.
184 (num_claimed_files): Likewise.
185 * lto-plugin-elf.c (process_symtab): Move here.
186 (claim_file_handler): Likewise, and make non-static.
187 (onload_format_checks): New function factored out from onload.
188 * lto-plugin-coff.c (claim_file_handler): New function stub.
189 (onload_format_checks): Likewise.
191 2010-08-05 Andi Kleen <ak@linux.intel.com>
193 * lto-plugin.c: Include <hashtab.h>
194 (sym_aux): Add next_conflict field to save conflict chains.
195 (plugin_file_info): Add conflicts symtab.
196 (parse_table_entry): Initialize aux->next_conflict.
197 (process_symtab): Increment found.
199 (finish_conflict_resolution): Add.
201 (write_resolution): Remove symbols loop and move into
202 dump_symtab. Call dump_symtab for main symbol and conflicts table.
203 Call free_symtab to free conflicts table.
207 (symbol_strength): Add.
208 (resolve_conflicts): Add.
209 (claim_file_handler): Add n variable. Check return value of
210 process_symtab. Call resolve_conflicts.
212 2010-07-27 Andi Kleen <ak@linux.intel.com>
214 * lto-plugin.c (translate): Remove debug fprintf.
216 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
219 * lto-plugin.c (translate): Cast to unsigned long.
221 2010-07-23 Andi Kleen <ak@linux.intel.com>
224 * lto-plugin.c (sym_aux): Add.
225 (plugin_symtab): Remove slots. Add aux and id.
226 (parse_table_entry): Change to use aux instead of slots.
227 (LTO_SECTION_PREFIX): Add.
228 (translate): Improve buffer allocation. Change to append
229 symbols to existing out buffer.
230 (get_section): Remove.
231 (process_symtab): Add.
232 (free_2): Free symtab->aux.
233 (write_resolution): Handle aux instead of slots.
234 Print sub id to resolution file.
235 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
236 calls with call to process_symtab.
238 2010-07-22 Richard Guenther <rguenther@suse.de>
240 * Makefile.am: New copy_lto_plugin rule to install the plugin
242 * Makefile.in: Regenerated.
244 2010-05-21 Richard Guenther <rguenther@suse.de>
246 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
248 2010-05-07 Richard Guenther <rguenther@suse.de>
250 * lto-plugin.c (free_2): Do not free resolution_file.
251 (write_resolution): Check that we were passed a resolution file.
252 (all_symbols_read_handler): Adjust.
253 (cleanup_handler): Do not remove the resolution file.
254 (process_option): Handle -fresolution=.
256 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
259 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
260 * Makefile.in: Regenerate.
262 2010-04-23 Richard Guenther <rguenther@suse.de>
265 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
266 (translate): Likewise.
267 (all_symbols_read_handler): Likewise.
268 (claim_file_handler): Likewise.
269 (process_option): Likewise.
270 (add_output_files): Likewise. Remove filename length limit.
272 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
274 * Makefile.in: Regenerate.
275 * aclocal.m4: Regenerate.
277 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
280 * lto-plugin.c (cleanup_handler): Delete temporary output files.
282 2010-01-11 Richard Guenther <rguenther@suse.de>
285 * Makefile.am: Disable dependencies.
286 * Makefile.in: Regenerated.
288 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
291 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
294 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
297 * configure: Regenerated.
298 * Makefile.in: Likewise.
300 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
303 * lto-plugin.c (claim_file_handler): Print offsets in hex.
305 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
307 * lto-plugin.c (write_resolution): Assume resolution_file is set.
308 Print the symbol name.
309 (all_symbols_read_handler): Create a resolution file.
311 (cleanup_handler): Remove the resolution file.
312 (process_option): Drop the -resolution option.
314 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
316 * lto-plugin.c (temp_obj_dir_name): Remove.
317 (arguments_file_name): New.
318 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
319 (exec_lto_wrapper): Create arguments file with make_temp_file.
320 (cleanup_handler): Don't remove the temporary directory. Remove the
322 (onload): Don't create the temporary directory.
324 2009-11-04 Richard Guenther <rguenther@suse.de>
325 Rafael Avila de Espindola <espindola@google.com>
327 * lto-plugin.c (plugin_file_info): Remove temp field.
328 (cleanup_handler): Don't delete temporary objects.
329 (claim_file_handler): Don't create temporary objects.
331 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
333 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
335 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
338 * lto-plugin.c (claim_file_handler): Close files that we created.
340 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
342 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
345 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
348 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
349 * configure: Regenerate.
351 2009-10-26 Richard Guenther <rguenther@suse.de>
353 * configure.ac: Use AM_MAINTAINER_MODE.
354 * acinclude.m4: Remove.
355 * configure: Re-generate.
356 * Makefile.in: Likewise.
357 * aclocal.m4: Likewise.
359 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
362 * configure: Regenerate.
363 * configure.ac: Add AC_TYPE_UINT64_T.
365 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
367 * lto-plugin.c (message): New variable.
368 (check): New function.
369 (parse_table_entry, translate, write_resolution,add_output_files,
370 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
372 (cleanup_handler): Use check instead of assert. Remove the arguments
375 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
377 * lto-plugin.c (resolution_file): New.
378 (free_1): Update comment.
379 (free_2): Free resolution_file.
380 (write_resolution): Write resolution to specified file. Use the
381 syms array from the symbol table.
382 (all_symbols_read_handler): Delay call to free_1 past call to
384 (process_option): Add a -resolution option.
386 2009-10-13 Richard Guenther <rguenther@suse.de>
388 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
390 * Makefile.in: Regenerated.
392 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
394 * lto-plugin.c (add_input_library): New.
395 (all_symbols_read_handler): Use add_input_library for items that
397 (process_option): Fit in 80 columns.
398 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
400 2009-10-02 Diego Novillo <dnovillo@google.com>
402 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
403 and -D_FILE_OFFSET_BITS=64.
404 * configure.ac: Add AC_SYS_LARGEFILE.
405 * configure: Regenerate.
406 * Makefile.in: Regenerate.
407 * lto-plugin.c: Fix copyright boilerplate.
409 2009-10-02 Diego Novillo <dnovillo@google.com>
411 * Makefile.am (ACLOCAL_AMFLAGS): Define.
412 * aclocal.m4: Regenerate with aclocal-2.64
413 * acinclude.m4: Remove.
414 * Makefile.in: Regenerate with automake-1.11
415 * configure.ac (AC_PREREQ): Update to 2.64.
416 * configure: Regenerate.
418 2009-10-02 Diego Novillo <dnovillo@google.com>
420 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
421 and -D_FILE_OFFSET_BITS=64.
422 * configure.ac: Add AC_SYS_LARGEFILE.
423 * configure: Regenerate.
424 * Makefile.in: Regenerate.
425 * lto-plugin.c: Fix copyright boilerplate.
427 2009-10-02 Diego Novillo <dnovillo@google.com>
429 * Makefile.am (ACLOCAL_AMFLAGS): Define.
430 * aclocal.m4: Regenerate with aclocal-2.64
431 * acinclude.m4: Remove.
432 * Makefile.in: Regenerate with automake-1.11
433 * configure.ac (AC_PREREQ): Update to 2.64.
434 * configure: Regenerate.
436 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
438 * Makefile.am (liblto_plugin_la_SOURCES): Remove
439 $(top_srcdir)/../gcc/lto/common.c
440 * Makefile.in: Regenerate.
442 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
444 * lto-plugin.c (pass_through_items): New.
445 (num_pass_through_items): New.
446 (all_symbols_read_handler): Update to use the -pass-through option.
447 (process_option): Replace -libgcc with -pass-through.
449 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
451 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
452 register_cleanup to be set.
454 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
456 * Makefile.am: Remove all reference to ltosymtab.
457 * Makefile.in: Regenerate.
458 * lto-symtab.c: Remove.
460 2009-05-21 Diego Novillo <dnovillo@google.com>
462 * configure.ac: Remove call to AC_CHECK_GELF.
463 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
464 * acinclude.m4: Do not include ../config/libelf.m4
465 * Makefile.am (LIBELFLIBS): Define.
467 (AM_CPPFLAGS): Add $(LIBELFINC).
468 (ltosymtab_LDADD): Add $(LIBELFLIBS).
469 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
470 * lto-plugin.c: Always include <gelf.h>
471 * lto-symtab.c: Likewise.
472 * configure: Regenerate.
473 * Makefile.in: Regenerate.
475 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
477 * lto-plugin.c (libgcc_filename): New.
478 (all_symbols_read_handler): Pass libgcc to the linker.
479 (all_symbols_read_handler): Parse -libgcc
481 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
483 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
484 * Makefile.in: Regenerate.
485 * lto-plugin.c (add_output_files): Argument is now a FILE.
486 (exec_lto_wrapper): Use writeargv and pex.
488 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
491 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
492 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
495 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
497 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
499 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
501 * lto-plugin.c: Include libiberty.h.
502 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
505 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
507 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
510 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
512 * lto-plugin.c (plugin_file_info): Remove fd and elf.
513 (parse_table_entry): strdup entry->name and entry->comdat_key.
514 (free_1): Free name and comdat_key. Don't close the file. Don't call
516 (claim_file_handler): Always call elf_end.
518 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
520 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
521 -D_FILE_OFFSET_BITS=64
522 * Makefile.in: Regenerate
524 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
526 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
527 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
528 * Makefile.in: Regenerate.
529 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
530 * configure: Regenerate.
531 * configure.ac: Add AC_SUBST(target_noncanonical).
533 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
535 * lto-plugin.c: Include stdbool.h.
536 (debug, nop): Declare as bool.
538 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
540 * lto-plugin.c (nop): New.
541 (use_original_files): New.
542 (all_symbols_read_handler): Call use_original_files if nop is true.
543 (process_option): Parse the -nop option.
545 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
547 * lto-plugin.c (debug): New.
548 (exec_lto_wrapper): Print argv if debug is true.
549 (process_option): Process the -debug command line option.
551 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
553 * lto-plugin.c (process_option): The argument is now a single option,
554 not a space separated list.
556 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
558 * lto-plugin.c: Include sys/types.h and sys/wait.h
559 (output_files, num_output_files, lto_wrapper_argv,
560 lto_wrapper_num_args): New.
561 (free_2): Free output_files.
562 (write_resolution): Disable.
563 (add_output_files): New.
564 (exec_lto_wrapper): New.
565 (all_symbols_read_handler): Run lto-wrapper.
566 (claim_file_handler): Free lto_file.name and call elf_end.
567 (process_option): New.
569 2008-11-26 Rafael Espindola <espindola@google.com>
571 * lto-plugin.c (add_input_file): New.
572 (get_section): Return NULL if get_section fails.
573 (write_resolution): New.
574 (all_symbols_read_handler): Call add_input_file.
575 (claim_file_handler): Unlink the correct file.
576 (onload): Record add_input_file.
578 2008-09-23 Rafael Espindola <espindola@google.com>
580 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
581 Update the location of common.c.
582 * Makefile.in: Regenerate.
583 * common.c: Moved to gcc/lto.
584 * common.h: Moved to gcc/lto.
585 * lto-plugin.c: Update the location of common.h.
586 * lto-symtab.c: Update the location of common.h.
588 2008-09-23 Rafael Espindola <espindola@google.com>
590 * common.c: Include common.h.
591 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
593 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
596 2008-09-23 Rafael Espindola <espindola@google.com>
598 * lto-plugin.c (plugin_file_info): Add temp.
599 (cleanup_handler): Only delete temporary files.
600 (claim_file_handler): Initialize lto_file.temp.
602 2008-09-23 Rafael Espindola <espindola@google.com>
604 * plugin-api.h: Moved to include.
606 2008-09-23 Rafael Espindola <espindola@google.com>
608 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
611 2008-09-22 Rafael Espindola <espindola@google.com>
613 * plugin-api.h: Copy from binutils' cvs.
615 2008-09-22 Rafael Espindola <espindola@google.com>
617 * lto-symtab.c (get_symbols, add_symbols): Update signature.
618 * plugin-api.h: Copy from binutils' cvs.
620 2008-09-22 Rafael Espindola <espindola@google.com>
622 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
625 2008-09-10 Rafael Espindola <espindola@google.com>
627 * lto-plugin.c (onload): add missing break statements and asserts.
628 * lto-symtab.c (claim_file_handler): Make it static.
629 (all_symbols_read_handler): Make it static.
630 (all_file_handles): Make it static.
631 (num_file_handles): Make it static.
632 (register_claim_file): Make it static.
633 (register_object): Indent properly.
635 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
637 * Makefile.am (ltosymtab_LDADD): Add -lelf.
638 * Makefiel.in: Regenerate.
639 * lto-plugin.c: Include ar.h.
640 (claim_file_handler): Handle file->offset != 0.
641 * lto-symtab.c: Include gelf.h.
642 (all_file_handles): Change type.
643 (register_object): New.
644 (register_file): Add support for archives.
645 (resolve): Update to new type of all_file_handles.
646 (print): Update to new type of all_file_handles.
647 (free_all): Update to new type of all_file_handles.
648 (main): Update to new type of all_file_handles.
650 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
652 * lto-plugin.c (get_string_table): Remove.
653 (get_section): Use elf_strptr instead of get_string_table.
655 2008-09-08 Doug Kwan <dougkwan@google.com>
657 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
658 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
660 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
662 * Makefile.am (ltosymtab_SOURCES): add common.c.
663 (ltosymtab_CFLAGS): New.
664 (liblto_plugin_la_SOURCES): Add common.c.
665 * Makefile.in: Regenerate.
668 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
669 (plugin_symtab): New.
670 (plugin_file_info): New.
671 (register_all_symbols_read): New.
673 (claimed_files): New.
674 (num_claimed_files): New.
675 (translate): Don't drop the slot number.
678 (all_symbols_read_handler): New.
679 (claim_file_handler): Record every claimed file.
680 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
682 * lto-symtab.c: Include stdlib.h, string.h and common.h.
683 (current_file_handle): Remove.
684 (ld_plugin_all_symbols_read_handler): New.
685 (plugin_handle): New.
687 (all_file_handles): New.
688 (num_file_handles): New.
690 (register_all_symbols_read): New.
691 (add_symbols): Don't print the symbols, just record them.
692 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
694 (load_plugin): Use plugin_handle.
695 (register_file): Add the file handle to all_file_handles.
698 (unload_plugin): New.
700 (main): Call all_symbols_read_handler and free resources.
702 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
704 * Makefile.am (AM_CFLAGS): New.
705 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
706 (lib_LTLIBRARIES): New.
707 (liblto_plugin_la_SOURCES): New.
708 (liblto_plugin_la_LIBADD): New.
709 * Makefile.in: Regenerate.
710 * acinclude.m4: Don't include ../config/acx.m4 and
711 ../config/no-executables.m4.
712 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
714 * aclocal.m4: Regenerate.
715 * configure: Regenerate.
716 * configure.ac: Use AM_PROG_LIBTOOL.
718 * lto-symtab.c: Rewrite to use the plugin.
721 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
723 * configure: Regenerate.
724 * configure.ac: Use AC_CHECK_GELF.
725 * lto-symtab.c: Include gelf.h.
726 (get_string_table): Use size independent API.
727 (printTable): Use lld to print 64 bit integers.
729 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
731 * lto-symtab.c (parse_table_entry): Assert entry->kind and
732 entry->visibility are valid.
734 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
735 * lto-symtab.c (table_entry): Add comdat.
736 (parse_table_entry): Read comdat.
738 2008-08-21 Rafael Espindola <espindola@google.com>