1 2022-10-12 Martin Liska <mliska@suse.cz>
3 * configure: Regenerate.
5 2022-10-11 Olivier Hainque <hainque@adacore.com>
6 Olivier Hainque <hainque@adacore.com>
8 * configure: Regenerate.
10 2022-08-01 Martin Liska <mliska@suse.cz>
13 * configure.ac: Replace $target with $host.
14 * configure: Regenerate.
16 2022-07-14 Martin Liska <mliska@suse.cz>
19 * Makefile.am: Use ac_lto_plugin_extra_ldflags for AM_LDFLAGS.
20 * configure.ac: Use AC_SUBST(ac_lto_plugin_extra_ldflags).
21 * Makefile.in: Regenerate.
22 * configure: Regenerate.
24 2022-07-12 Martin Liska <mliska@suse.cz>
26 * lto-plugin.c (negotiate_api_version): New.
27 (onload): Negotiate API version.
28 * Makefile.am: Add -DBASE_VERSION.
29 * Makefile.in: Regenerate.
31 2022-07-07 Martin Liska <mliska@suse.cz>
34 * configure.ac: Configure HAVE_PTHREAD_LOCKING.
35 * lto-plugin.c (LOCK_SECTION): New.
36 (UNLOCK_SECTION): New.
37 (claim_file_handler): Use the newly added macros.
39 * config.h.in: Regenerate.
40 * configure: Regenerate.
42 2022-07-01 Pekka Seppänen <pexu@gcc.mail.kapsi.fi>
45 * configure.ac: Move -pthread from here...
46 * Makefile.am: ...to here.
47 * configure: Regenerate.
48 * Makefile.in: Likewise.
50 2022-06-27 Martin Liska <mliska@suse.cz>
52 * lto-plugin.c (plugin_lock): New lock.
53 (claim_file_handler): Use mutex for critical section.
54 (onload): Initialize mutex.
55 * configure.ac: Check for pthread.h.
56 * configure: Regenerate.
57 * config.h.in: Regenerate.
59 2022-06-20 Martin Liska <mliska@suse.cz>
61 * lto-plugin.c (struct plugin_file_info): Add skip_file flag.
62 (write_resolution): Write resolution only if get_symbols != LDPS_NO_SYMS.
63 (all_symbols_read_handler): Ignore file if skip_file is true.
64 (onload): Handle LDPT_GET_SYMBOLS_V3.
66 2022-05-04 Martin Liska <mliska@suse.cz>
68 * lto-plugin.c (struct plugin_objfile): Use bool for offset
70 (exec_lto_wrapper): Assign true/false to bool variables.
71 (process_offload_section): Likewise.
72 (claim_file_handler): Likewise.
75 2022-03-22 Jakub Jelinek <jakub@redhat.com>
78 * configure.ac (LTO_PLUGIN_USE_SYMVER, LTO_PLUGIN_USE_SYMVER_GNU,
79 LTO_PLUGIN_USE_SYMVER_SUN): New test for symbol versioning support.
80 * Makefile.am (version_arg, version_dep): Set conditionally based
81 on LTO_PLUGIN_USE_SYMVER*.
82 (liblto_plugin_la_LDFLAGS): Use $(version_arg) instead of
83 -export-symbols-regex onload.
84 (liblto_plugin_la_DEPENDENCIES): Depend on $(version_dep).
85 * lto-plugin.map: New file.
86 * configure: Regenerated.
87 * Makefile.in: Regenerated.
89 2022-03-11 Tobias Burnus <tobias@codesourcery.com>
91 * lto-plugin.c (all_symbols_read_handler): With -save-temps, use
92 link_output_name for -foffload-objects's file name, if available.
94 2022-03-01 Martin Liska <mliska@suse.cz>
96 * lto-plugin.c (process_offload_section): Use a linker as many
97 comments are connected to gold linker.
98 (process_option): Likewise.
100 2021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
102 * lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
103 -linker-output-auto-nolto-rel typo.
104 (process_option): Adjust accordingly, accepting both old and
107 2021-09-13 Andrew Pinski <apinski@marvell.com>
110 * Makefile.am: Export only onload.
111 * Makefile.in: Regenerate.
113 2021-06-25 Richard Biener <rguenther@suse.de>
115 * lto-plugin.c (ltrans_objects): New global.
116 (all_symbols_read_handler): If -ltrans-objects was specified,
117 add the output files from the specified file directly.
118 (process_option): Handle -ltrans-objects.
120 2021-05-10 Martin Liska <mliska@suse.cz>
122 * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
123 (LTO_SYMTAB_PREFIX): Likewise.
124 (LTO_SYMTAB_PREFIX_LEN): Likewise.
125 (LTO_SYMTAB_EXT_PREFIX): Likewise.
126 (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
127 (LTO_LTO_PREFIX): Likewise.
128 (LTO_LTO_PREFIX_LEN): Likewise.
129 (OFFLOAD_SECTION): Likewise.
130 (OFFLOAD_SECTION_LEN): Likewise.
131 (startswith): New function.
132 (all_symbols_read_handler): Use it.
133 (process_symtab): Likewise.
134 (process_symtab_extension): Likewise.
135 (process_offload_section): Likewise.
136 (process_option): Likewise.
138 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
141 * configure: Regenerated.
143 2021-04-21 Martin Liska <mliska@suse.cz>
145 * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
147 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
149 * configure: Re-generate.
151 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
153 * configure: Regenerate.
155 2020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
157 * Makefile.am: Avoid using sanitizer.
158 * Makefile.in: Regenerate.
160 2020-09-10 Jonathan Yong <10walls@gmail.com>
162 * Makefile.am: drop versioning from libtool completely.
163 * Makefile.in: regenerate.
165 2020-09-09 Nick Clifton <nickc@redhat.com>
167 * lto-plugin.c (struct plugin_symtab): Add last_sym field.
168 (parse_symtab_extension): Only read as many entries as are
169 available in the buffer. Store the data read into the symbol
170 table indexed from last_sym. Increment last_sym.
172 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
175 * configure: Regenerated.
177 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
180 * configure: Regenerated.
182 2020-05-26 Alexandre Oliva <oliva@adacore.com>
184 * lto-plugin.c (skip_in_suffix): New.
185 (exec_lto_wrapper): Use skip_in_suffix and concat to build
186 non-temporary output names.
187 (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
188 override link_output_name with it.
190 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
193 * configure: Regenerated.
195 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
197 * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
198 (linker_output_set): Change type to bool.
199 (linker_output_known): Likewise.
200 (linker_output_auto_nolto_rel): New variable.
201 (all_symbols_read_handler): Take it into account.
202 <LDPO_REL>: Do not issue the warning if it is set.
203 (process_option): Process -linker-output-auto-notlo-rel.
204 (cleanup_handler): Remove unused variable.
205 (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
207 2020-04-28 H.J. Lu <hongjiu.lu@intel.com>
210 * configure: Regenerated.
212 2020-04-25 H.J. Lu <hongjiu.lu@intel.com>
215 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
216 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
217 AC_SUBST(CET_HOST_FLAGS).
218 * Makefile.in: Regenerated.
219 * aclocal.m4: Likewise.
220 * configure: Likewise.
222 2020-03-19 Martin Liska <mliska@suse.cz>
224 * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
225 (LTO_SYMTAB_PREFIX): ... this.
226 (LTO_SECTION_PREFIX_LEN): Rename to ...
227 (LTO_SYMTAB_PREFIX_LEN): ... this.
228 (LTO_SYMTAB_EXT_PREFIX): New.
229 (LTO_SYMTAB_EXT_PREFIX_LEN): New.
230 (LTO_LTO_PREFIX): New.
231 (LTO_LTO_PREFIX_LEN): New.
232 (parse_table_entry): Fill up unused to zero.
233 (parse_table_entry_extension): New.
234 (parse_symtab_extension): New.
235 (finish_conflict_resolution): Change type
237 (process_symtab): Use new macro name.
238 (process_symtab_extension): New.
239 (claim_file_handler): Parse also process_symtab_extension.
240 (onload): Call new add_symbols_v2.
242 2020-01-01 Jakub Jelinek <jakub@redhat.com>
244 Update copyright years.
246 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
248 * configure: Regenerate.
250 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
252 * lto-plugin.c (cleanup_handler): Remove unused var.
254 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
256 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
257 arguments filename more user-friendly.
258 (file_exists, maybe_unlink): New.
259 (cleanup_handler): Use maybe unlink to handle the
260 case when temps should be saved.
261 (process_option): Look for -v, —-version, -save-temps.
262 (onload): Record the linker output file name.
263 Check for -v, —-version, -save-temps in the GCC collect
266 2019-02-26 Martin Liska <mliska@suse.cz>
268 * lto-symtab.c: Remove.
270 2019-01-01 Jakub Jelinek <jakub@redhat.com>
272 Update copyright years.
274 2018-10-31 Joseph Myers <joseph@codesourcery.com>
277 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
278 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
280 2018-05-30 Jan Hubicka <jh@suse.cz>
282 * lto-plugin.c: (non_claimed_files): New static var.
283 (linker_ouput_known): New static var.
284 (all_symbols_read_handler): When user specifies linker output do not
285 imply it; output warning when nonlto-rel mode is forced.
286 (claim_file_header): Record number of nonclaimed files.
287 (process_option): Remember if linker output is known
289 2018-04-18 David Malcolm <dmalcolm@redhat.com>
292 * configure: Regenerate.
294 2018-01-03 Jakub Jelinek <jakub@redhat.com>
296 Update copyright years.
298 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
301 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
303 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
305 2017-01-17 Jakub Jelinek <jakub@redhat.com>
308 * configure.ac: Add GCC_BASE_VER.
309 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
310 get version from BASE-VER file.
311 * configure: Regenerated.
312 * Makefile.in: Regenerated.
314 2017-01-04 Jakub Jelinek <jakub@redhat.com>
316 Update copyright years.
318 2016-11-15 Matthias Klose <doko@ubuntu.com>
320 * configure: Regenerate.
322 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
325 * lto-plugin.c (struct plugin_offload_file): New.
326 (offload_files): Change type.
327 (offload_files_last, offload_files_last_obj): New.
328 (offload_files_last_lto): New.
329 (free_2): Adjust accordingly.
330 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
331 Don't call free_1 for offload_files. Write names of object files with
332 offloading to the temporary file. Add new option to lto_arg_ptr.
333 (claim_file_handler): Don't claim file if it contains offload sections
334 without LTO sections. If it contains offload sections, add to the list.
336 2016-01-15 Martin Liska <mliska@suse.cz>
338 * lto-plugin.c (all_symbols_read_handler): Assign default
339 value to a string variable.
341 2015-11-25 Jan Hubicka <jh@suse.cz>
344 * lto-plugin.c (linker_output, linker_output_set): New statics.
345 (all_symbols_read_handler): Add -flinker-output option.
346 (onload): Record linker_output info.
348 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
350 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
351 * configure: Regenerate.
352 * config.h.in: Ditto.
354 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
356 * Makefile.am: Drop 'by automake version' from top-level comment.
357 * Makefile.in: Regenerated with automake-1.11.6.
358 * aclocal.m4: Likewise.
359 * configure: Likewise.
361 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
363 * lto-plugin.c (release_input_file): Removed.
364 (claim_file_handler): Don't call release_input_file.
365 (onload): Don't set release_input_file.
367 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
369 * lto-plugin.c (claim_file_handler): Pass handle to
372 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
374 * lto-plugin.c (claim_file_handler): Call release_input_file only
377 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
379 * lto-plugin.c (claim_file_handler): Call release_input_file only
382 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
385 * lto-plugin.c (release_input_file): New.
386 (claim_file_handler): Call release_input_file.
387 (onload): Set release_input_file.
389 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
391 * lto-plugin.c (offload_files, num_offload_files): New static variables.
392 (free_1): Use arguments instead of global variables.
393 (free_2): Free offload_files.
394 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
396 (claim_file_handler): Do not add file to claimed_files if it contains
397 offload sections without LTO sections. Add it to offload_files instead.
399 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
402 * configure: Regenerated.
404 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
405 Bernd Schmidt <bernds@codesourcery.com>
406 Andrey Turetskiy <andrey.turetskiy@intel.com>
407 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
409 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
410 (struct plugin_objfile): Add new field "offload".
411 (process_offload_section): New static function.
412 (claim_file_handler): Claim file if it contains offload sections.
414 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
415 Thomas Schwinge <thomas@codesourcery.com>
416 Ilya Verbin <ilya.verbin@intel.com>
417 Andrey Turetskiy <andrey.turetskiy@intel.com>
419 * Makefile.am (libexecsubdir): Tweak for the possibility of being
420 configured for offload compiler.
421 (accel_dir_suffix, real_target_noncanonical): New variables substituted
423 * Makefile.in: Regenerate.
424 * configure: Regenerate.
425 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
428 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
431 * configure: Regenerate.
433 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
436 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
437 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
439 * Makefile.in: Regenerated.
440 * configure: Likewise.
442 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
444 * configure.ac (--with-libiberty): New configure option.
445 * configure: Regenerate.
446 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
448 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
449 (liblto_plugin_la_DEPENDENCIES): Use them.
450 * Makefile.in: Regenerate.
452 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
455 * configure.ac: Check for -static-libgcc.
456 * configure: Regenerate.
458 2014-04-17 Jakub Jelinek <jakub@redhat.com>
461 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
462 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
463 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
464 over ../libiberty/pic/libiberty.a if the former exists.
465 * Makefile.in: Regenerated.
468 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
469 * Makefile.in: Regenerated.
471 2014-04-02 Richard Biener <rguenther@suse.de>
473 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
474 is set in COLLECT_GCC_OPTIONS.
476 2014-03-28 Richard Biener <rguenther@suse.de>
478 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
480 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
482 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
484 * configure: Regenerate.
485 * Makefile.am (AM_LDFLAGS): New variable.
486 (liblto_plugin_la_LDFLAGS): Add it.
487 * Makefile.in: Regenerate.
489 2013-09-20 Alan Modra <amodra@gmail.com>
491 * configure: Regenerate.
493 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
495 * configure: Regenerated.
497 2012-05-29 Joseph Myers <joseph@codesourcery.com>
499 * lto-plugin.c: Fix typo.
501 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
503 * configure: Regenerated.
505 2012-02-22 Kai Tietz <ktietz@redhat.com>
508 * lto-plugin.c (PRI_LL): New macro.
509 (dump_symtab): Use PRI_LL instead of ll in print.
510 (process_symtab): Use PRI_LL instead of ll in scan.
512 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
514 * configure: Regenerate.
516 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
518 * configure: Regenerate.
520 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
522 * configure: Regenerate.
524 2011-10-02 Jan Hubicka <jh@suse.cz>
527 * lto-plugin.c (get_symbols_v2): New variable.
528 (write_resolution): Use V2 API when available.
529 (onload): Handle LDPT_GET_SYMBOLS_V2.
531 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
532 Andi Kleen <ak@linux.intel.com>
535 * lto-plugin.c (sym_aux): Change id to unsigned long long.
536 (plugin_symtab): Likewise.
537 (dump_symtab): Likewise.
538 (resolve_conflicts): Likewise.
539 (process_symtab): Likewise.
541 2011-08-10 Richard Guenther <rguenther@suse.de>
545 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
546 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
547 * configure: Regenerate.
548 * Makefile.in: Likewise.
549 * aclocal.m4: Likewise.
551 2011-04-20 Jim Meyering <meyering@redhat.com>
553 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
555 2011-04-05 Richard Guenther <rguenther@suse.de>
558 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
560 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
562 * Makefile.in: Regenerate.
563 * aclocal.m4: Regenerate.
564 * configure: Regenerate.
566 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
568 * Makefile.am (all-local): Rename from 'all'.
569 * Makefile.in: Regenerate.
571 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
574 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
575 (liblto_plugin_la_LDFLAGS): Add -module.
576 (copy_lto_plugin): Renamed to...
577 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
579 * Makefile.in: Rebuild.
581 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
584 * Makefile.am (Wc): New helper for encoding -Wc,.
585 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
586 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
587 * Makefile.in: Regenerated.
589 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
593 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
596 * Makefile.am (Wl): New helper for encoding -Wl,.
597 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
598 * Makefile.in: Regenerated.
600 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
603 * Makefile.am (Wl): New helper for encoding -Wl,.
604 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
605 * Makefile.in: Regenerated.
607 2011-01-25 Ian Lance Taylor <iant@google.com>
609 * lto-plugin.c (gold_version): New static variable.
610 (all_symbols_read_handler): Don't check pass_through_items if
611 using gold 1.11 or later.
612 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
614 2011-01-12 Richard Guenther <rguenther@suse.de>
617 * lto-plugin.c (parse_table_entry): Use memcpy to access
620 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
622 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
623 * Makefile.in: Regenerate.
625 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
629 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
631 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
632 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
633 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
634 * Makefile.in: Regenerate.
636 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
640 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
641 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
642 * configure: Regenerate.
643 * config.h.in: Likewise.
645 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
649 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
650 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
651 override -bindir setting.
652 * aclocal.m4: Regenerate.
653 * configure: Regenerate.
654 * Makefile.in: Regenerate.
656 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
658 * config.h.in: Regenerated.
659 * configure: Regenerated.
660 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
661 * lto-plugin.c (WIFEXITED): Define default.
662 (WEXITSTATUS): Likeiwse.
664 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
666 * config.h.in: Regenerated.
667 * configure: Regenerated.
668 * Makefile.in: Regenerated.
669 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
670 * lto-plugin.c: Include sys/wait.h conditionally.
671 * aclocal.m4: Regenerated.
673 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
675 * lto-plugin.c (add_output_files): Fix memory leak.
677 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
681 * configure.ac: Add AC_TYPE_INT64_T test.
682 * config.h.in: Regenerate.
683 * configure: Likewise.
684 * lto-plugin.c (debug): Use char not bool.
686 (check_1): Rename from check, and use int not bool for gate argument.
687 (check): Macro wrapper for the above to coerce gate argument into
688 boolean-valued integer in case it has pointer type.
689 (parse_table_entry): Use 0 not false.
690 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
691 into two 32-bit parts and printing as hex ints.
693 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
696 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
698 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
701 * lto-plugin.h: Delete.
702 * lto-plugin-elf.c: Likewise.
703 * lto-plugin-coff.c: Likewise.
704 * configure.ac: Don't use libelf, don't source config.gcc.
705 (LIBELFLIBS): Delete.
707 (LTO_FORMAT): Delete.
708 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
709 (config.h): Add AC_CONFIG_HEADERS directive.
710 * Makefile.am (LIBELFLIBS): Delete.
712 (LTO_FORMAT): Delete.
714 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
715 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
716 any object-format-specific source file in the link.
717 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
718 * config.h.in: Generate.
719 * configure: Regenerate.
720 * Makefile.in: Likewise.
721 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
722 (LTO_SEGMENT_NAME): New definition.
723 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
724 (LTO_SECTION_PREFIX_LEN): New definition.
725 (struct sym_aux): Struct definition moved here from lto-plugin.h.
726 (struct plugin_symtab): Likewise.
727 (struct plugin_objfile): Likewise.
728 (struct plugin_objfile): New struct def.
729 (enum symbol_style): New enum type.
730 (add_symbols): Make static.
731 (claimed_files): Likewise.
732 (num_claimed_files): Likewise.
733 (sym_style): New global.
734 (check): Make static.
735 (parse_table_entry): Likewise. Respect sym_style when extracting
736 symbol from symtab entry.
737 (translate): Make static.
738 (resolve_conflicts): Likewise.
739 (process_symtab): New function, per-section callback version of
740 old object-format-specific handling from deleted lto-plugin-elf.c.
741 (claim_file_handler): Convert ELF-specific version from deleted
742 lto-plugin-elf.c to simple_object interface and move here.
743 (process_options): Allow new '-sym-style=' option.
744 (onload): Don't call deleted onload_format_checks hook.
746 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
748 * lto-plugin.c (dump_symtab): Correct printf argument type.
749 (finish_conflict_resolution): Initialize resolution.
751 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
754 * configure.ac: Add AC_CANONICAL_SYSTEM.
755 * configure: Regenerated.
757 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
759 * configure.ac: Source config.gcc to determine lto_binary_reader.
760 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
761 * Makefile.am (LTO_FORMAT): Import.
762 (liblto_plugin_la_SOURCES): Add object format dependent module
763 defined by LTO_FORMAT.
764 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
765 and work around libtool warning.
766 * configure: Regenerate.
767 * Makefile.in: Likewise.
768 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
769 (struct sym_aux): Likewise.
770 (struct plugin_symtab): Likewise.
771 (struct plugin_file_info): Likewise.
772 (LTO_SECTION_PREFIX): Likewise.
773 (add_symbols): Make non-static.
774 (claimed_files): Likewise.
775 (num_claimed_files): Likewise.
777 (parse_table_entry): Likewise.
778 (translate): Likewise.
779 (resolve_conflicts): Likewise.
780 (process_symtab): Move to new lto-plugin-elf.c object format dependent
782 (claim_file_handler): Likewise, and make non-static.
783 (onload): Call new onload_format_checks function.
784 * lto-plugin.h: New file.
785 (LTO_SECTION_PREFIX): Move here.
786 (struct sym_aux): Likewise.
787 (struct plugin_symtab): Likewise.
788 (struct plugin_file_info): Likewise.
789 (claim_file_handler): Add new function prototype.
790 (onload_format_checks): Likewise.
791 (check): Declare extern.
792 (translate): Likewise.
793 (parse_table_entry): Likewise.
794 (resolve_conflicts): Likewise.
795 (add_symbols): Likewise.
796 (claimed_files): Likewise.
797 (num_claimed_files): Likewise.
798 * lto-plugin-elf.c (process_symtab): Move here.
799 (claim_file_handler): Likewise, and make non-static.
800 (onload_format_checks): New function factored out from onload.
801 * lto-plugin-coff.c (claim_file_handler): New function stub.
802 (onload_format_checks): Likewise.
804 2010-08-05 Andi Kleen <ak@linux.intel.com>
806 * lto-plugin.c: Include <hashtab.h>
807 (sym_aux): Add next_conflict field to save conflict chains.
808 (plugin_file_info): Add conflicts symtab.
809 (parse_table_entry): Initialize aux->next_conflict.
810 (process_symtab): Increment found.
812 (finish_conflict_resolution): Add.
814 (write_resolution): Remove symbols loop and move into
815 dump_symtab. Call dump_symtab for main symbol and conflicts table.
816 Call free_symtab to free conflicts table.
820 (symbol_strength): Add.
821 (resolve_conflicts): Add.
822 (claim_file_handler): Add n variable. Check return value of
823 process_symtab. Call resolve_conflicts.
825 2010-07-27 Andi Kleen <ak@linux.intel.com>
827 * lto-plugin.c (translate): Remove debug fprintf.
829 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
832 * lto-plugin.c (translate): Cast to unsigned long.
834 2010-07-23 Andi Kleen <ak@linux.intel.com>
837 * lto-plugin.c (sym_aux): Add.
838 (plugin_symtab): Remove slots. Add aux and id.
839 (parse_table_entry): Change to use aux instead of slots.
840 (LTO_SECTION_PREFIX): Add.
841 (translate): Improve buffer allocation. Change to append
842 symbols to existing out buffer.
843 (get_section): Remove.
844 (process_symtab): Add.
845 (free_2): Free symtab->aux.
846 (write_resolution): Handle aux instead of slots.
847 Print sub id to resolution file.
848 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
849 calls with call to process_symtab.
851 2010-07-22 Richard Guenther <rguenther@suse.de>
853 * Makefile.am: New copy_lto_plugin rule to install the plugin
855 * Makefile.in: Regenerated.
857 2010-05-21 Richard Guenther <rguenther@suse.de>
859 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
861 2010-05-07 Richard Guenther <rguenther@suse.de>
863 * lto-plugin.c (free_2): Do not free resolution_file.
864 (write_resolution): Check that we were passed a resolution file.
865 (all_symbols_read_handler): Adjust.
866 (cleanup_handler): Do not remove the resolution file.
867 (process_option): Handle -fresolution=.
869 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
872 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
873 * Makefile.in: Regenerate.
875 2010-04-23 Richard Guenther <rguenther@suse.de>
878 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
879 (translate): Likewise.
880 (all_symbols_read_handler): Likewise.
881 (claim_file_handler): Likewise.
882 (process_option): Likewise.
883 (add_output_files): Likewise. Remove filename length limit.
885 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
887 * Makefile.in: Regenerate.
888 * aclocal.m4: Regenerate.
890 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
893 * lto-plugin.c (cleanup_handler): Delete temporary output files.
895 2010-01-11 Richard Guenther <rguenther@suse.de>
898 * Makefile.am: Disable dependencies.
899 * Makefile.in: Regenerated.
901 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
904 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
907 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
910 * configure: Regenerated.
911 * Makefile.in: Likewise.
913 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
916 * lto-plugin.c (claim_file_handler): Print offsets in hex.
918 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
920 * lto-plugin.c (write_resolution): Assume resolution_file is set.
921 Print the symbol name.
922 (all_symbols_read_handler): Create a resolution file.
924 (cleanup_handler): Remove the resolution file.
925 (process_option): Drop the -resolution option.
927 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
929 * lto-plugin.c (temp_obj_dir_name): Remove.
930 (arguments_file_name): New.
931 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
932 (exec_lto_wrapper): Create arguments file with make_temp_file.
933 (cleanup_handler): Don't remove the temporary directory. Remove the
935 (onload): Don't create the temporary directory.
937 2009-11-04 Richard Guenther <rguenther@suse.de>
938 Rafael Avila de Espindola <espindola@google.com>
940 * lto-plugin.c (plugin_file_info): Remove temp field.
941 (cleanup_handler): Don't delete temporary objects.
942 (claim_file_handler): Don't create temporary objects.
944 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
946 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
948 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
951 * lto-plugin.c (claim_file_handler): Close files that we created.
953 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
955 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
958 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
961 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
962 * configure: Regenerate.
964 2009-10-26 Richard Guenther <rguenther@suse.de>
966 * configure.ac: Use AM_MAINTAINER_MODE.
967 * acinclude.m4: Remove.
968 * configure: Re-generate.
969 * Makefile.in: Likewise.
970 * aclocal.m4: Likewise.
972 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
975 * configure: Regenerate.
976 * configure.ac: Add AC_TYPE_UINT64_T.
978 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
980 * lto-plugin.c (message): New variable.
981 (check): New function.
982 (parse_table_entry, translate, write_resolution,add_output_files,
983 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
985 (cleanup_handler): Use check instead of assert. Remove the arguments
988 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
990 * lto-plugin.c (resolution_file): New.
991 (free_1): Update comment.
992 (free_2): Free resolution_file.
993 (write_resolution): Write resolution to specified file. Use the
994 syms array from the symbol table.
995 (all_symbols_read_handler): Delay call to free_1 past call to
997 (process_option): Add a -resolution option.
999 2009-10-13 Richard Guenther <rguenther@suse.de>
1001 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
1003 * Makefile.in: Regenerated.
1005 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
1007 * lto-plugin.c (add_input_library): New.
1008 (all_symbols_read_handler): Use add_input_library for items that
1010 (process_option): Fit in 80 columns.
1011 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
1013 2009-10-02 Diego Novillo <dnovillo@google.com>
1015 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1016 and -D_FILE_OFFSET_BITS=64.
1017 * configure.ac: Add AC_SYS_LARGEFILE.
1018 * configure: Regenerate.
1019 * Makefile.in: Regenerate.
1020 * lto-plugin.c: Fix copyright boilerplate.
1022 2009-10-02 Diego Novillo <dnovillo@google.com>
1024 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1025 * aclocal.m4: Regenerate with aclocal-2.64
1026 * acinclude.m4: Remove.
1027 * Makefile.in: Regenerate with automake-1.11
1028 * configure.ac (AC_PREREQ): Update to 2.64.
1029 * configure: Regenerate.
1031 2009-10-02 Diego Novillo <dnovillo@google.com>
1033 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1034 and -D_FILE_OFFSET_BITS=64.
1035 * configure.ac: Add AC_SYS_LARGEFILE.
1036 * configure: Regenerate.
1037 * Makefile.in: Regenerate.
1038 * lto-plugin.c: Fix copyright boilerplate.
1040 2009-10-02 Diego Novillo <dnovillo@google.com>
1042 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1043 * aclocal.m4: Regenerate with aclocal-2.64
1044 * acinclude.m4: Remove.
1045 * Makefile.in: Regenerate with automake-1.11
1046 * configure.ac (AC_PREREQ): Update to 2.64.
1047 * configure: Regenerate.
1049 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
1051 * Makefile.am (liblto_plugin_la_SOURCES): Remove
1052 $(top_srcdir)/../gcc/lto/common.c
1053 * Makefile.in: Regenerate.
1055 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
1057 * lto-plugin.c (pass_through_items): New.
1058 (num_pass_through_items): New.
1059 (all_symbols_read_handler): Update to use the -pass-through option.
1060 (process_option): Replace -libgcc with -pass-through.
1062 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
1064 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
1065 register_cleanup to be set.
1067 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
1069 * Makefile.am: Remove all reference to ltosymtab.
1070 * Makefile.in: Regenerate.
1071 * lto-symtab.c: Remove.
1073 2009-05-21 Diego Novillo <dnovillo@google.com>
1075 * configure.ac: Remove call to AC_CHECK_GELF.
1076 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
1077 * acinclude.m4: Do not include ../config/libelf.m4
1078 * Makefile.am (LIBELFLIBS): Define.
1079 (LIBELFINC): Define.
1080 (AM_CPPFLAGS): Add $(LIBELFINC).
1081 (ltosymtab_LDADD): Add $(LIBELFLIBS).
1082 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
1083 * lto-plugin.c: Always include <gelf.h>
1084 * lto-symtab.c: Likewise.
1085 * configure: Regenerate.
1086 * Makefile.in: Regenerate.
1088 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
1090 * lto-plugin.c (libgcc_filename): New.
1091 (all_symbols_read_handler): Pass libgcc to the linker.
1092 (all_symbols_read_handler): Parse -libgcc
1094 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
1096 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
1097 * Makefile.in: Regenerate.
1098 * lto-plugin.c (add_output_files): Argument is now a FILE.
1099 (exec_lto_wrapper): Use writeargv and pex.
1101 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1104 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1105 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1108 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1110 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1112 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
1114 * lto-plugin.c: Include libiberty.h.
1115 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1118 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
1120 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1121 file to lto-wrapper.
1123 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
1125 * lto-plugin.c (plugin_file_info): Remove fd and elf.
1126 (parse_table_entry): strdup entry->name and entry->comdat_key.
1127 (free_1): Free name and comdat_key. Don't close the file. Don't call
1129 (claim_file_handler): Always call elf_end.
1131 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
1133 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1134 -D_FILE_OFFSET_BITS=64
1135 * Makefile.in: Regenerate
1137 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
1139 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1140 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1141 * Makefile.in: Regenerate.
1142 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1143 * configure: Regenerate.
1144 * configure.ac: Add AC_SUBST(target_noncanonical).
1146 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1148 * lto-plugin.c: Include stdbool.h.
1149 (debug, nop): Declare as bool.
1151 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1153 * lto-plugin.c (nop): New.
1154 (use_original_files): New.
1155 (all_symbols_read_handler): Call use_original_files if nop is true.
1156 (process_option): Parse the -nop option.
1158 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1160 * lto-plugin.c (debug): New.
1161 (exec_lto_wrapper): Print argv if debug is true.
1162 (process_option): Process the -debug command line option.
1164 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
1166 * lto-plugin.c (process_option): The argument is now a single option,
1167 not a space separated list.
1169 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
1171 * lto-plugin.c: Include sys/types.h and sys/wait.h
1172 (output_files, num_output_files, lto_wrapper_argv,
1173 lto_wrapper_num_args): New.
1174 (free_2): Free output_files.
1175 (write_resolution): Disable.
1176 (add_output_files): New.
1177 (exec_lto_wrapper): New.
1178 (all_symbols_read_handler): Run lto-wrapper.
1179 (claim_file_handler): Free lto_file.name and call elf_end.
1180 (process_option): New.
1182 2008-11-26 Rafael Espindola <espindola@google.com>
1184 * lto-plugin.c (add_input_file): New.
1185 (get_section): Return NULL if get_section fails.
1186 (write_resolution): New.
1187 (all_symbols_read_handler): Call add_input_file.
1188 (claim_file_handler): Unlink the correct file.
1189 (onload): Record add_input_file.
1191 2008-09-23 Rafael Espindola <espindola@google.com>
1193 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1194 Update the location of common.c.
1195 * Makefile.in: Regenerate.
1196 * common.c: Moved to gcc/lto.
1197 * common.h: Moved to gcc/lto.
1198 * lto-plugin.c: Update the location of common.h.
1199 * lto-symtab.c: Update the location of common.h.
1201 2008-09-23 Rafael Espindola <espindola@google.com>
1203 * common.c: Include common.h.
1204 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1206 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1209 2008-09-23 Rafael Espindola <espindola@google.com>
1211 * lto-plugin.c (plugin_file_info): Add temp.
1212 (cleanup_handler): Only delete temporary files.
1213 (claim_file_handler): Initialize lto_file.temp.
1215 2008-09-23 Rafael Espindola <espindola@google.com>
1217 * plugin-api.h: Moved to include.
1219 2008-09-23 Rafael Espindola <espindola@google.com>
1221 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1224 2008-09-22 Rafael Espindola <espindola@google.com>
1226 * plugin-api.h: Copy from binutils' cvs.
1228 2008-09-22 Rafael Espindola <espindola@google.com>
1230 * lto-symtab.c (get_symbols, add_symbols): Update signature.
1231 * plugin-api.h: Copy from binutils' cvs.
1233 2008-09-22 Rafael Espindola <espindola@google.com>
1235 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1238 2008-09-10 Rafael Espindola <espindola@google.com>
1240 * lto-plugin.c (onload): add missing break statements and asserts.
1241 * lto-symtab.c (claim_file_handler): Make it static.
1242 (all_symbols_read_handler): Make it static.
1243 (all_file_handles): Make it static.
1244 (num_file_handles): Make it static.
1245 (register_claim_file): Make it static.
1246 (register_object): Indent properly.
1248 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1250 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1251 * Makefiel.in: Regenerate.
1252 * lto-plugin.c: Include ar.h.
1253 (claim_file_handler): Handle file->offset != 0.
1254 * lto-symtab.c: Include gelf.h.
1255 (all_file_handles): Change type.
1256 (register_object): New.
1257 (register_file): Add support for archives.
1258 (resolve): Update to new type of all_file_handles.
1259 (print): Update to new type of all_file_handles.
1260 (free_all): Update to new type of all_file_handles.
1261 (main): Update to new type of all_file_handles.
1263 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1265 * lto-plugin.c (get_string_table): Remove.
1266 (get_section): Use elf_strptr instead of get_string_table.
1268 2008-09-08 Doug Kwan <dougkwan@google.com>
1270 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1271 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1273 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
1275 * Makefile.am (ltosymtab_SOURCES): add common.c.
1276 (ltosymtab_CFLAGS): New.
1277 (liblto_plugin_la_SOURCES): Add common.c.
1278 * Makefile.in: Regenerate.
1281 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1282 (plugin_symtab): New.
1283 (plugin_file_info): New.
1284 (register_all_symbols_read): New.
1286 (claimed_files): New.
1287 (num_claimed_files): New.
1288 (translate): Don't drop the slot number.
1291 (all_symbols_read_handler): New.
1292 (claim_file_handler): Record every claimed file.
1293 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1295 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1296 (current_file_handle): Remove.
1297 (ld_plugin_all_symbols_read_handler): New.
1298 (plugin_handle): New.
1300 (all_file_handles): New.
1301 (num_file_handles): New.
1303 (register_all_symbols_read): New.
1304 (add_symbols): Don't print the symbols, just record them.
1305 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1307 (load_plugin): Use plugin_handle.
1308 (register_file): Add the file handle to all_file_handles.
1311 (unload_plugin): New.
1313 (main): Call all_symbols_read_handler and free resources.
1315 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1317 * Makefile.am (AM_CFLAGS): New.
1318 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1319 (lib_LTLIBRARIES): New.
1320 (liblto_plugin_la_SOURCES): New.
1321 (liblto_plugin_la_LIBADD): New.
1322 * Makefile.in: Regenerate.
1323 * acinclude.m4: Don't include ../config/acx.m4 and
1324 ../config/no-executables.m4.
1325 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1327 * aclocal.m4: Regenerate.
1328 * configure: Regenerate.
1329 * configure.ac: Use AM_PROG_LIBTOOL.
1330 * lto-plugin.c: New.
1331 * lto-symtab.c: Rewrite to use the plugin.
1332 * plugin-api.h: New.
1334 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1336 * configure: Regenerate.
1337 * configure.ac: Use AC_CHECK_GELF.
1338 * lto-symtab.c: Include gelf.h.
1339 (get_string_table): Use size independent API.
1340 (printTable): Use lld to print 64 bit integers.
1342 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1344 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1345 entry->visibility are valid.
1347 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1348 * lto-symtab.c (table_entry): Add comdat.
1349 (parse_table_entry): Read comdat.
1351 2008-08-21 Rafael Espindola <espindola@google.com>
1355 * acinclude.m4: New.
1358 * configure.ac: New.
1359 * lto-symtab.c: New.