1 2022-07-14 Martin Liska <mliska@suse.cz>
4 * Makefile.am: Use ac_lto_plugin_extra_ldflags for AM_LDFLAGS.
5 * configure.ac: Use AC_SUBST(ac_lto_plugin_extra_ldflags).
6 * Makefile.in: Regenerate.
7 * configure: Regenerate.
9 2022-07-12 Martin Liska <mliska@suse.cz>
11 * lto-plugin.c (negotiate_api_version): New.
12 (onload): Negotiate API version.
13 * Makefile.am: Add -DBASE_VERSION.
14 * Makefile.in: Regenerate.
16 2022-07-07 Martin Liska <mliska@suse.cz>
19 * configure.ac: Configure HAVE_PTHREAD_LOCKING.
20 * lto-plugin.c (LOCK_SECTION): New.
21 (UNLOCK_SECTION): New.
22 (claim_file_handler): Use the newly added macros.
24 * config.h.in: Regenerate.
25 * configure: Regenerate.
27 2022-07-01 Pekka Seppänen <pexu@gcc.mail.kapsi.fi>
30 * configure.ac: Move -pthread from here...
31 * Makefile.am: ...to here.
32 * configure: Regenerate.
33 * Makefile.in: Likewise.
35 2022-06-27 Martin Liska <mliska@suse.cz>
37 * lto-plugin.c (plugin_lock): New lock.
38 (claim_file_handler): Use mutex for critical section.
39 (onload): Initialize mutex.
40 * configure.ac: Check for pthread.h.
41 * configure: Regenerate.
42 * config.h.in: Regenerate.
44 2022-06-20 Martin Liska <mliska@suse.cz>
46 * lto-plugin.c (struct plugin_file_info): Add skip_file flag.
47 (write_resolution): Write resolution only if get_symbols != LDPS_NO_SYMS.
48 (all_symbols_read_handler): Ignore file if skip_file is true.
49 (onload): Handle LDPT_GET_SYMBOLS_V3.
51 2022-05-04 Martin Liska <mliska@suse.cz>
53 * lto-plugin.c (struct plugin_objfile): Use bool for offset
55 (exec_lto_wrapper): Assign true/false to bool variables.
56 (process_offload_section): Likewise.
57 (claim_file_handler): Likewise.
60 2022-03-22 Jakub Jelinek <jakub@redhat.com>
63 * configure.ac (LTO_PLUGIN_USE_SYMVER, LTO_PLUGIN_USE_SYMVER_GNU,
64 LTO_PLUGIN_USE_SYMVER_SUN): New test for symbol versioning support.
65 * Makefile.am (version_arg, version_dep): Set conditionally based
66 on LTO_PLUGIN_USE_SYMVER*.
67 (liblto_plugin_la_LDFLAGS): Use $(version_arg) instead of
68 -export-symbols-regex onload.
69 (liblto_plugin_la_DEPENDENCIES): Depend on $(version_dep).
70 * lto-plugin.map: New file.
71 * configure: Regenerated.
72 * Makefile.in: Regenerated.
74 2022-03-11 Tobias Burnus <tobias@codesourcery.com>
76 * lto-plugin.c (all_symbols_read_handler): With -save-temps, use
77 link_output_name for -foffload-objects's file name, if available.
79 2022-03-01 Martin Liska <mliska@suse.cz>
81 * lto-plugin.c (process_offload_section): Use a linker as many
82 comments are connected to gold linker.
83 (process_option): Likewise.
85 2021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
87 * lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
88 -linker-output-auto-nolto-rel typo.
89 (process_option): Adjust accordingly, accepting both old and
92 2021-09-13 Andrew Pinski <apinski@marvell.com>
95 * Makefile.am: Export only onload.
96 * Makefile.in: Regenerate.
98 2021-06-25 Richard Biener <rguenther@suse.de>
100 * lto-plugin.c (ltrans_objects): New global.
101 (all_symbols_read_handler): If -ltrans-objects was specified,
102 add the output files from the specified file directly.
103 (process_option): Handle -ltrans-objects.
105 2021-05-10 Martin Liska <mliska@suse.cz>
107 * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
108 (LTO_SYMTAB_PREFIX): Likewise.
109 (LTO_SYMTAB_PREFIX_LEN): Likewise.
110 (LTO_SYMTAB_EXT_PREFIX): Likewise.
111 (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
112 (LTO_LTO_PREFIX): Likewise.
113 (LTO_LTO_PREFIX_LEN): Likewise.
114 (OFFLOAD_SECTION): Likewise.
115 (OFFLOAD_SECTION_LEN): Likewise.
116 (startswith): New function.
117 (all_symbols_read_handler): Use it.
118 (process_symtab): Likewise.
119 (process_symtab_extension): Likewise.
120 (process_offload_section): Likewise.
121 (process_option): Likewise.
123 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
126 * configure: Regenerated.
128 2021-04-21 Martin Liska <mliska@suse.cz>
130 * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
132 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
134 * configure: Re-generate.
136 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
138 * configure: Regenerate.
140 2020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
142 * Makefile.am: Avoid using sanitizer.
143 * Makefile.in: Regenerate.
145 2020-09-10 Jonathan Yong <10walls@gmail.com>
147 * Makefile.am: drop versioning from libtool completely.
148 * Makefile.in: regenerate.
150 2020-09-09 Nick Clifton <nickc@redhat.com>
152 * lto-plugin.c (struct plugin_symtab): Add last_sym field.
153 (parse_symtab_extension): Only read as many entries as are
154 available in the buffer. Store the data read into the symbol
155 table indexed from last_sym. Increment last_sym.
157 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
160 * configure: Regenerated.
162 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
165 * configure: Regenerated.
167 2020-05-26 Alexandre Oliva <oliva@adacore.com>
169 * lto-plugin.c (skip_in_suffix): New.
170 (exec_lto_wrapper): Use skip_in_suffix and concat to build
171 non-temporary output names.
172 (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
173 override link_output_name with it.
175 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
178 * configure: Regenerated.
180 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
182 * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
183 (linker_output_set): Change type to bool.
184 (linker_output_known): Likewise.
185 (linker_output_auto_nolto_rel): New variable.
186 (all_symbols_read_handler): Take it into account.
187 <LDPO_REL>: Do not issue the warning if it is set.
188 (process_option): Process -linker-output-auto-notlo-rel.
189 (cleanup_handler): Remove unused variable.
190 (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
192 2020-04-28 H.J. Lu <hongjiu.lu@intel.com>
195 * configure: Regenerated.
197 2020-04-25 H.J. Lu <hongjiu.lu@intel.com>
200 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
201 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
202 AC_SUBST(CET_HOST_FLAGS).
203 * Makefile.in: Regenerated.
204 * aclocal.m4: Likewise.
205 * configure: Likewise.
207 2020-03-19 Martin Liska <mliska@suse.cz>
209 * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
210 (LTO_SYMTAB_PREFIX): ... this.
211 (LTO_SECTION_PREFIX_LEN): Rename to ...
212 (LTO_SYMTAB_PREFIX_LEN): ... this.
213 (LTO_SYMTAB_EXT_PREFIX): New.
214 (LTO_SYMTAB_EXT_PREFIX_LEN): New.
215 (LTO_LTO_PREFIX): New.
216 (LTO_LTO_PREFIX_LEN): New.
217 (parse_table_entry): Fill up unused to zero.
218 (parse_table_entry_extension): New.
219 (parse_symtab_extension): New.
220 (finish_conflict_resolution): Change type
222 (process_symtab): Use new macro name.
223 (process_symtab_extension): New.
224 (claim_file_handler): Parse also process_symtab_extension.
225 (onload): Call new add_symbols_v2.
227 2020-01-01 Jakub Jelinek <jakub@redhat.com>
229 Update copyright years.
231 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
233 * configure: Regenerate.
235 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
237 * lto-plugin.c (cleanup_handler): Remove unused var.
239 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
241 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
242 arguments filename more user-friendly.
243 (file_exists, maybe_unlink): New.
244 (cleanup_handler): Use maybe unlink to handle the
245 case when temps should be saved.
246 (process_option): Look for -v, —-version, -save-temps.
247 (onload): Record the linker output file name.
248 Check for -v, —-version, -save-temps in the GCC collect
251 2019-02-26 Martin Liska <mliska@suse.cz>
253 * lto-symtab.c: Remove.
255 2019-01-01 Jakub Jelinek <jakub@redhat.com>
257 Update copyright years.
259 2018-10-31 Joseph Myers <joseph@codesourcery.com>
262 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
263 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
265 2018-05-30 Jan Hubicka <jh@suse.cz>
267 * lto-plugin.c: (non_claimed_files): New static var.
268 (linker_ouput_known): New static var.
269 (all_symbols_read_handler): When user specifies linker output do not
270 imply it; output warning when nonlto-rel mode is forced.
271 (claim_file_header): Record number of nonclaimed files.
272 (process_option): Remember if linker output is known
274 2018-04-18 David Malcolm <dmalcolm@redhat.com>
277 * configure: Regenerate.
279 2018-01-03 Jakub Jelinek <jakub@redhat.com>
281 Update copyright years.
283 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
286 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
288 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
290 2017-01-17 Jakub Jelinek <jakub@redhat.com>
293 * configure.ac: Add GCC_BASE_VER.
294 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
295 get version from BASE-VER file.
296 * configure: Regenerated.
297 * Makefile.in: Regenerated.
299 2017-01-04 Jakub Jelinek <jakub@redhat.com>
301 Update copyright years.
303 2016-11-15 Matthias Klose <doko@ubuntu.com>
305 * configure: Regenerate.
307 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
310 * lto-plugin.c (struct plugin_offload_file): New.
311 (offload_files): Change type.
312 (offload_files_last, offload_files_last_obj): New.
313 (offload_files_last_lto): New.
314 (free_2): Adjust accordingly.
315 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
316 Don't call free_1 for offload_files. Write names of object files with
317 offloading to the temporary file. Add new option to lto_arg_ptr.
318 (claim_file_handler): Don't claim file if it contains offload sections
319 without LTO sections. If it contains offload sections, add to the list.
321 2016-01-15 Martin Liska <mliska@suse.cz>
323 * lto-plugin.c (all_symbols_read_handler): Assign default
324 value to a string variable.
326 2015-11-25 Jan Hubicka <jh@suse.cz>
329 * lto-plugin.c (linker_output, linker_output_set): New statics.
330 (all_symbols_read_handler): Add -flinker-output option.
331 (onload): Record linker_output info.
333 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
335 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
336 * configure: Regenerate.
337 * config.h.in: Ditto.
339 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
341 * Makefile.am: Drop 'by automake version' from top-level comment.
342 * Makefile.in: Regenerated with automake-1.11.6.
343 * aclocal.m4: Likewise.
344 * configure: Likewise.
346 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
348 * lto-plugin.c (release_input_file): Removed.
349 (claim_file_handler): Don't call release_input_file.
350 (onload): Don't set release_input_file.
352 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
354 * lto-plugin.c (claim_file_handler): Pass handle to
357 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
359 * lto-plugin.c (claim_file_handler): Call release_input_file only
362 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
364 * lto-plugin.c (claim_file_handler): Call release_input_file only
367 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
370 * lto-plugin.c (release_input_file): New.
371 (claim_file_handler): Call release_input_file.
372 (onload): Set release_input_file.
374 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
376 * lto-plugin.c (offload_files, num_offload_files): New static variables.
377 (free_1): Use arguments instead of global variables.
378 (free_2): Free offload_files.
379 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
381 (claim_file_handler): Do not add file to claimed_files if it contains
382 offload sections without LTO sections. Add it to offload_files instead.
384 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
387 * configure: Regenerated.
389 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
390 Bernd Schmidt <bernds@codesourcery.com>
391 Andrey Turetskiy <andrey.turetskiy@intel.com>
392 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
394 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
395 (struct plugin_objfile): Add new field "offload".
396 (process_offload_section): New static function.
397 (claim_file_handler): Claim file if it contains offload sections.
399 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
400 Thomas Schwinge <thomas@codesourcery.com>
401 Ilya Verbin <ilya.verbin@intel.com>
402 Andrey Turetskiy <andrey.turetskiy@intel.com>
404 * Makefile.am (libexecsubdir): Tweak for the possibility of being
405 configured for offload compiler.
406 (accel_dir_suffix, real_target_noncanonical): New variables substituted
408 * Makefile.in: Regenerate.
409 * configure: Regenerate.
410 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
413 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
416 * configure: Regenerate.
418 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
421 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
422 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
424 * Makefile.in: Regenerated.
425 * configure: Likewise.
427 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
429 * configure.ac (--with-libiberty): New configure option.
430 * configure: Regenerate.
431 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
433 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
434 (liblto_plugin_la_DEPENDENCIES): Use them.
435 * Makefile.in: Regenerate.
437 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
440 * configure.ac: Check for -static-libgcc.
441 * configure: Regenerate.
443 2014-04-17 Jakub Jelinek <jakub@redhat.com>
446 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
447 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
448 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
449 over ../libiberty/pic/libiberty.a if the former exists.
450 * Makefile.in: Regenerated.
453 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
454 * Makefile.in: Regenerated.
456 2014-04-02 Richard Biener <rguenther@suse.de>
458 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
459 is set in COLLECT_GCC_OPTIONS.
461 2014-03-28 Richard Biener <rguenther@suse.de>
463 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
465 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
467 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
469 * configure: Regenerate.
470 * Makefile.am (AM_LDFLAGS): New variable.
471 (liblto_plugin_la_LDFLAGS): Add it.
472 * Makefile.in: Regenerate.
474 2013-09-20 Alan Modra <amodra@gmail.com>
476 * configure: Regenerate.
478 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
480 * configure: Regenerated.
482 2012-05-29 Joseph Myers <joseph@codesourcery.com>
484 * lto-plugin.c: Fix typo.
486 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
488 * configure: Regenerated.
490 2012-02-22 Kai Tietz <ktietz@redhat.com>
493 * lto-plugin.c (PRI_LL): New macro.
494 (dump_symtab): Use PRI_LL instead of ll in print.
495 (process_symtab): Use PRI_LL instead of ll in scan.
497 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
499 * configure: Regenerate.
501 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
503 * configure: Regenerate.
505 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
507 * configure: Regenerate.
509 2011-10-02 Jan Hubicka <jh@suse.cz>
512 * lto-plugin.c (get_symbols_v2): New variable.
513 (write_resolution): Use V2 API when available.
514 (onload): Handle LDPT_GET_SYMBOLS_V2.
516 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
517 Andi Kleen <ak@linux.intel.com>
520 * lto-plugin.c (sym_aux): Change id to unsigned long long.
521 (plugin_symtab): Likewise.
522 (dump_symtab): Likewise.
523 (resolve_conflicts): Likewise.
524 (process_symtab): Likewise.
526 2011-08-10 Richard Guenther <rguenther@suse.de>
530 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
531 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
532 * configure: Regenerate.
533 * Makefile.in: Likewise.
534 * aclocal.m4: Likewise.
536 2011-04-20 Jim Meyering <meyering@redhat.com>
538 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
540 2011-04-05 Richard Guenther <rguenther@suse.de>
543 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
545 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
547 * Makefile.in: Regenerate.
548 * aclocal.m4: Regenerate.
549 * configure: Regenerate.
551 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
553 * Makefile.am (all-local): Rename from 'all'.
554 * Makefile.in: Regenerate.
556 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
559 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
560 (liblto_plugin_la_LDFLAGS): Add -module.
561 (copy_lto_plugin): Renamed to...
562 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
564 * Makefile.in: Rebuild.
566 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
569 * Makefile.am (Wc): New helper for encoding -Wc,.
570 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
571 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
572 * Makefile.in: Regenerated.
574 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
578 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
581 * Makefile.am (Wl): New helper for encoding -Wl,.
582 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
583 * Makefile.in: Regenerated.
585 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
588 * Makefile.am (Wl): New helper for encoding -Wl,.
589 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
590 * Makefile.in: Regenerated.
592 2011-01-25 Ian Lance Taylor <iant@google.com>
594 * lto-plugin.c (gold_version): New static variable.
595 (all_symbols_read_handler): Don't check pass_through_items if
596 using gold 1.11 or later.
597 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
599 2011-01-12 Richard Guenther <rguenther@suse.de>
602 * lto-plugin.c (parse_table_entry): Use memcpy to access
605 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
607 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
608 * Makefile.in: Regenerate.
610 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
614 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
616 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
617 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
618 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
619 * Makefile.in: Regenerate.
621 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
625 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
626 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
627 * configure: Regenerate.
628 * config.h.in: Likewise.
630 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
634 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
635 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
636 override -bindir setting.
637 * aclocal.m4: Regenerate.
638 * configure: Regenerate.
639 * Makefile.in: Regenerate.
641 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
643 * config.h.in: Regenerated.
644 * configure: Regenerated.
645 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
646 * lto-plugin.c (WIFEXITED): Define default.
647 (WEXITSTATUS): Likeiwse.
649 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
651 * config.h.in: Regenerated.
652 * configure: Regenerated.
653 * Makefile.in: Regenerated.
654 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
655 * lto-plugin.c: Include sys/wait.h conditionally.
656 * aclocal.m4: Regenerated.
658 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
660 * lto-plugin.c (add_output_files): Fix memory leak.
662 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
666 * configure.ac: Add AC_TYPE_INT64_T test.
667 * config.h.in: Regenerate.
668 * configure: Likewise.
669 * lto-plugin.c (debug): Use char not bool.
671 (check_1): Rename from check, and use int not bool for gate argument.
672 (check): Macro wrapper for the above to coerce gate argument into
673 boolean-valued integer in case it has pointer type.
674 (parse_table_entry): Use 0 not false.
675 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
676 into two 32-bit parts and printing as hex ints.
678 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
681 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
683 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
686 * lto-plugin.h: Delete.
687 * lto-plugin-elf.c: Likewise.
688 * lto-plugin-coff.c: Likewise.
689 * configure.ac: Don't use libelf, don't source config.gcc.
690 (LIBELFLIBS): Delete.
692 (LTO_FORMAT): Delete.
693 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
694 (config.h): Add AC_CONFIG_HEADERS directive.
695 * Makefile.am (LIBELFLIBS): Delete.
697 (LTO_FORMAT): Delete.
699 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
700 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
701 any object-format-specific source file in the link.
702 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
703 * config.h.in: Generate.
704 * configure: Regenerate.
705 * Makefile.in: Likewise.
706 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
707 (LTO_SEGMENT_NAME): New definition.
708 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
709 (LTO_SECTION_PREFIX_LEN): New definition.
710 (struct sym_aux): Struct definition moved here from lto-plugin.h.
711 (struct plugin_symtab): Likewise.
712 (struct plugin_objfile): Likewise.
713 (struct plugin_objfile): New struct def.
714 (enum symbol_style): New enum type.
715 (add_symbols): Make static.
716 (claimed_files): Likewise.
717 (num_claimed_files): Likewise.
718 (sym_style): New global.
719 (check): Make static.
720 (parse_table_entry): Likewise. Respect sym_style when extracting
721 symbol from symtab entry.
722 (translate): Make static.
723 (resolve_conflicts): Likewise.
724 (process_symtab): New function, per-section callback version of
725 old object-format-specific handling from deleted lto-plugin-elf.c.
726 (claim_file_handler): Convert ELF-specific version from deleted
727 lto-plugin-elf.c to simple_object interface and move here.
728 (process_options): Allow new '-sym-style=' option.
729 (onload): Don't call deleted onload_format_checks hook.
731 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
733 * lto-plugin.c (dump_symtab): Correct printf argument type.
734 (finish_conflict_resolution): Initialize resolution.
736 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
739 * configure.ac: Add AC_CANONICAL_SYSTEM.
740 * configure: Regenerated.
742 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
744 * configure.ac: Source config.gcc to determine lto_binary_reader.
745 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
746 * Makefile.am (LTO_FORMAT): Import.
747 (liblto_plugin_la_SOURCES): Add object format dependent module
748 defined by LTO_FORMAT.
749 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
750 and work around libtool warning.
751 * configure: Regenerate.
752 * Makefile.in: Likewise.
753 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
754 (struct sym_aux): Likewise.
755 (struct plugin_symtab): Likewise.
756 (struct plugin_file_info): Likewise.
757 (LTO_SECTION_PREFIX): Likewise.
758 (add_symbols): Make non-static.
759 (claimed_files): Likewise.
760 (num_claimed_files): Likewise.
762 (parse_table_entry): Likewise.
763 (translate): Likewise.
764 (resolve_conflicts): Likewise.
765 (process_symtab): Move to new lto-plugin-elf.c object format dependent
767 (claim_file_handler): Likewise, and make non-static.
768 (onload): Call new onload_format_checks function.
769 * lto-plugin.h: New file.
770 (LTO_SECTION_PREFIX): Move here.
771 (struct sym_aux): Likewise.
772 (struct plugin_symtab): Likewise.
773 (struct plugin_file_info): Likewise.
774 (claim_file_handler): Add new function prototype.
775 (onload_format_checks): Likewise.
776 (check): Declare extern.
777 (translate): Likewise.
778 (parse_table_entry): Likewise.
779 (resolve_conflicts): Likewise.
780 (add_symbols): Likewise.
781 (claimed_files): Likewise.
782 (num_claimed_files): Likewise.
783 * lto-plugin-elf.c (process_symtab): Move here.
784 (claim_file_handler): Likewise, and make non-static.
785 (onload_format_checks): New function factored out from onload.
786 * lto-plugin-coff.c (claim_file_handler): New function stub.
787 (onload_format_checks): Likewise.
789 2010-08-05 Andi Kleen <ak@linux.intel.com>
791 * lto-plugin.c: Include <hashtab.h>
792 (sym_aux): Add next_conflict field to save conflict chains.
793 (plugin_file_info): Add conflicts symtab.
794 (parse_table_entry): Initialize aux->next_conflict.
795 (process_symtab): Increment found.
797 (finish_conflict_resolution): Add.
799 (write_resolution): Remove symbols loop and move into
800 dump_symtab. Call dump_symtab for main symbol and conflicts table.
801 Call free_symtab to free conflicts table.
805 (symbol_strength): Add.
806 (resolve_conflicts): Add.
807 (claim_file_handler): Add n variable. Check return value of
808 process_symtab. Call resolve_conflicts.
810 2010-07-27 Andi Kleen <ak@linux.intel.com>
812 * lto-plugin.c (translate): Remove debug fprintf.
814 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
817 * lto-plugin.c (translate): Cast to unsigned long.
819 2010-07-23 Andi Kleen <ak@linux.intel.com>
822 * lto-plugin.c (sym_aux): Add.
823 (plugin_symtab): Remove slots. Add aux and id.
824 (parse_table_entry): Change to use aux instead of slots.
825 (LTO_SECTION_PREFIX): Add.
826 (translate): Improve buffer allocation. Change to append
827 symbols to existing out buffer.
828 (get_section): Remove.
829 (process_symtab): Add.
830 (free_2): Free symtab->aux.
831 (write_resolution): Handle aux instead of slots.
832 Print sub id to resolution file.
833 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
834 calls with call to process_symtab.
836 2010-07-22 Richard Guenther <rguenther@suse.de>
838 * Makefile.am: New copy_lto_plugin rule to install the plugin
840 * Makefile.in: Regenerated.
842 2010-05-21 Richard Guenther <rguenther@suse.de>
844 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
846 2010-05-07 Richard Guenther <rguenther@suse.de>
848 * lto-plugin.c (free_2): Do not free resolution_file.
849 (write_resolution): Check that we were passed a resolution file.
850 (all_symbols_read_handler): Adjust.
851 (cleanup_handler): Do not remove the resolution file.
852 (process_option): Handle -fresolution=.
854 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
857 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
858 * Makefile.in: Regenerate.
860 2010-04-23 Richard Guenther <rguenther@suse.de>
863 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
864 (translate): Likewise.
865 (all_symbols_read_handler): Likewise.
866 (claim_file_handler): Likewise.
867 (process_option): Likewise.
868 (add_output_files): Likewise. Remove filename length limit.
870 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
872 * Makefile.in: Regenerate.
873 * aclocal.m4: Regenerate.
875 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
878 * lto-plugin.c (cleanup_handler): Delete temporary output files.
880 2010-01-11 Richard Guenther <rguenther@suse.de>
883 * Makefile.am: Disable dependencies.
884 * Makefile.in: Regenerated.
886 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
889 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
892 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
895 * configure: Regenerated.
896 * Makefile.in: Likewise.
898 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
901 * lto-plugin.c (claim_file_handler): Print offsets in hex.
903 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
905 * lto-plugin.c (write_resolution): Assume resolution_file is set.
906 Print the symbol name.
907 (all_symbols_read_handler): Create a resolution file.
909 (cleanup_handler): Remove the resolution file.
910 (process_option): Drop the -resolution option.
912 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
914 * lto-plugin.c (temp_obj_dir_name): Remove.
915 (arguments_file_name): New.
916 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
917 (exec_lto_wrapper): Create arguments file with make_temp_file.
918 (cleanup_handler): Don't remove the temporary directory. Remove the
920 (onload): Don't create the temporary directory.
922 2009-11-04 Richard Guenther <rguenther@suse.de>
923 Rafael Avila de Espindola <espindola@google.com>
925 * lto-plugin.c (plugin_file_info): Remove temp field.
926 (cleanup_handler): Don't delete temporary objects.
927 (claim_file_handler): Don't create temporary objects.
929 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
931 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
933 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
936 * lto-plugin.c (claim_file_handler): Close files that we created.
938 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
940 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
943 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
946 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
947 * configure: Regenerate.
949 2009-10-26 Richard Guenther <rguenther@suse.de>
951 * configure.ac: Use AM_MAINTAINER_MODE.
952 * acinclude.m4: Remove.
953 * configure: Re-generate.
954 * Makefile.in: Likewise.
955 * aclocal.m4: Likewise.
957 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
960 * configure: Regenerate.
961 * configure.ac: Add AC_TYPE_UINT64_T.
963 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
965 * lto-plugin.c (message): New variable.
966 (check): New function.
967 (parse_table_entry, translate, write_resolution,add_output_files,
968 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
970 (cleanup_handler): Use check instead of assert. Remove the arguments
973 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
975 * lto-plugin.c (resolution_file): New.
976 (free_1): Update comment.
977 (free_2): Free resolution_file.
978 (write_resolution): Write resolution to specified file. Use the
979 syms array from the symbol table.
980 (all_symbols_read_handler): Delay call to free_1 past call to
982 (process_option): Add a -resolution option.
984 2009-10-13 Richard Guenther <rguenther@suse.de>
986 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
988 * Makefile.in: Regenerated.
990 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
992 * lto-plugin.c (add_input_library): New.
993 (all_symbols_read_handler): Use add_input_library for items that
995 (process_option): Fit in 80 columns.
996 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
998 2009-10-02 Diego Novillo <dnovillo@google.com>
1000 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1001 and -D_FILE_OFFSET_BITS=64.
1002 * configure.ac: Add AC_SYS_LARGEFILE.
1003 * configure: Regenerate.
1004 * Makefile.in: Regenerate.
1005 * lto-plugin.c: Fix copyright boilerplate.
1007 2009-10-02 Diego Novillo <dnovillo@google.com>
1009 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1010 * aclocal.m4: Regenerate with aclocal-2.64
1011 * acinclude.m4: Remove.
1012 * Makefile.in: Regenerate with automake-1.11
1013 * configure.ac (AC_PREREQ): Update to 2.64.
1014 * configure: Regenerate.
1016 2009-10-02 Diego Novillo <dnovillo@google.com>
1018 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1019 and -D_FILE_OFFSET_BITS=64.
1020 * configure.ac: Add AC_SYS_LARGEFILE.
1021 * configure: Regenerate.
1022 * Makefile.in: Regenerate.
1023 * lto-plugin.c: Fix copyright boilerplate.
1025 2009-10-02 Diego Novillo <dnovillo@google.com>
1027 * Makefile.am (ACLOCAL_AMFLAGS): Define.
1028 * aclocal.m4: Regenerate with aclocal-2.64
1029 * acinclude.m4: Remove.
1030 * Makefile.in: Regenerate with automake-1.11
1031 * configure.ac (AC_PREREQ): Update to 2.64.
1032 * configure: Regenerate.
1034 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
1036 * Makefile.am (liblto_plugin_la_SOURCES): Remove
1037 $(top_srcdir)/../gcc/lto/common.c
1038 * Makefile.in: Regenerate.
1040 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
1042 * lto-plugin.c (pass_through_items): New.
1043 (num_pass_through_items): New.
1044 (all_symbols_read_handler): Update to use the -pass-through option.
1045 (process_option): Replace -libgcc with -pass-through.
1047 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
1049 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
1050 register_cleanup to be set.
1052 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
1054 * Makefile.am: Remove all reference to ltosymtab.
1055 * Makefile.in: Regenerate.
1056 * lto-symtab.c: Remove.
1058 2009-05-21 Diego Novillo <dnovillo@google.com>
1060 * configure.ac: Remove call to AC_CHECK_GELF.
1061 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
1062 * acinclude.m4: Do not include ../config/libelf.m4
1063 * Makefile.am (LIBELFLIBS): Define.
1064 (LIBELFINC): Define.
1065 (AM_CPPFLAGS): Add $(LIBELFINC).
1066 (ltosymtab_LDADD): Add $(LIBELFLIBS).
1067 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
1068 * lto-plugin.c: Always include <gelf.h>
1069 * lto-symtab.c: Likewise.
1070 * configure: Regenerate.
1071 * Makefile.in: Regenerate.
1073 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
1075 * lto-plugin.c (libgcc_filename): New.
1076 (all_symbols_read_handler): Pass libgcc to the linker.
1077 (all_symbols_read_handler): Parse -libgcc
1079 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
1081 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
1082 * Makefile.in: Regenerate.
1083 * lto-plugin.c (add_output_files): Argument is now a FILE.
1084 (exec_lto_wrapper): Use writeargv and pex.
1086 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1089 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1090 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1093 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
1095 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1097 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
1099 * lto-plugin.c: Include libiberty.h.
1100 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1103 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
1105 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1106 file to lto-wrapper.
1108 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
1110 * lto-plugin.c (plugin_file_info): Remove fd and elf.
1111 (parse_table_entry): strdup entry->name and entry->comdat_key.
1112 (free_1): Free name and comdat_key. Don't close the file. Don't call
1114 (claim_file_handler): Always call elf_end.
1116 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
1118 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1119 -D_FILE_OFFSET_BITS=64
1120 * Makefile.in: Regenerate
1122 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
1124 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1125 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1126 * Makefile.in: Regenerate.
1127 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1128 * configure: Regenerate.
1129 * configure.ac: Add AC_SUBST(target_noncanonical).
1131 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1133 * lto-plugin.c: Include stdbool.h.
1134 (debug, nop): Declare as bool.
1136 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1138 * lto-plugin.c (nop): New.
1139 (use_original_files): New.
1140 (all_symbols_read_handler): Call use_original_files if nop is true.
1141 (process_option): Parse the -nop option.
1143 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
1145 * lto-plugin.c (debug): New.
1146 (exec_lto_wrapper): Print argv if debug is true.
1147 (process_option): Process the -debug command line option.
1149 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
1151 * lto-plugin.c (process_option): The argument is now a single option,
1152 not a space separated list.
1154 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
1156 * lto-plugin.c: Include sys/types.h and sys/wait.h
1157 (output_files, num_output_files, lto_wrapper_argv,
1158 lto_wrapper_num_args): New.
1159 (free_2): Free output_files.
1160 (write_resolution): Disable.
1161 (add_output_files): New.
1162 (exec_lto_wrapper): New.
1163 (all_symbols_read_handler): Run lto-wrapper.
1164 (claim_file_handler): Free lto_file.name and call elf_end.
1165 (process_option): New.
1167 2008-11-26 Rafael Espindola <espindola@google.com>
1169 * lto-plugin.c (add_input_file): New.
1170 (get_section): Return NULL if get_section fails.
1171 (write_resolution): New.
1172 (all_symbols_read_handler): Call add_input_file.
1173 (claim_file_handler): Unlink the correct file.
1174 (onload): Record add_input_file.
1176 2008-09-23 Rafael Espindola <espindola@google.com>
1178 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1179 Update the location of common.c.
1180 * Makefile.in: Regenerate.
1181 * common.c: Moved to gcc/lto.
1182 * common.h: Moved to gcc/lto.
1183 * lto-plugin.c: Update the location of common.h.
1184 * lto-symtab.c: Update the location of common.h.
1186 2008-09-23 Rafael Espindola <espindola@google.com>
1188 * common.c: Include common.h.
1189 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1191 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1194 2008-09-23 Rafael Espindola <espindola@google.com>
1196 * lto-plugin.c (plugin_file_info): Add temp.
1197 (cleanup_handler): Only delete temporary files.
1198 (claim_file_handler): Initialize lto_file.temp.
1200 2008-09-23 Rafael Espindola <espindola@google.com>
1202 * plugin-api.h: Moved to include.
1204 2008-09-23 Rafael Espindola <espindola@google.com>
1206 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1209 2008-09-22 Rafael Espindola <espindola@google.com>
1211 * plugin-api.h: Copy from binutils' cvs.
1213 2008-09-22 Rafael Espindola <espindola@google.com>
1215 * lto-symtab.c (get_symbols, add_symbols): Update signature.
1216 * plugin-api.h: Copy from binutils' cvs.
1218 2008-09-22 Rafael Espindola <espindola@google.com>
1220 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1223 2008-09-10 Rafael Espindola <espindola@google.com>
1225 * lto-plugin.c (onload): add missing break statements and asserts.
1226 * lto-symtab.c (claim_file_handler): Make it static.
1227 (all_symbols_read_handler): Make it static.
1228 (all_file_handles): Make it static.
1229 (num_file_handles): Make it static.
1230 (register_claim_file): Make it static.
1231 (register_object): Indent properly.
1233 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1235 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1236 * Makefiel.in: Regenerate.
1237 * lto-plugin.c: Include ar.h.
1238 (claim_file_handler): Handle file->offset != 0.
1239 * lto-symtab.c: Include gelf.h.
1240 (all_file_handles): Change type.
1241 (register_object): New.
1242 (register_file): Add support for archives.
1243 (resolve): Update to new type of all_file_handles.
1244 (print): Update to new type of all_file_handles.
1245 (free_all): Update to new type of all_file_handles.
1246 (main): Update to new type of all_file_handles.
1248 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
1250 * lto-plugin.c (get_string_table): Remove.
1251 (get_section): Use elf_strptr instead of get_string_table.
1253 2008-09-08 Doug Kwan <dougkwan@google.com>
1255 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1256 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1258 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
1260 * Makefile.am (ltosymtab_SOURCES): add common.c.
1261 (ltosymtab_CFLAGS): New.
1262 (liblto_plugin_la_SOURCES): Add common.c.
1263 * Makefile.in: Regenerate.
1266 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1267 (plugin_symtab): New.
1268 (plugin_file_info): New.
1269 (register_all_symbols_read): New.
1271 (claimed_files): New.
1272 (num_claimed_files): New.
1273 (translate): Don't drop the slot number.
1276 (all_symbols_read_handler): New.
1277 (claim_file_handler): Record every claimed file.
1278 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1280 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1281 (current_file_handle): Remove.
1282 (ld_plugin_all_symbols_read_handler): New.
1283 (plugin_handle): New.
1285 (all_file_handles): New.
1286 (num_file_handles): New.
1288 (register_all_symbols_read): New.
1289 (add_symbols): Don't print the symbols, just record them.
1290 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1292 (load_plugin): Use plugin_handle.
1293 (register_file): Add the file handle to all_file_handles.
1296 (unload_plugin): New.
1298 (main): Call all_symbols_read_handler and free resources.
1300 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1302 * Makefile.am (AM_CFLAGS): New.
1303 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1304 (lib_LTLIBRARIES): New.
1305 (liblto_plugin_la_SOURCES): New.
1306 (liblto_plugin_la_LIBADD): New.
1307 * Makefile.in: Regenerate.
1308 * acinclude.m4: Don't include ../config/acx.m4 and
1309 ../config/no-executables.m4.
1310 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1312 * aclocal.m4: Regenerate.
1313 * configure: Regenerate.
1314 * configure.ac: Use AM_PROG_LIBTOOL.
1315 * lto-plugin.c: New.
1316 * lto-symtab.c: Rewrite to use the plugin.
1317 * plugin-api.h: New.
1319 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1321 * configure: Regenerate.
1322 * configure.ac: Use AC_CHECK_GELF.
1323 * lto-symtab.c: Include gelf.h.
1324 (get_string_table): Use size independent API.
1325 (printTable): Use lld to print 64 bit integers.
1327 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1329 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1330 entry->visibility are valid.
1332 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1333 * lto-symtab.c (table_entry): Add comdat.
1334 (parse_table_entry): Read comdat.
1336 2008-08-21 Rafael Espindola <espindola@google.com>
1340 * acinclude.m4: New.
1343 * configure.ac: New.
1344 * lto-symtab.c: New.