1 2012-05-29 Joseph Myers <joseph@codesourcery.com>
3 * lto-plugin.c: Fix typo.
5 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
7 * configure: Regenerated.
9 2012-02-22 Kai Tietz <ktietz@redhat.com>
12 * lto-plugin.c (PRI_LL): New macro.
13 (dump_symtab): Use PRI_LL instead of ll in print.
14 (process_symtab): Use PRI_LL instead of ll in scan.
16 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
18 * configure: Regenerate.
20 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
22 * configure: Regenerate.
24 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
26 * configure: Regenerate.
28 2011-10-02 Jan Hubicka <jh@suse.cz>
31 * lto-plugin.c (get_symbols_v2): New variable.
32 (write_resolution): Use V2 API when available.
33 (onload): Handle LDPT_GET_SYMBOLS_V2.
35 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
36 Andi Kleen <ak@linux.intel.com>
39 * lto-plugin.c (sym_aux): Change id to unsigned long long.
40 (plugin_symtab): Likewise.
41 (dump_symtab): Likewise.
42 (resolve_conflicts): Likewise.
43 (process_symtab): Likewise.
45 2011-08-10 Richard Guenther <rguenther@suse.de>
49 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
50 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
51 * configure: Regenerate.
52 * Makefile.in: Likewise.
53 * aclocal.m4: Likewise.
55 2011-04-20 Jim Meyering <meyering@redhat.com>
57 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
59 2011-04-05 Richard Guenther <rguenther@suse.de>
62 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
64 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66 * Makefile.in: Regenerate.
67 * aclocal.m4: Regenerate.
68 * configure: Regenerate.
70 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72 * Makefile.am (all-local): Rename from 'all'.
73 * Makefile.in: Regenerate.
75 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
78 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
79 (liblto_plugin_la_LDFLAGS): Add -module.
80 (copy_lto_plugin): Renamed to...
81 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
83 * Makefile.in: Rebuild.
85 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
88 * Makefile.am (Wc): New helper for encoding -Wc,.
89 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
90 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
91 * Makefile.in: Regenerated.
93 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
97 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
100 * Makefile.am (Wl): New helper for encoding -Wl,.
101 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
102 * Makefile.in: Regenerated.
104 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
107 * Makefile.am (Wl): New helper for encoding -Wl,.
108 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
109 * Makefile.in: Regenerated.
111 2011-01-25 Ian Lance Taylor <iant@google.com>
113 * lto-plugin.c (gold_version): New static variable.
114 (all_symbols_read_handler): Don't check pass_through_items if
115 using gold 1.11 or later.
116 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
118 2011-01-12 Richard Guenther <rguenther@suse.de>
121 * lto-plugin.c (parse_table_entry): Use memcpy to access
124 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
126 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
127 * Makefile.in: Regenerate.
129 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
133 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
135 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
136 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
137 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
138 * Makefile.in: Regenerate.
140 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
144 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
145 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
146 * configure: Regenerate.
147 * config.h.in: Likewise.
149 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
153 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
154 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
155 override -bindir setting.
156 * aclocal.m4: Regenerate.
157 * configure: Regenerate.
158 * Makefile.in: Regenerate.
160 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
162 * config.h.in: Regenerated.
163 * configure: Regenerated.
164 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
165 * lto-plugin.c (WIFEXITED): Define default.
166 (WEXITSTATUS): Likeiwse.
168 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
170 * config.h.in: Regenerated.
171 * configure: Regenerated.
172 * Makefile.in: Regenerated.
173 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
174 * lto-plugin.c: Include sys/wait.h conditionally.
175 * aclocal.m4: Regenerated.
177 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
179 * lto-plugin.c (add_output_files): Fix memory leak.
181 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
185 * configure.ac: Add AC_TYPE_INT64_T test.
186 * config.h.in: Regenerate.
187 * configure: Likewise.
188 * lto-plugin.c (debug): Use char not bool.
190 (check_1): Rename from check, and use int not bool for gate argument.
191 (check): Macro wrapper for the above to coerce gate argument into
192 boolean-valued integer in case it has pointer type.
193 (parse_table_entry): Use 0 not false.
194 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
195 into two 32-bit parts and printing as hex ints.
197 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
200 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
202 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
205 * lto-plugin.h: Delete.
206 * lto-plugin-elf.c: Likewise.
207 * lto-plugin-coff.c: Likewise.
208 * configure.ac: Don't use libelf, don't source config.gcc.
209 (LIBELFLIBS): Delete.
211 (LTO_FORMAT): Delete.
212 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
213 (config.h): Add AC_CONFIG_HEADERS directive.
214 * Makefile.am (LIBELFLIBS): Delete.
216 (LTO_FORMAT): Delete.
218 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
219 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
220 any object-format-specific source file in the link.
221 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
222 * config.h.in: Generate.
223 * configure: Regenerate.
224 * Makefile.in: Likewise.
225 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
226 (LTO_SEGMENT_NAME): New definition.
227 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
228 (LTO_SECTION_PREFIX_LEN): New definition.
229 (struct sym_aux): Struct definition moved here from lto-plugin.h.
230 (struct plugin_symtab): Likewise.
231 (struct plugin_objfile): Likewise.
232 (struct plugin_objfile): New struct def.
233 (enum symbol_style): New enum type.
234 (add_symbols): Make static.
235 (claimed_files): Likewise.
236 (num_claimed_files): Likewise.
237 (sym_style): New global.
238 (check): Make static.
239 (parse_table_entry): Likewise. Respect sym_style when extracting
240 symbol from symtab entry.
241 (translate): Make static.
242 (resolve_conflicts): Likewise.
243 (process_symtab): New function, per-section callback version of
244 old object-format-specific handling from deleted lto-plugin-elf.c.
245 (claim_file_handler): Convert ELF-specific version from deleted
246 lto-plugin-elf.c to simple_object interface and move here.
247 (process_options): Allow new '-sym-style=' option.
248 (onload): Don't call deleted onload_format_checks hook.
250 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
252 * lto-plugin.c (dump_symtab): Correct printf argument type.
253 (finish_conflict_resolution): Initialize resolution.
255 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
258 * configure.ac: Add AC_CANONICAL_SYSTEM.
259 * configure: Regenerated.
261 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
263 * configure.ac: Source config.gcc to determine lto_binary_reader.
264 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
265 * Makefile.am (LTO_FORMAT): Import.
266 (liblto_plugin_la_SOURCES): Add object format dependent module
267 defined by LTO_FORMAT.
268 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
269 and work around libtool warning.
270 * configure: Regenerate.
271 * Makefile.in: Likewise.
272 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
273 (struct sym_aux): Likewise.
274 (struct plugin_symtab): Likewise.
275 (struct plugin_file_info): Likewise.
276 (LTO_SECTION_PREFIX): Likewise.
277 (add_symbols): Make non-static.
278 (claimed_files): Likewise.
279 (num_claimed_files): Likewise.
281 (parse_table_entry): Likewise.
282 (translate): Likewise.
283 (resolve_conflicts): Likewise.
284 (process_symtab): Move to new lto-plugin-elf.c object format dependent
286 (claim_file_handler): Likewise, and make non-static.
287 (onload): Call new onload_format_checks function.
288 * lto-plugin.h: New file.
289 (LTO_SECTION_PREFIX): Move here.
290 (struct sym_aux): Likewise.
291 (struct plugin_symtab): Likewise.
292 (struct plugin_file_info): Likewise.
293 (claim_file_handler): Add new function prototype.
294 (onload_format_checks): Likewise.
295 (check): Declare extern.
296 (translate): Likewise.
297 (parse_table_entry): Likewise.
298 (resolve_conflicts): Likewise.
299 (add_symbols): Likewise.
300 (claimed_files): Likewise.
301 (num_claimed_files): Likewise.
302 * lto-plugin-elf.c (process_symtab): Move here.
303 (claim_file_handler): Likewise, and make non-static.
304 (onload_format_checks): New function factored out from onload.
305 * lto-plugin-coff.c (claim_file_handler): New function stub.
306 (onload_format_checks): Likewise.
308 2010-08-05 Andi Kleen <ak@linux.intel.com>
310 * lto-plugin.c: Include <hashtab.h>
311 (sym_aux): Add next_conflict field to save conflict chains.
312 (plugin_file_info): Add conflicts symtab.
313 (parse_table_entry): Initialize aux->next_conflict.
314 (process_symtab): Increment found.
316 (finish_conflict_resolution): Add.
318 (write_resolution): Remove symbols loop and move into
319 dump_symtab. Call dump_symtab for main symbol and conflicts table.
320 Call free_symtab to free conflicts table.
324 (symbol_strength): Add.
325 (resolve_conflicts): Add.
326 (claim_file_handler): Add n variable. Check return value of
327 process_symtab. Call resolve_conflicts.
329 2010-07-27 Andi Kleen <ak@linux.intel.com>
331 * lto-plugin.c (translate): Remove debug fprintf.
333 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
336 * lto-plugin.c (translate): Cast to unsigned long.
338 2010-07-23 Andi Kleen <ak@linux.intel.com>
341 * lto-plugin.c (sym_aux): Add.
342 (plugin_symtab): Remove slots. Add aux and id.
343 (parse_table_entry): Change to use aux instead of slots.
344 (LTO_SECTION_PREFIX): Add.
345 (translate): Improve buffer allocation. Change to append
346 symbols to existing out buffer.
347 (get_section): Remove.
348 (process_symtab): Add.
349 (free_2): Free symtab->aux.
350 (write_resolution): Handle aux instead of slots.
351 Print sub id to resolution file.
352 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
353 calls with call to process_symtab.
355 2010-07-22 Richard Guenther <rguenther@suse.de>
357 * Makefile.am: New copy_lto_plugin rule to install the plugin
359 * Makefile.in: Regenerated.
361 2010-05-21 Richard Guenther <rguenther@suse.de>
363 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
365 2010-05-07 Richard Guenther <rguenther@suse.de>
367 * lto-plugin.c (free_2): Do not free resolution_file.
368 (write_resolution): Check that we were passed a resolution file.
369 (all_symbols_read_handler): Adjust.
370 (cleanup_handler): Do not remove the resolution file.
371 (process_option): Handle -fresolution=.
373 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
376 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
377 * Makefile.in: Regenerate.
379 2010-04-23 Richard Guenther <rguenther@suse.de>
382 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
383 (translate): Likewise.
384 (all_symbols_read_handler): Likewise.
385 (claim_file_handler): Likewise.
386 (process_option): Likewise.
387 (add_output_files): Likewise. Remove filename length limit.
389 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
391 * Makefile.in: Regenerate.
392 * aclocal.m4: Regenerate.
394 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
397 * lto-plugin.c (cleanup_handler): Delete temporary output files.
399 2010-01-11 Richard Guenther <rguenther@suse.de>
402 * Makefile.am: Disable dependencies.
403 * Makefile.in: Regenerated.
405 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
408 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
411 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
414 * configure: Regenerated.
415 * Makefile.in: Likewise.
417 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
420 * lto-plugin.c (claim_file_handler): Print offsets in hex.
422 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
424 * lto-plugin.c (write_resolution): Assume resolution_file is set.
425 Print the symbol name.
426 (all_symbols_read_handler): Create a resolution file.
428 (cleanup_handler): Remove the resolution file.
429 (process_option): Drop the -resolution option.
431 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
433 * lto-plugin.c (temp_obj_dir_name): Remove.
434 (arguments_file_name): New.
435 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
436 (exec_lto_wrapper): Create arguments file with make_temp_file.
437 (cleanup_handler): Don't remove the temporary directory. Remove the
439 (onload): Don't create the temporary directory.
441 2009-11-04 Richard Guenther <rguenther@suse.de>
442 Rafael Avila de Espindola <espindola@google.com>
444 * lto-plugin.c (plugin_file_info): Remove temp field.
445 (cleanup_handler): Don't delete temporary objects.
446 (claim_file_handler): Don't create temporary objects.
448 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
450 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
452 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
455 * lto-plugin.c (claim_file_handler): Close files that we created.
457 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
459 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
462 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
465 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
466 * configure: Regenerate.
468 2009-10-26 Richard Guenther <rguenther@suse.de>
470 * configure.ac: Use AM_MAINTAINER_MODE.
471 * acinclude.m4: Remove.
472 * configure: Re-generate.
473 * Makefile.in: Likewise.
474 * aclocal.m4: Likewise.
476 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
479 * configure: Regenerate.
480 * configure.ac: Add AC_TYPE_UINT64_T.
482 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
484 * lto-plugin.c (message): New variable.
485 (check): New function.
486 (parse_table_entry, translate, write_resolution,add_output_files,
487 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
489 (cleanup_handler): Use check instead of assert. Remove the arguments
492 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
494 * lto-plugin.c (resolution_file): New.
495 (free_1): Update comment.
496 (free_2): Free resolution_file.
497 (write_resolution): Write resolution to specified file. Use the
498 syms array from the symbol table.
499 (all_symbols_read_handler): Delay call to free_1 past call to
501 (process_option): Add a -resolution option.
503 2009-10-13 Richard Guenther <rguenther@suse.de>
505 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
507 * Makefile.in: Regenerated.
509 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
511 * lto-plugin.c (add_input_library): New.
512 (all_symbols_read_handler): Use add_input_library for items that
514 (process_option): Fit in 80 columns.
515 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
517 2009-10-02 Diego Novillo <dnovillo@google.com>
519 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
520 and -D_FILE_OFFSET_BITS=64.
521 * configure.ac: Add AC_SYS_LARGEFILE.
522 * configure: Regenerate.
523 * Makefile.in: Regenerate.
524 * lto-plugin.c: Fix copyright boilerplate.
526 2009-10-02 Diego Novillo <dnovillo@google.com>
528 * Makefile.am (ACLOCAL_AMFLAGS): Define.
529 * aclocal.m4: Regenerate with aclocal-2.64
530 * acinclude.m4: Remove.
531 * Makefile.in: Regenerate with automake-1.11
532 * configure.ac (AC_PREREQ): Update to 2.64.
533 * configure: Regenerate.
535 2009-10-02 Diego Novillo <dnovillo@google.com>
537 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
538 and -D_FILE_OFFSET_BITS=64.
539 * configure.ac: Add AC_SYS_LARGEFILE.
540 * configure: Regenerate.
541 * Makefile.in: Regenerate.
542 * lto-plugin.c: Fix copyright boilerplate.
544 2009-10-02 Diego Novillo <dnovillo@google.com>
546 * Makefile.am (ACLOCAL_AMFLAGS): Define.
547 * aclocal.m4: Regenerate with aclocal-2.64
548 * acinclude.m4: Remove.
549 * Makefile.in: Regenerate with automake-1.11
550 * configure.ac (AC_PREREQ): Update to 2.64.
551 * configure: Regenerate.
553 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
555 * Makefile.am (liblto_plugin_la_SOURCES): Remove
556 $(top_srcdir)/../gcc/lto/common.c
557 * Makefile.in: Regenerate.
559 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
561 * lto-plugin.c (pass_through_items): New.
562 (num_pass_through_items): New.
563 (all_symbols_read_handler): Update to use the -pass-through option.
564 (process_option): Replace -libgcc with -pass-through.
566 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
568 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
569 register_cleanup to be set.
571 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
573 * Makefile.am: Remove all reference to ltosymtab.
574 * Makefile.in: Regenerate.
575 * lto-symtab.c: Remove.
577 2009-05-21 Diego Novillo <dnovillo@google.com>
579 * configure.ac: Remove call to AC_CHECK_GELF.
580 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
581 * acinclude.m4: Do not include ../config/libelf.m4
582 * Makefile.am (LIBELFLIBS): Define.
584 (AM_CPPFLAGS): Add $(LIBELFINC).
585 (ltosymtab_LDADD): Add $(LIBELFLIBS).
586 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
587 * lto-plugin.c: Always include <gelf.h>
588 * lto-symtab.c: Likewise.
589 * configure: Regenerate.
590 * Makefile.in: Regenerate.
592 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
594 * lto-plugin.c (libgcc_filename): New.
595 (all_symbols_read_handler): Pass libgcc to the linker.
596 (all_symbols_read_handler): Parse -libgcc
598 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
600 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
601 * Makefile.in: Regenerate.
602 * lto-plugin.c (add_output_files): Argument is now a FILE.
603 (exec_lto_wrapper): Use writeargv and pex.
605 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
608 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
609 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
612 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
614 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
616 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
618 * lto-plugin.c: Include libiberty.h.
619 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
622 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
624 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
627 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
629 * lto-plugin.c (plugin_file_info): Remove fd and elf.
630 (parse_table_entry): strdup entry->name and entry->comdat_key.
631 (free_1): Free name and comdat_key. Don't close the file. Don't call
633 (claim_file_handler): Always call elf_end.
635 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
637 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
638 -D_FILE_OFFSET_BITS=64
639 * Makefile.in: Regenerate
641 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
643 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
644 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
645 * Makefile.in: Regenerate.
646 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
647 * configure: Regenerate.
648 * configure.ac: Add AC_SUBST(target_noncanonical).
650 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
652 * lto-plugin.c: Include stdbool.h.
653 (debug, nop): Declare as bool.
655 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
657 * lto-plugin.c (nop): New.
658 (use_original_files): New.
659 (all_symbols_read_handler): Call use_original_files if nop is true.
660 (process_option): Parse the -nop option.
662 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
664 * lto-plugin.c (debug): New.
665 (exec_lto_wrapper): Print argv if debug is true.
666 (process_option): Process the -debug command line option.
668 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
670 * lto-plugin.c (process_option): The argument is now a single option,
671 not a space separated list.
673 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
675 * lto-plugin.c: Include sys/types.h and sys/wait.h
676 (output_files, num_output_files, lto_wrapper_argv,
677 lto_wrapper_num_args): New.
678 (free_2): Free output_files.
679 (write_resolution): Disable.
680 (add_output_files): New.
681 (exec_lto_wrapper): New.
682 (all_symbols_read_handler): Run lto-wrapper.
683 (claim_file_handler): Free lto_file.name and call elf_end.
684 (process_option): New.
686 2008-11-26 Rafael Espindola <espindola@google.com>
688 * lto-plugin.c (add_input_file): New.
689 (get_section): Return NULL if get_section fails.
690 (write_resolution): New.
691 (all_symbols_read_handler): Call add_input_file.
692 (claim_file_handler): Unlink the correct file.
693 (onload): Record add_input_file.
695 2008-09-23 Rafael Espindola <espindola@google.com>
697 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
698 Update the location of common.c.
699 * Makefile.in: Regenerate.
700 * common.c: Moved to gcc/lto.
701 * common.h: Moved to gcc/lto.
702 * lto-plugin.c: Update the location of common.h.
703 * lto-symtab.c: Update the location of common.h.
705 2008-09-23 Rafael Espindola <espindola@google.com>
707 * common.c: Include common.h.
708 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
710 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
713 2008-09-23 Rafael Espindola <espindola@google.com>
715 * lto-plugin.c (plugin_file_info): Add temp.
716 (cleanup_handler): Only delete temporary files.
717 (claim_file_handler): Initialize lto_file.temp.
719 2008-09-23 Rafael Espindola <espindola@google.com>
721 * plugin-api.h: Moved to include.
723 2008-09-23 Rafael Espindola <espindola@google.com>
725 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
728 2008-09-22 Rafael Espindola <espindola@google.com>
730 * plugin-api.h: Copy from binutils' cvs.
732 2008-09-22 Rafael Espindola <espindola@google.com>
734 * lto-symtab.c (get_symbols, add_symbols): Update signature.
735 * plugin-api.h: Copy from binutils' cvs.
737 2008-09-22 Rafael Espindola <espindola@google.com>
739 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
742 2008-09-10 Rafael Espindola <espindola@google.com>
744 * lto-plugin.c (onload): add missing break statements and asserts.
745 * lto-symtab.c (claim_file_handler): Make it static.
746 (all_symbols_read_handler): Make it static.
747 (all_file_handles): Make it static.
748 (num_file_handles): Make it static.
749 (register_claim_file): Make it static.
750 (register_object): Indent properly.
752 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
754 * Makefile.am (ltosymtab_LDADD): Add -lelf.
755 * Makefiel.in: Regenerate.
756 * lto-plugin.c: Include ar.h.
757 (claim_file_handler): Handle file->offset != 0.
758 * lto-symtab.c: Include gelf.h.
759 (all_file_handles): Change type.
760 (register_object): New.
761 (register_file): Add support for archives.
762 (resolve): Update to new type of all_file_handles.
763 (print): Update to new type of all_file_handles.
764 (free_all): Update to new type of all_file_handles.
765 (main): Update to new type of all_file_handles.
767 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
769 * lto-plugin.c (get_string_table): Remove.
770 (get_section): Use elf_strptr instead of get_string_table.
772 2008-09-08 Doug Kwan <dougkwan@google.com>
774 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
775 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
777 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
779 * Makefile.am (ltosymtab_SOURCES): add common.c.
780 (ltosymtab_CFLAGS): New.
781 (liblto_plugin_la_SOURCES): Add common.c.
782 * Makefile.in: Regenerate.
785 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
786 (plugin_symtab): New.
787 (plugin_file_info): New.
788 (register_all_symbols_read): New.
790 (claimed_files): New.
791 (num_claimed_files): New.
792 (translate): Don't drop the slot number.
795 (all_symbols_read_handler): New.
796 (claim_file_handler): Record every claimed file.
797 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
799 * lto-symtab.c: Include stdlib.h, string.h and common.h.
800 (current_file_handle): Remove.
801 (ld_plugin_all_symbols_read_handler): New.
802 (plugin_handle): New.
804 (all_file_handles): New.
805 (num_file_handles): New.
807 (register_all_symbols_read): New.
808 (add_symbols): Don't print the symbols, just record them.
809 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
811 (load_plugin): Use plugin_handle.
812 (register_file): Add the file handle to all_file_handles.
815 (unload_plugin): New.
817 (main): Call all_symbols_read_handler and free resources.
819 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
821 * Makefile.am (AM_CFLAGS): New.
822 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
823 (lib_LTLIBRARIES): New.
824 (liblto_plugin_la_SOURCES): New.
825 (liblto_plugin_la_LIBADD): New.
826 * Makefile.in: Regenerate.
827 * acinclude.m4: Don't include ../config/acx.m4 and
828 ../config/no-executables.m4.
829 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
831 * aclocal.m4: Regenerate.
832 * configure: Regenerate.
833 * configure.ac: Use AM_PROG_LIBTOOL.
835 * lto-symtab.c: Rewrite to use the plugin.
838 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
840 * configure: Regenerate.
841 * configure.ac: Use AC_CHECK_GELF.
842 * lto-symtab.c: Include gelf.h.
843 (get_string_table): Use size independent API.
844 (printTable): Use lld to print 64 bit integers.
846 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
848 * lto-symtab.c (parse_table_entry): Assert entry->kind and
849 entry->visibility are valid.
851 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
852 * lto-symtab.c (table_entry): Add comdat.
853 (parse_table_entry): Read comdat.
855 2008-08-21 Rafael Espindola <espindola@google.com>