1 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
4 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
5 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
6 * Makefile.in: Regenerate.
8 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
12 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
13 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
14 * configure: Regenerate.
15 * config.h.in: Likewise.
17 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
21 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
22 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
23 override -bindir setting.
24 * aclocal.m4: Regenerate.
25 * configure: Regenerate.
26 * Makefile.in: Regenerate.
28 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
30 * config.h.in: Regenerated.
31 * configure: Regenerated.
32 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
33 * lto-plugin.c (WIFEXITED): Define default.
34 (WEXITSTATUS): Likeiwse.
36 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
38 * config.h.in: Regenerated.
39 * configure: Regenerated.
40 * Makefile.in: Regenerated.
41 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
42 * lto-plugin.c: Include sys/wait.h conditionally.
43 * aclocal.m4: Regenerated.
45 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
47 * lto-plugin.c (add_output_files): Fix memory leak.
49 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
53 * configure.ac: Add AC_TYPE_INT64_T test.
54 * config.h.in: Regenerate.
55 * configure: Likewise.
56 * lto-plugin.c (debug): Use char not bool.
58 (check_1): Rename from check, and use int not bool for gate argument.
59 (check): Macro wrapper for the above to coerce gate argument into
60 boolean-valued integer in case it has pointer type.
61 (parse_table_entry): Use 0 not false.
62 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
63 into two 32-bit parts and printing as hex ints.
65 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
68 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
70 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
73 * lto-plugin.h: Delete.
74 * lto-plugin-elf.c: Likewise.
75 * lto-plugin-coff.c: Likewise.
76 * configure.ac: Don't use libelf, don't source config.gcc.
80 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
81 (config.h): Add AC_CONFIG_HEADERS directive.
82 * Makefile.am (LIBELFLIBS): Delete.
86 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
87 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
88 any object-format-specific source file in the link.
89 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
90 * config.h.in: Generate.
91 * configure: Regenerate.
92 * Makefile.in: Likewise.
93 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
94 (LTO_SEGMENT_NAME): New definition.
95 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
96 (LTO_SECTION_PREFIX_LEN): New definition.
97 (struct sym_aux): Struct definition moved here from lto-plugin.h.
98 (struct plugin_symtab): Likewise.
99 (struct plugin_objfile): Likewise.
100 (struct plugin_objfile): New struct def.
101 (enum symbol_style): New enum type.
102 (add_symbols): Make static.
103 (claimed_files): Likewise.
104 (num_claimed_files): Likewise.
105 (sym_style): New global.
106 (check): Make static.
107 (parse_table_entry): Likewise. Respect sym_style when extracting
108 symbol from symtab entry.
109 (translate): Make static.
110 (resolve_conflicts): Likewise.
111 (process_symtab): New function, per-section callback version of
112 old object-format-specific handling from deleted lto-plugin-elf.c.
113 (claim_file_handler): Convert ELF-specific version from deleted
114 lto-plugin-elf.c to simple_object interface and move here.
115 (process_options): Allow new '-sym-style=' option.
116 (onload): Don't call deleted onload_format_checks hook.
118 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
120 * lto-plugin.c (dump_symtab): Correct printf argument type.
121 (finish_conflict_resolution): Initialize resolution.
123 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
126 * configure.ac: Add AC_CANONICAL_SYSTEM.
127 * configure: Regenerated.
129 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
131 * configure.ac: Source config.gcc to determine lto_binary_reader.
132 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
133 * Makefile.am (LTO_FORMAT): Import.
134 (liblto_plugin_la_SOURCES): Add object format dependent module
135 defined by LTO_FORMAT.
136 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
137 and work around libtool warning.
138 * configure: Regenerate.
139 * Makefile.in: Likewise.
140 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
141 (struct sym_aux): Likewise.
142 (struct plugin_symtab): Likewise.
143 (struct plugin_file_info): Likewise.
144 (LTO_SECTION_PREFIX): Likewise.
145 (add_symbols): Make non-static.
146 (claimed_files): Likewise.
147 (num_claimed_files): Likewise.
149 (parse_table_entry): Likewise.
150 (translate): Likewise.
151 (resolve_conflicts): Likewise.
152 (process_symtab): Move to new lto-plugin-elf.c object format dependent
154 (claim_file_handler): Likewise, and make non-static.
155 (onload): Call new onload_format_checks function.
156 * lto-plugin.h: New file.
157 (LTO_SECTION_PREFIX): Move here.
158 (struct sym_aux): Likewise.
159 (struct plugin_symtab): Likewise.
160 (struct plugin_file_info): Likewise.
161 (claim_file_handler): Add new function prototype.
162 (onload_format_checks): Likewise.
163 (check): Declare extern.
164 (translate): Likewise.
165 (parse_table_entry): Likewise.
166 (resolve_conflicts): Likewise.
167 (add_symbols): Likewise.
168 (claimed_files): Likewise.
169 (num_claimed_files): Likewise.
170 * lto-plugin-elf.c (process_symtab): Move here.
171 (claim_file_handler): Likewise, and make non-static.
172 (onload_format_checks): New function factored out from onload.
173 * lto-plugin-coff.c (claim_file_handler): New function stub.
174 (onload_format_checks): Likewise.
176 2010-08-05 Andi Kleen <ak@linux.intel.com>
178 * lto-plugin.c: Include <hashtab.h>
179 (sym_aux): Add next_conflict field to save conflict chains.
180 (plugin_file_info): Add conflicts symtab.
181 (parse_table_entry): Initialize aux->next_conflict.
182 (process_symtab): Increment found.
184 (finish_conflict_resolution): Add.
186 (write_resolution): Remove symbols loop and move into
187 dump_symtab. Call dump_symtab for main symbol and conflicts table.
188 Call free_symtab to free conflicts table.
192 (symbol_strength): Add.
193 (resolve_conflicts): Add.
194 (claim_file_handler): Add n variable. Check return value of
195 process_symtab. Call resolve_conflicts.
197 2010-07-27 Andi Kleen <ak@linux.intel.com>
199 * lto-plugin.c (translate): Remove debug fprintf.
201 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
204 * lto-plugin.c (translate): Cast to unsigned long.
206 2010-07-23 Andi Kleen <ak@linux.intel.com>
209 * lto-plugin.c (sym_aux): Add.
210 (plugin_symtab): Remove slots. Add aux and id.
211 (parse_table_entry): Change to use aux instead of slots.
212 (LTO_SECTION_PREFIX): Add.
213 (translate): Improve buffer allocation. Change to append
214 symbols to existing out buffer.
215 (get_section): Remove.
216 (process_symtab): Add.
217 (free_2): Free symtab->aux.
218 (write_resolution): Handle aux instead of slots.
219 Print sub id to resolution file.
220 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
221 calls with call to process_symtab.
223 2010-07-22 Richard Guenther <rguenther@suse.de>
225 * Makefile.am: New copy_lto_plugin rule to install the plugin
227 * Makefile.in: Regenerated.
229 2010-05-21 Richard Guenther <rguenther@suse.de>
231 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
233 2010-05-07 Richard Guenther <rguenther@suse.de>
235 * lto-plugin.c (free_2): Do not free resolution_file.
236 (write_resolution): Check that we were passed a resolution file.
237 (all_symbols_read_handler): Adjust.
238 (cleanup_handler): Do not remove the resolution file.
239 (process_option): Handle -fresolution=.
241 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
244 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
245 * Makefile.in: Regenerate.
247 2010-04-23 Richard Guenther <rguenther@suse.de>
250 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
251 (translate): Likewise.
252 (all_symbols_read_handler): Likewise.
253 (claim_file_handler): Likewise.
254 (process_option): Likewise.
255 (add_output_files): Likewise. Remove filename length limit.
257 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
259 * Makefile.in: Regenerate.
260 * aclocal.m4: Regenerate.
262 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
265 * lto-plugin.c (cleanup_handler): Delete temporary output files.
267 2010-01-11 Richard Guenther <rguenther@suse.de>
270 * Makefile.am: Disable dependencies.
271 * Makefile.in: Regenerated.
273 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
276 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
279 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
282 * configure: Regenerated.
283 * Makefile.in: Likewise.
285 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
288 * lto-plugin.c (claim_file_handler): Print offsets in hex.
290 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
292 * lto-plugin.c (write_resolution): Assume resolution_file is set.
293 Print the symbol name.
294 (all_symbols_read_handler): Create a resolution file.
296 (cleanup_handler): Remove the resolution file.
297 (process_option): Drop the -resolution option.
299 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
301 * lto-plugin.c (temp_obj_dir_name): Remove.
302 (arguments_file_name): New.
303 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
304 (exec_lto_wrapper): Create arguments file with make_temp_file.
305 (cleanup_handler): Don't remove the temporary directory. Remove the
307 (onload): Don't create the temporary directory.
309 2009-11-04 Richard Guenther <rguenther@suse.de>
310 Rafael Avila de Espindola <espindola@google.com>
312 * lto-plugin.c (plugin_file_info): Remove temp field.
313 (cleanup_handler): Don't delete temporary objects.
314 (claim_file_handler): Don't create temporary objects.
316 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
318 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
320 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
323 * lto-plugin.c (claim_file_handler): Close files that we created.
325 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
327 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
330 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
333 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
334 * configure: Regenerate.
336 2009-10-26 Richard Guenther <rguenther@suse.de>
338 * configure.ac: Use AM_MAINTAINER_MODE.
339 * acinclude.m4: Remove.
340 * configure: Re-generate.
341 * Makefile.in: Likewise.
342 * aclocal.m4: Likewise.
344 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
347 * configure: Regenerate.
348 * configure.ac: Add AC_TYPE_UINT64_T.
350 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
352 * lto-plugin.c (message): New variable.
353 (check): New function.
354 (parse_table_entry, translate, write_resolution,add_output_files,
355 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
357 (cleanup_handler): Use check instead of assert. Remove the arguments
360 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
362 * lto-plugin.c (resolution_file): New.
363 (free_1): Update comment.
364 (free_2): Free resolution_file.
365 (write_resolution): Write resolution to specified file. Use the
366 syms array from the symbol table.
367 (all_symbols_read_handler): Delay call to free_1 past call to
369 (process_option): Add a -resolution option.
371 2009-10-13 Richard Guenther <rguenther@suse.de>
373 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
375 * Makefile.in: Regenerated.
377 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
379 * lto-plugin.c (add_input_library): New.
380 (all_symbols_read_handler): Use add_input_library for items that
382 (process_option): Fit in 80 columns.
383 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
385 2009-10-02 Diego Novillo <dnovillo@google.com>
387 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
388 and -D_FILE_OFFSET_BITS=64.
389 * configure.ac: Add AC_SYS_LARGEFILE.
390 * configure: Regenerate.
391 * Makefile.in: Regenerate.
392 * lto-plugin.c: Fix copyright boilerplate.
394 2009-10-02 Diego Novillo <dnovillo@google.com>
396 * Makefile.am (ACLOCAL_AMFLAGS): Define.
397 * aclocal.m4: Regenerate with aclocal-2.64
398 * acinclude.m4: Remove.
399 * Makefile.in: Regenerate with automake-1.11
400 * configure.ac (AC_PREREQ): Update to 2.64.
401 * configure: Regenerate.
403 2009-10-02 Diego Novillo <dnovillo@google.com>
405 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
406 and -D_FILE_OFFSET_BITS=64.
407 * configure.ac: Add AC_SYS_LARGEFILE.
408 * configure: Regenerate.
409 * Makefile.in: Regenerate.
410 * lto-plugin.c: Fix copyright boilerplate.
412 2009-10-02 Diego Novillo <dnovillo@google.com>
414 * Makefile.am (ACLOCAL_AMFLAGS): Define.
415 * aclocal.m4: Regenerate with aclocal-2.64
416 * acinclude.m4: Remove.
417 * Makefile.in: Regenerate with automake-1.11
418 * configure.ac (AC_PREREQ): Update to 2.64.
419 * configure: Regenerate.
421 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
423 * Makefile.am (liblto_plugin_la_SOURCES): Remove
424 $(top_srcdir)/../gcc/lto/common.c
425 * Makefile.in: Regenerate.
427 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
429 * lto-plugin.c (pass_through_items): New.
430 (num_pass_through_items): New.
431 (all_symbols_read_handler): Update to use the -pass-through option.
432 (process_option): Replace -libgcc with -pass-through.
434 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
436 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
437 register_cleanup to be set.
439 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
441 * Makefile.am: Remove all reference to ltosymtab.
442 * Makefile.in: Regenerate.
443 * lto-symtab.c: Remove.
445 2009-05-21 Diego Novillo <dnovillo@google.com>
447 * configure.ac: Remove call to AC_CHECK_GELF.
448 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
449 * acinclude.m4: Do not include ../config/libelf.m4
450 * Makefile.am (LIBELFLIBS): Define.
452 (AM_CPPFLAGS): Add $(LIBELFINC).
453 (ltosymtab_LDADD): Add $(LIBELFLIBS).
454 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
455 * lto-plugin.c: Always include <gelf.h>
456 * lto-symtab.c: Likewise.
457 * configure: Regenerate.
458 * Makefile.in: Regenerate.
460 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
462 * lto-plugin.c (libgcc_filename): New.
463 (all_symbols_read_handler): Pass libgcc to the linker.
464 (all_symbols_read_handler): Parse -libgcc
466 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
468 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
469 * Makefile.in: Regenerate.
470 * lto-plugin.c (add_output_files): Argument is now a FILE.
471 (exec_lto_wrapper): Use writeargv and pex.
473 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
476 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
477 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
480 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
482 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
484 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
486 * lto-plugin.c: Include libiberty.h.
487 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
490 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
492 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
495 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
497 * lto-plugin.c (plugin_file_info): Remove fd and elf.
498 (parse_table_entry): strdup entry->name and entry->comdat_key.
499 (free_1): Free name and comdat_key. Don't close the file. Don't call
501 (claim_file_handler): Always call elf_end.
503 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
505 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
506 -D_FILE_OFFSET_BITS=64
507 * Makefile.in: Regenerate
509 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
511 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
512 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
513 * Makefile.in: Regenerate.
514 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
515 * configure: Regenerate.
516 * configure.ac: Add AC_SUBST(target_noncanonical).
518 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
520 * lto-plugin.c: Include stdbool.h.
521 (debug, nop): Declare as bool.
523 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
525 * lto-plugin.c (nop): New.
526 (use_original_files): New.
527 (all_symbols_read_handler): Call use_original_files if nop is true.
528 (process_option): Parse the -nop option.
530 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
532 * lto-plugin.c (debug): New.
533 (exec_lto_wrapper): Print argv if debug is true.
534 (process_option): Process the -debug command line option.
536 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
538 * lto-plugin.c (process_option): The argument is now a single option,
539 not a space separated list.
541 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
543 * lto-plugin.c: Include sys/types.h and sys/wait.h
544 (output_files, num_output_files, lto_wrapper_argv,
545 lto_wrapper_num_args): New.
546 (free_2): Free output_files.
547 (write_resolution): Disable.
548 (add_output_files): New.
549 (exec_lto_wrapper): New.
550 (all_symbols_read_handler): Run lto-wrapper.
551 (claim_file_handler): Free lto_file.name and call elf_end.
552 (process_option): New.
554 2008-11-26 Rafael Espindola <espindola@google.com>
556 * lto-plugin.c (add_input_file): New.
557 (get_section): Return NULL if get_section fails.
558 (write_resolution): New.
559 (all_symbols_read_handler): Call add_input_file.
560 (claim_file_handler): Unlink the correct file.
561 (onload): Record add_input_file.
563 2008-09-23 Rafael Espindola <espindola@google.com>
565 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
566 Update the location of common.c.
567 * Makefile.in: Regenerate.
568 * common.c: Moved to gcc/lto.
569 * common.h: Moved to gcc/lto.
570 * lto-plugin.c: Update the location of common.h.
571 * lto-symtab.c: Update the location of common.h.
573 2008-09-23 Rafael Espindola <espindola@google.com>
575 * common.c: Include common.h.
576 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
578 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
581 2008-09-23 Rafael Espindola <espindola@google.com>
583 * lto-plugin.c (plugin_file_info): Add temp.
584 (cleanup_handler): Only delete temporary files.
585 (claim_file_handler): Initialize lto_file.temp.
587 2008-09-23 Rafael Espindola <espindola@google.com>
589 * plugin-api.h: Moved to include.
591 2008-09-23 Rafael Espindola <espindola@google.com>
593 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
596 2008-09-22 Rafael Espindola <espindola@google.com>
598 * plugin-api.h: Copy from binutils' cvs.
600 2008-09-22 Rafael Espindola <espindola@google.com>
602 * lto-symtab.c (get_symbols, add_symbols): Update signature.
603 * plugin-api.h: Copy from binutils' cvs.
605 2008-09-22 Rafael Espindola <espindola@google.com>
607 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
610 2008-09-10 Rafael Espindola <espindola@google.com>
612 * lto-plugin.c (onload): add missing break statements and asserts.
613 * lto-symtab.c (claim_file_handler): Make it static.
614 (all_symbols_read_handler): Make it static.
615 (all_file_handles): Make it static.
616 (num_file_handles): Make it static.
617 (register_claim_file): Make it static.
618 (register_object): Indent properly.
620 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
622 * Makefile.am (ltosymtab_LDADD): Add -lelf.
623 * Makefiel.in: Regenerate.
624 * lto-plugin.c: Include ar.h.
625 (claim_file_handler): Handle file->offset != 0.
626 * lto-symtab.c: Include gelf.h.
627 (all_file_handles): Change type.
628 (register_object): New.
629 (register_file): Add support for archives.
630 (resolve): Update to new type of all_file_handles.
631 (print): Update to new type of all_file_handles.
632 (free_all): Update to new type of all_file_handles.
633 (main): Update to new type of all_file_handles.
635 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
637 * lto-plugin.c (get_string_table): Remove.
638 (get_section): Use elf_strptr instead of get_string_table.
640 2008-09-08 Doug Kwan <dougkwan@google.com>
642 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
643 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
645 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
647 * Makefile.am (ltosymtab_SOURCES): add common.c.
648 (ltosymtab_CFLAGS): New.
649 (liblto_plugin_la_SOURCES): Add common.c.
650 * Makefile.in: Regenerate.
653 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
654 (plugin_symtab): New.
655 (plugin_file_info): New.
656 (register_all_symbols_read): New.
658 (claimed_files): New.
659 (num_claimed_files): New.
660 (translate): Don't drop the slot number.
663 (all_symbols_read_handler): New.
664 (claim_file_handler): Record every claimed file.
665 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
667 * lto-symtab.c: Include stdlib.h, string.h and common.h.
668 (current_file_handle): Remove.
669 (ld_plugin_all_symbols_read_handler): New.
670 (plugin_handle): New.
672 (all_file_handles): New.
673 (num_file_handles): New.
675 (register_all_symbols_read): New.
676 (add_symbols): Don't print the symbols, just record them.
677 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
679 (load_plugin): Use plugin_handle.
680 (register_file): Add the file handle to all_file_handles.
683 (unload_plugin): New.
685 (main): Call all_symbols_read_handler and free resources.
687 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
689 * Makefile.am (AM_CFLAGS): New.
690 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
691 (lib_LTLIBRARIES): New.
692 (liblto_plugin_la_SOURCES): New.
693 (liblto_plugin_la_LIBADD): New.
694 * Makefile.in: Regenerate.
695 * acinclude.m4: Don't include ../config/acx.m4 and
696 ../config/no-executables.m4.
697 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
699 * aclocal.m4: Regenerate.
700 * configure: Regenerate.
701 * configure.ac: Use AM_PROG_LIBTOOL.
703 * lto-symtab.c: Rewrite to use the plugin.
706 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
708 * configure: Regenerate.
709 * configure.ac: Use AC_CHECK_GELF.
710 * lto-symtab.c: Include gelf.h.
711 (get_string_table): Use size independent API.
712 (printTable): Use lld to print 64 bit integers.
714 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
716 * lto-symtab.c (parse_table_entry): Assert entry->kind and
717 entry->visibility are valid.
719 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
720 * lto-symtab.c (table_entry): Add comdat.
721 (parse_table_entry): Read comdat.
723 2008-08-21 Rafael Espindola <espindola@google.com>