1 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3 * configure: Regenerated.
5 2012-02-22 Kai Tietz <ktietz@redhat.com>
8 * lto-plugin.c (PRI_LL): New macro.
9 (dump_symtab): Use PRI_LL instead of ll in print.
10 (process_symtab): Use PRI_LL instead of ll in scan.
12 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
14 * configure: Regenerate.
16 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
18 * configure: Regenerate.
20 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
22 * configure: Regenerate.
24 2011-10-02 Jan Hubicka <jh@suse.cz>
27 * lto-plugin.c (get_symbols_v2): New variable.
28 (write_resolution): Use V2 API when available.
29 (onload): Handle LDPT_GET_SYMBOLS_V2.
31 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
32 Andi Kleen <ak@linux.intel.com>
35 * lto-plugin.c (sym_aux): Change id to unsigned long long.
36 (plugin_symtab): Likewise.
37 (dump_symtab): Likewise.
38 (resolve_conflicts): Likewise.
39 (process_symtab): Likewise.
41 2011-08-10 Richard Guenther <rguenther@suse.de>
45 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
46 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
47 * configure: Regenerate.
48 * Makefile.in: Likewise.
49 * aclocal.m4: Likewise.
51 2011-04-20 Jim Meyering <meyering@redhat.com>
53 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
55 2011-04-05 Richard Guenther <rguenther@suse.de>
58 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
60 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62 * Makefile.in: Regenerate.
63 * aclocal.m4: Regenerate.
64 * configure: Regenerate.
66 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68 * Makefile.am (all-local): Rename from 'all'.
69 * Makefile.in: Regenerate.
71 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
74 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
75 (liblto_plugin_la_LDFLAGS): Add -module.
76 (copy_lto_plugin): Renamed to...
77 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
79 * Makefile.in: Rebuild.
81 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
84 * Makefile.am (Wc): New helper for encoding -Wc,.
85 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
86 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
87 * Makefile.in: Regenerated.
89 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
93 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
96 * Makefile.am (Wl): New helper for encoding -Wl,.
97 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
98 * Makefile.in: Regenerated.
100 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
103 * Makefile.am (Wl): New helper for encoding -Wl,.
104 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
105 * Makefile.in: Regenerated.
107 2011-01-25 Ian Lance Taylor <iant@google.com>
109 * lto-plugin.c (gold_version): New static variable.
110 (all_symbols_read_handler): Don't check pass_through_items if
111 using gold 1.11 or later.
112 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
114 2011-01-12 Richard Guenther <rguenther@suse.de>
117 * lto-plugin.c (parse_table_entry): Use memcpy to access
120 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
122 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
123 * Makefile.in: Regenerate.
125 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
129 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
131 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
132 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
133 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
134 * Makefile.in: Regenerate.
136 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
140 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
141 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
142 * configure: Regenerate.
143 * config.h.in: Likewise.
145 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
149 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
150 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
151 override -bindir setting.
152 * aclocal.m4: Regenerate.
153 * configure: Regenerate.
154 * Makefile.in: Regenerate.
156 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
158 * config.h.in: Regenerated.
159 * configure: Regenerated.
160 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
161 * lto-plugin.c (WIFEXITED): Define default.
162 (WEXITSTATUS): Likeiwse.
164 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
166 * config.h.in: Regenerated.
167 * configure: Regenerated.
168 * Makefile.in: Regenerated.
169 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
170 * lto-plugin.c: Include sys/wait.h conditionally.
171 * aclocal.m4: Regenerated.
173 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
175 * lto-plugin.c (add_output_files): Fix memory leak.
177 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
181 * configure.ac: Add AC_TYPE_INT64_T test.
182 * config.h.in: Regenerate.
183 * configure: Likewise.
184 * lto-plugin.c (debug): Use char not bool.
186 (check_1): Rename from check, and use int not bool for gate argument.
187 (check): Macro wrapper for the above to coerce gate argument into
188 boolean-valued integer in case it has pointer type.
189 (parse_table_entry): Use 0 not false.
190 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
191 into two 32-bit parts and printing as hex ints.
193 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
196 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
198 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
201 * lto-plugin.h: Delete.
202 * lto-plugin-elf.c: Likewise.
203 * lto-plugin-coff.c: Likewise.
204 * configure.ac: Don't use libelf, don't source config.gcc.
205 (LIBELFLIBS): Delete.
207 (LTO_FORMAT): Delete.
208 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
209 (config.h): Add AC_CONFIG_HEADERS directive.
210 * Makefile.am (LIBELFLIBS): Delete.
212 (LTO_FORMAT): Delete.
214 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
215 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
216 any object-format-specific source file in the link.
217 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
218 * config.h.in: Generate.
219 * configure: Regenerate.
220 * Makefile.in: Likewise.
221 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
222 (LTO_SEGMENT_NAME): New definition.
223 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
224 (LTO_SECTION_PREFIX_LEN): New definition.
225 (struct sym_aux): Struct definition moved here from lto-plugin.h.
226 (struct plugin_symtab): Likewise.
227 (struct plugin_objfile): Likewise.
228 (struct plugin_objfile): New struct def.
229 (enum symbol_style): New enum type.
230 (add_symbols): Make static.
231 (claimed_files): Likewise.
232 (num_claimed_files): Likewise.
233 (sym_style): New global.
234 (check): Make static.
235 (parse_table_entry): Likewise. Respect sym_style when extracting
236 symbol from symtab entry.
237 (translate): Make static.
238 (resolve_conflicts): Likewise.
239 (process_symtab): New function, per-section callback version of
240 old object-format-specific handling from deleted lto-plugin-elf.c.
241 (claim_file_handler): Convert ELF-specific version from deleted
242 lto-plugin-elf.c to simple_object interface and move here.
243 (process_options): Allow new '-sym-style=' option.
244 (onload): Don't call deleted onload_format_checks hook.
246 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
248 * lto-plugin.c (dump_symtab): Correct printf argument type.
249 (finish_conflict_resolution): Initialize resolution.
251 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
254 * configure.ac: Add AC_CANONICAL_SYSTEM.
255 * configure: Regenerated.
257 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
259 * configure.ac: Source config.gcc to determine lto_binary_reader.
260 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
261 * Makefile.am (LTO_FORMAT): Import.
262 (liblto_plugin_la_SOURCES): Add object format dependent module
263 defined by LTO_FORMAT.
264 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
265 and work around libtool warning.
266 * configure: Regenerate.
267 * Makefile.in: Likewise.
268 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
269 (struct sym_aux): Likewise.
270 (struct plugin_symtab): Likewise.
271 (struct plugin_file_info): Likewise.
272 (LTO_SECTION_PREFIX): Likewise.
273 (add_symbols): Make non-static.
274 (claimed_files): Likewise.
275 (num_claimed_files): Likewise.
277 (parse_table_entry): Likewise.
278 (translate): Likewise.
279 (resolve_conflicts): Likewise.
280 (process_symtab): Move to new lto-plugin-elf.c object format dependent
282 (claim_file_handler): Likewise, and make non-static.
283 (onload): Call new onload_format_checks function.
284 * lto-plugin.h: New file.
285 (LTO_SECTION_PREFIX): Move here.
286 (struct sym_aux): Likewise.
287 (struct plugin_symtab): Likewise.
288 (struct plugin_file_info): Likewise.
289 (claim_file_handler): Add new function prototype.
290 (onload_format_checks): Likewise.
291 (check): Declare extern.
292 (translate): Likewise.
293 (parse_table_entry): Likewise.
294 (resolve_conflicts): Likewise.
295 (add_symbols): Likewise.
296 (claimed_files): Likewise.
297 (num_claimed_files): Likewise.
298 * lto-plugin-elf.c (process_symtab): Move here.
299 (claim_file_handler): Likewise, and make non-static.
300 (onload_format_checks): New function factored out from onload.
301 * lto-plugin-coff.c (claim_file_handler): New function stub.
302 (onload_format_checks): Likewise.
304 2010-08-05 Andi Kleen <ak@linux.intel.com>
306 * lto-plugin.c: Include <hashtab.h>
307 (sym_aux): Add next_conflict field to save conflict chains.
308 (plugin_file_info): Add conflicts symtab.
309 (parse_table_entry): Initialize aux->next_conflict.
310 (process_symtab): Increment found.
312 (finish_conflict_resolution): Add.
314 (write_resolution): Remove symbols loop and move into
315 dump_symtab. Call dump_symtab for main symbol and conflicts table.
316 Call free_symtab to free conflicts table.
320 (symbol_strength): Add.
321 (resolve_conflicts): Add.
322 (claim_file_handler): Add n variable. Check return value of
323 process_symtab. Call resolve_conflicts.
325 2010-07-27 Andi Kleen <ak@linux.intel.com>
327 * lto-plugin.c (translate): Remove debug fprintf.
329 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
332 * lto-plugin.c (translate): Cast to unsigned long.
334 2010-07-23 Andi Kleen <ak@linux.intel.com>
337 * lto-plugin.c (sym_aux): Add.
338 (plugin_symtab): Remove slots. Add aux and id.
339 (parse_table_entry): Change to use aux instead of slots.
340 (LTO_SECTION_PREFIX): Add.
341 (translate): Improve buffer allocation. Change to append
342 symbols to existing out buffer.
343 (get_section): Remove.
344 (process_symtab): Add.
345 (free_2): Free symtab->aux.
346 (write_resolution): Handle aux instead of slots.
347 Print sub id to resolution file.
348 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
349 calls with call to process_symtab.
351 2010-07-22 Richard Guenther <rguenther@suse.de>
353 * Makefile.am: New copy_lto_plugin rule to install the plugin
355 * Makefile.in: Regenerated.
357 2010-05-21 Richard Guenther <rguenther@suse.de>
359 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
361 2010-05-07 Richard Guenther <rguenther@suse.de>
363 * lto-plugin.c (free_2): Do not free resolution_file.
364 (write_resolution): Check that we were passed a resolution file.
365 (all_symbols_read_handler): Adjust.
366 (cleanup_handler): Do not remove the resolution file.
367 (process_option): Handle -fresolution=.
369 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
372 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
373 * Makefile.in: Regenerate.
375 2010-04-23 Richard Guenther <rguenther@suse.de>
378 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
379 (translate): Likewise.
380 (all_symbols_read_handler): Likewise.
381 (claim_file_handler): Likewise.
382 (process_option): Likewise.
383 (add_output_files): Likewise. Remove filename length limit.
385 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
387 * Makefile.in: Regenerate.
388 * aclocal.m4: Regenerate.
390 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
393 * lto-plugin.c (cleanup_handler): Delete temporary output files.
395 2010-01-11 Richard Guenther <rguenther@suse.de>
398 * Makefile.am: Disable dependencies.
399 * Makefile.in: Regenerated.
401 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
404 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
407 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
410 * configure: Regenerated.
411 * Makefile.in: Likewise.
413 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
416 * lto-plugin.c (claim_file_handler): Print offsets in hex.
418 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
420 * lto-plugin.c (write_resolution): Assume resolution_file is set.
421 Print the symbol name.
422 (all_symbols_read_handler): Create a resolution file.
424 (cleanup_handler): Remove the resolution file.
425 (process_option): Drop the -resolution option.
427 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
429 * lto-plugin.c (temp_obj_dir_name): Remove.
430 (arguments_file_name): New.
431 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
432 (exec_lto_wrapper): Create arguments file with make_temp_file.
433 (cleanup_handler): Don't remove the temporary directory. Remove the
435 (onload): Don't create the temporary directory.
437 2009-11-04 Richard Guenther <rguenther@suse.de>
438 Rafael Avila de Espindola <espindola@google.com>
440 * lto-plugin.c (plugin_file_info): Remove temp field.
441 (cleanup_handler): Don't delete temporary objects.
442 (claim_file_handler): Don't create temporary objects.
444 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
446 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
448 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
451 * lto-plugin.c (claim_file_handler): Close files that we created.
453 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
455 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
458 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
461 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
462 * configure: Regenerate.
464 2009-10-26 Richard Guenther <rguenther@suse.de>
466 * configure.ac: Use AM_MAINTAINER_MODE.
467 * acinclude.m4: Remove.
468 * configure: Re-generate.
469 * Makefile.in: Likewise.
470 * aclocal.m4: Likewise.
472 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
475 * configure: Regenerate.
476 * configure.ac: Add AC_TYPE_UINT64_T.
478 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
480 * lto-plugin.c (message): New variable.
481 (check): New function.
482 (parse_table_entry, translate, write_resolution,add_output_files,
483 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
485 (cleanup_handler): Use check instead of assert. Remove the arguments
488 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
490 * lto-plugin.c (resolution_file): New.
491 (free_1): Update comment.
492 (free_2): Free resolution_file.
493 (write_resolution): Write resolution to specified file. Use the
494 syms array from the symbol table.
495 (all_symbols_read_handler): Delay call to free_1 past call to
497 (process_option): Add a -resolution option.
499 2009-10-13 Richard Guenther <rguenther@suse.de>
501 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
503 * Makefile.in: Regenerated.
505 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
507 * lto-plugin.c (add_input_library): New.
508 (all_symbols_read_handler): Use add_input_library for items that
510 (process_option): Fit in 80 columns.
511 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
513 2009-10-02 Diego Novillo <dnovillo@google.com>
515 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
516 and -D_FILE_OFFSET_BITS=64.
517 * configure.ac: Add AC_SYS_LARGEFILE.
518 * configure: Regenerate.
519 * Makefile.in: Regenerate.
520 * lto-plugin.c: Fix copyright boilerplate.
522 2009-10-02 Diego Novillo <dnovillo@google.com>
524 * Makefile.am (ACLOCAL_AMFLAGS): Define.
525 * aclocal.m4: Regenerate with aclocal-2.64
526 * acinclude.m4: Remove.
527 * Makefile.in: Regenerate with automake-1.11
528 * configure.ac (AC_PREREQ): Update to 2.64.
529 * configure: Regenerate.
531 2009-10-02 Diego Novillo <dnovillo@google.com>
533 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
534 and -D_FILE_OFFSET_BITS=64.
535 * configure.ac: Add AC_SYS_LARGEFILE.
536 * configure: Regenerate.
537 * Makefile.in: Regenerate.
538 * lto-plugin.c: Fix copyright boilerplate.
540 2009-10-02 Diego Novillo <dnovillo@google.com>
542 * Makefile.am (ACLOCAL_AMFLAGS): Define.
543 * aclocal.m4: Regenerate with aclocal-2.64
544 * acinclude.m4: Remove.
545 * Makefile.in: Regenerate with automake-1.11
546 * configure.ac (AC_PREREQ): Update to 2.64.
547 * configure: Regenerate.
549 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
551 * Makefile.am (liblto_plugin_la_SOURCES): Remove
552 $(top_srcdir)/../gcc/lto/common.c
553 * Makefile.in: Regenerate.
555 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
557 * lto-plugin.c (pass_through_items): New.
558 (num_pass_through_items): New.
559 (all_symbols_read_handler): Update to use the -pass-through option.
560 (process_option): Replace -libgcc with -pass-through.
562 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
564 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
565 register_cleanup to be set.
567 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
569 * Makefile.am: Remove all reference to ltosymtab.
570 * Makefile.in: Regenerate.
571 * lto-symtab.c: Remove.
573 2009-05-21 Diego Novillo <dnovillo@google.com>
575 * configure.ac: Remove call to AC_CHECK_GELF.
576 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
577 * acinclude.m4: Do not include ../config/libelf.m4
578 * Makefile.am (LIBELFLIBS): Define.
580 (AM_CPPFLAGS): Add $(LIBELFINC).
581 (ltosymtab_LDADD): Add $(LIBELFLIBS).
582 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
583 * lto-plugin.c: Always include <gelf.h>
584 * lto-symtab.c: Likewise.
585 * configure: Regenerate.
586 * Makefile.in: Regenerate.
588 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
590 * lto-plugin.c (libgcc_filename): New.
591 (all_symbols_read_handler): Pass libgcc to the linker.
592 (all_symbols_read_handler): Parse -libgcc
594 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
596 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
597 * Makefile.in: Regenerate.
598 * lto-plugin.c (add_output_files): Argument is now a FILE.
599 (exec_lto_wrapper): Use writeargv and pex.
601 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
604 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
605 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
608 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
610 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
612 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
614 * lto-plugin.c: Include libiberty.h.
615 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
618 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
620 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
623 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
625 * lto-plugin.c (plugin_file_info): Remove fd and elf.
626 (parse_table_entry): strdup entry->name and entry->comdat_key.
627 (free_1): Free name and comdat_key. Don't close the file. Don't call
629 (claim_file_handler): Always call elf_end.
631 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
633 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
634 -D_FILE_OFFSET_BITS=64
635 * Makefile.in: Regenerate
637 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
639 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
640 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
641 * Makefile.in: Regenerate.
642 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
643 * configure: Regenerate.
644 * configure.ac: Add AC_SUBST(target_noncanonical).
646 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
648 * lto-plugin.c: Include stdbool.h.
649 (debug, nop): Declare as bool.
651 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
653 * lto-plugin.c (nop): New.
654 (use_original_files): New.
655 (all_symbols_read_handler): Call use_original_files if nop is true.
656 (process_option): Parse the -nop option.
658 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
660 * lto-plugin.c (debug): New.
661 (exec_lto_wrapper): Print argv if debug is true.
662 (process_option): Process the -debug command line option.
664 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
666 * lto-plugin.c (process_option): The argument is now a single option,
667 not a space separated list.
669 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
671 * lto-plugin.c: Include sys/types.h and sys/wait.h
672 (output_files, num_output_files, lto_wrapper_argv,
673 lto_wrapper_num_args): New.
674 (free_2): Free output_files.
675 (write_resolution): Disable.
676 (add_output_files): New.
677 (exec_lto_wrapper): New.
678 (all_symbols_read_handler): Run lto-wrapper.
679 (claim_file_handler): Free lto_file.name and call elf_end.
680 (process_option): New.
682 2008-11-26 Rafael Espindola <espindola@google.com>
684 * lto-plugin.c (add_input_file): New.
685 (get_section): Return NULL if get_section fails.
686 (write_resolution): New.
687 (all_symbols_read_handler): Call add_input_file.
688 (claim_file_handler): Unlink the correct file.
689 (onload): Record add_input_file.
691 2008-09-23 Rafael Espindola <espindola@google.com>
693 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
694 Update the location of common.c.
695 * Makefile.in: Regenerate.
696 * common.c: Moved to gcc/lto.
697 * common.h: Moved to gcc/lto.
698 * lto-plugin.c: Update the location of common.h.
699 * lto-symtab.c: Update the location of common.h.
701 2008-09-23 Rafael Espindola <espindola@google.com>
703 * common.c: Include common.h.
704 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
706 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
709 2008-09-23 Rafael Espindola <espindola@google.com>
711 * lto-plugin.c (plugin_file_info): Add temp.
712 (cleanup_handler): Only delete temporary files.
713 (claim_file_handler): Initialize lto_file.temp.
715 2008-09-23 Rafael Espindola <espindola@google.com>
717 * plugin-api.h: Moved to include.
719 2008-09-23 Rafael Espindola <espindola@google.com>
721 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
724 2008-09-22 Rafael Espindola <espindola@google.com>
726 * plugin-api.h: Copy from binutils' cvs.
728 2008-09-22 Rafael Espindola <espindola@google.com>
730 * lto-symtab.c (get_symbols, add_symbols): Update signature.
731 * plugin-api.h: Copy from binutils' cvs.
733 2008-09-22 Rafael Espindola <espindola@google.com>
735 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
738 2008-09-10 Rafael Espindola <espindola@google.com>
740 * lto-plugin.c (onload): add missing break statements and asserts.
741 * lto-symtab.c (claim_file_handler): Make it static.
742 (all_symbols_read_handler): Make it static.
743 (all_file_handles): Make it static.
744 (num_file_handles): Make it static.
745 (register_claim_file): Make it static.
746 (register_object): Indent properly.
748 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
750 * Makefile.am (ltosymtab_LDADD): Add -lelf.
751 * Makefiel.in: Regenerate.
752 * lto-plugin.c: Include ar.h.
753 (claim_file_handler): Handle file->offset != 0.
754 * lto-symtab.c: Include gelf.h.
755 (all_file_handles): Change type.
756 (register_object): New.
757 (register_file): Add support for archives.
758 (resolve): Update to new type of all_file_handles.
759 (print): Update to new type of all_file_handles.
760 (free_all): Update to new type of all_file_handles.
761 (main): Update to new type of all_file_handles.
763 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
765 * lto-plugin.c (get_string_table): Remove.
766 (get_section): Use elf_strptr instead of get_string_table.
768 2008-09-08 Doug Kwan <dougkwan@google.com>
770 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
771 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
773 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
775 * Makefile.am (ltosymtab_SOURCES): add common.c.
776 (ltosymtab_CFLAGS): New.
777 (liblto_plugin_la_SOURCES): Add common.c.
778 * Makefile.in: Regenerate.
781 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
782 (plugin_symtab): New.
783 (plugin_file_info): New.
784 (register_all_symbols_read): New.
786 (claimed_files): New.
787 (num_claimed_files): New.
788 (translate): Don't drop the slot number.
791 (all_symbols_read_handler): New.
792 (claim_file_handler): Record every claimed file.
793 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
795 * lto-symtab.c: Include stdlib.h, string.h and common.h.
796 (current_file_handle): Remove.
797 (ld_plugin_all_symbols_read_handler): New.
798 (plugin_handle): New.
800 (all_file_handles): New.
801 (num_file_handles): New.
803 (register_all_symbols_read): New.
804 (add_symbols): Don't print the symbols, just record them.
805 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
807 (load_plugin): Use plugin_handle.
808 (register_file): Add the file handle to all_file_handles.
811 (unload_plugin): New.
813 (main): Call all_symbols_read_handler and free resources.
815 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
817 * Makefile.am (AM_CFLAGS): New.
818 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
819 (lib_LTLIBRARIES): New.
820 (liblto_plugin_la_SOURCES): New.
821 (liblto_plugin_la_LIBADD): New.
822 * Makefile.in: Regenerate.
823 * acinclude.m4: Don't include ../config/acx.m4 and
824 ../config/no-executables.m4.
825 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
827 * aclocal.m4: Regenerate.
828 * configure: Regenerate.
829 * configure.ac: Use AM_PROG_LIBTOOL.
831 * lto-symtab.c: Rewrite to use the plugin.
834 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
836 * configure: Regenerate.
837 * configure.ac: Use AC_CHECK_GELF.
838 * lto-symtab.c: Include gelf.h.
839 (get_string_table): Use size independent API.
840 (printTable): Use lld to print 64 bit integers.
842 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
844 * lto-symtab.c (parse_table_entry): Assert entry->kind and
845 entry->visibility are valid.
847 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
848 * lto-symtab.c (table_entry): Add comdat.
849 (parse_table_entry): Read comdat.
851 2008-08-21 Rafael Espindola <espindola@google.com>