OSDN Git Service

config/ChangeLog:
[pf3gnuchains/gcc-fork.git] / lto-plugin / ChangeLog
1 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
2
3         PR target/40125
4         PR lto/46695
5         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
6         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
7         override -bindir setting.
8         * aclocal.m4: Regenerate.
9         * configure: Regenerate.
10         * Makefile.in: Regenerate.
11
12 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
13
14         * config.h.in: Regenerated.
15         * configure: Regenerated.
16         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
17         * lto-plugin.c (WIFEXITED): Define default.
18         (WEXITSTATUS): Likeiwse.
19
20 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
21
22         * config.h.in: Regenerated.
23         * configure: Regenerated.
24         * Makefile.in: Regenerated.
25         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
26         * lto-plugin.c:  Include sys/wait.h conditionally.
27         * aclocal.m4: Regenerated.
28
29 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
30
31         * lto-plugin.c (add_output_files): Fix memory leak.
32
33 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
34
35         PR bootstrap/46397
36         PR bootstrap/46362
37         * configure.ac: Add AC_TYPE_INT64_T test.
38         * config.h.in: Regenerate.
39         * configure: Likewise.
40         * lto-plugin.c (debug): Use char not bool.
41         (nop): Likewise.
42         (check_1): Rename from check, and use int not bool for gate argument.
43         (check): Macro wrapper for the above to coerce gate argument into
44         boolean-valued integer in case it has pointer type.
45         (parse_table_entry): Use 0 not false.
46         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
47         into two 32-bit parts and printing as hex ints.
48
49 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
50
51         PR lto/46291
52         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
53
54 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
55
56         PR lto/46273
57         * lto-plugin.h: Delete.
58         * lto-plugin-elf.c: Likewise.
59         * lto-plugin-coff.c: Likewise.
60         * configure.ac: Don't use libelf, don't source config.gcc.
61         (LIBELFLIBS): Delete.
62         (LIBELFINC): Delete.
63         (LTO_FORMAT): Delete.
64         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
65         (config.h): Add AC_CONFIG_HEADERS directive.
66         * Makefile.am (LIBELFLIBS): Delete.
67         (LIBELFINC): Delete.
68         (LTO_FORMAT): Delete.
69         (DEFS): Import.
70         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
71         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
72         any object-format-specific source file in the link.
73         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
74         * config.h.in: Generate.
75         * configure: Regenerate.
76         * Makefile.in: Likewise.
77         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
78         (LTO_SEGMENT_NAME): New definition.
79         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
80         (LTO_SECTION_PREFIX_LEN): New definition.
81         (struct sym_aux): Struct definition moved here from lto-plugin.h.
82         (struct plugin_symtab): Likewise.
83         (struct plugin_objfile): Likewise.
84         (struct plugin_objfile): New struct def.
85         (enum symbol_style): New enum type.
86         (add_symbols): Make static.
87         (claimed_files): Likewise.
88         (num_claimed_files): Likewise.
89         (sym_style): New global.
90         (check): Make static.
91         (parse_table_entry): Likewise.  Respect sym_style when extracting
92         symbol from symtab entry.
93         (translate): Make static.
94         (resolve_conflicts): Likewise.
95         (process_symtab): New function, per-section callback version of
96         old object-format-specific handling from deleted lto-plugin-elf.c.
97         (claim_file_handler): Convert ELF-specific version from deleted
98         lto-plugin-elf.c to simple_object interface and move here.
99         (process_options): Allow new '-sym-style=' option.
100         (onload): Don't call deleted onload_format_checks hook.
101
102 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
103
104         * lto-plugin.c (dump_symtab): Correct printf argument type.
105         (finish_conflict_resolution): Initialize resolution.
106
107 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
108
109         PR bootstrap/45951
110         * configure.ac: Add AC_CANONICAL_SYSTEM.
111         * configure: Regenerated.
112
113 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
114
115         * configure.ac: Source config.gcc to determine lto_binary_reader.
116         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
117         * Makefile.am (LTO_FORMAT): Import.
118         (liblto_plugin_la_SOURCES): Add object format dependent module
119         defined by LTO_FORMAT.
120         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
121         and work around libtool warning.
122         * configure: Regenerate.
123         * Makefile.in: Likewise.
124         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
125         (struct sym_aux): Likewise.
126         (struct plugin_symtab): Likewise.
127         (struct plugin_file_info): Likewise.
128         (LTO_SECTION_PREFIX): Likewise.
129         (add_symbols):  Make non-static.
130         (claimed_files): Likewise.
131         (num_claimed_files): Likewise.
132         (check): Likewise.
133         (parse_table_entry): Likewise.
134         (translate): Likewise.
135         (resolve_conflicts): Likewise.
136         (process_symtab): Move to new lto-plugin-elf.c object format dependent
137         source file.
138         (claim_file_handler): Likewise, and make non-static.
139         (onload): Call new onload_format_checks function.
140         * lto-plugin.h: New file.
141         (LTO_SECTION_PREFIX): Move here.
142         (struct sym_aux): Likewise.
143         (struct plugin_symtab): Likewise.
144         (struct plugin_file_info): Likewise.
145         (claim_file_handler): Add new function prototype.
146         (onload_format_checks): Likewise.
147         (check): Declare extern.
148         (translate): Likewise.
149         (parse_table_entry): Likewise.
150         (resolve_conflicts): Likewise.
151         (add_symbols):  Likewise.
152         (claimed_files): Likewise.
153         (num_claimed_files): Likewise.
154         * lto-plugin-elf.c (process_symtab): Move here.
155         (claim_file_handler): Likewise, and make non-static.
156         (onload_format_checks): New function factored out from onload.
157         * lto-plugin-coff.c (claim_file_handler): New function stub.
158         (onload_format_checks): Likewise.
159
160 2010-08-05  Andi Kleen  <ak@linux.intel.com>
161
162         * lto-plugin.c: Include <hashtab.h>
163         (sym_aux): Add next_conflict field to save conflict chains.
164         (plugin_file_info): Add conflicts symtab.
165         (parse_table_entry): Initialize aux->next_conflict.
166         (process_symtab): Increment found.
167         (dump_symtab): Add.
168         (finish_conflict_resolution): Add.
169         (free_symtab): Add.
170         (write_resolution): Remove symbols loop and move into
171         dump_symtab. Call dump_symtab for main symbol and conflicts table.
172         Call free_symtab to free conflicts table.
173         (SWAP): Add.
174         (eq_sym): Add.
175         (hash_sym): Add.
176         (symbol_strength): Add.
177         (resolve_conflicts): Add.
178         (claim_file_handler): Add n variable. Check return value of
179         process_symtab. Call resolve_conflicts.
180
181 2010-07-27  Andi Kleen <ak@linux.intel.com>
182
183         * lto-plugin.c (translate): Remove debug fprintf.
184
185 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
186
187         PR bootstrap/45042
188         * lto-plugin.c (translate): Cast to unsigned long.
189
190 2010-07-23   Andi Kleen <ak@linux.intel.com>
191
192         PR lto/44992
193         * lto-plugin.c (sym_aux): Add.
194         (plugin_symtab): Remove slots. Add aux and id.
195         (parse_table_entry): Change to use aux instead of slots.
196         (LTO_SECTION_PREFIX): Add.
197         (translate): Improve buffer allocation. Change to append
198         symbols to existing out buffer.
199         (get_section): Remove.
200         (process_symtab): Add.
201         (free_2): Free symtab->aux.
202         (write_resolution): Handle aux instead of slots.
203         Print sub id to resolution file.
204         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
205         calls with call to process_symtab.
206
207 2010-07-22  Richard Guenther  <rguenther@suse.de>
208
209         * Makefile.am: New copy_lto_plugin rule to install the plugin
210         into ../gcc.
211         * Makefile.in: Regenerated.
212
213 2010-05-21  Richard Guenther  <rguenther@suse.de>
214
215         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
216
217 2010-05-07  Richard Guenther <rguenther@suse.de>
218
219         * lto-plugin.c (free_2): Do not free resolution_file.
220         (write_resolution): Check that we were passed a resolution file.
221         (all_symbols_read_handler): Adjust.
222         (cleanup_handler): Do not remove the resolution file.
223         (process_option): Handle -fresolution=.
224
225 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
226
227         PR other/43620
228         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
229         * Makefile.in: Regenerate.
230
231 2010-04-23  Richard Guenther  <rguenther@suse.de>
232
233         PR lto/41550
234         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
235         (translate): Likewise.
236         (all_symbols_read_handler): Likewise.
237         (claim_file_handler): Likewise.
238         (process_option): Likewise.
239         (add_output_files): Likewise.  Remove filename length limit.
240
241 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
242
243         * Makefile.in: Regenerate.
244         * aclocal.m4: Regenerate.
245
246 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
247
248         PR lto/43336
249         * lto-plugin.c (cleanup_handler): Delete temporary output files.
250
251 2010-01-11  Richard Guenther  <rguenther@suse.de>
252
253         PR lto/41569
254         * Makefile.am: Disable dependencies.
255         * Makefile.in: Regenerated.
256
257 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
258
259         PR lto/42520
260         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
261         if -v is passed.
262
263 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
264
265         PR bootstrap/42306
266         * configure: Regenerated.
267         * Makefile.in: Likewise.
268
269 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
270
271         PR bootstrap/42096
272         * lto-plugin.c (claim_file_handler): Print offsets in hex.
273
274 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
275
276         * lto-plugin.c (write_resolution): Assume resolution_file is set.
277         Print the symbol name.
278         (all_symbols_read_handler): Create a resolution file.
279         Pass it to gcc.
280         (cleanup_handler): Remove the resolution file.
281         (process_option): Drop the -resolution option.
282
283 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
284
285         * lto-plugin.c (temp_obj_dir_name): Remove.
286         (arguments_file_name): New.
287         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
288         (exec_lto_wrapper):  Create arguments file with make_temp_file.
289         (cleanup_handler): Don't remove the temporary directory. Remove the
290         arguments file.
291         (onload): Don't create the temporary directory.
292
293 2009-11-04  Richard Guenther  <rguenther@suse.de>
294             Rafael Avila de Espindola  <espindola@google.com>
295
296         * lto-plugin.c (plugin_file_info): Remove temp field.
297         (cleanup_handler): Don't delete temporary objects.
298         (claim_file_handler): Don't create temporary objects.
299
300 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
301
302         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
303
304 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
305
306         PR41871
307         * lto-plugin.c (claim_file_handler): Close files that we created.
308
309 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
310
311         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
312         LDPL_ERROR
313
314 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
315
316         PR lto/41652
317         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
318         * configure: Regenerate.
319
320 2009-10-26  Richard Guenther  <rguenther@suse.de>
321
322         * configure.ac: Use AM_MAINTAINER_MODE.
323         * acinclude.m4: Remove.
324         * configure: Re-generate.
325         * Makefile.in: Likewise.
326         * aclocal.m4: Likewise.
327
328 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
329     
330         PR40790
331         * configure: Regenerate.
332         * configure.ac: Add AC_TYPE_UINT64_T.
333
334 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
335
336         * lto-plugin.c (message): New variable.
337         (check): New function.
338         (parse_table_entry, translate, write_resolution,add_output_files,
339         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
340         assert.
341         (cleanup_handler): Use check instead of assert. Remove the arguments
342         file if it exists.
343
344 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
345
346         * lto-plugin.c (resolution_file): New.
347         (free_1): Update comment.
348         (free_2): Free resolution_file.
349         (write_resolution): Write resolution to specified file. Use the
350         syms array from the symbol table.
351         (all_symbols_read_handler): Delay call to free_1 past call to
352         write_resolution.
353         (process_option): Add a -resolution option.
354
355 2009-10-13  Richard Guenther  <rguenther@suse.de>
356
357         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
358         correct libiberty.
359         * Makefile.in: Regenerated.
360
361 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
362
363         * lto-plugin.c (add_input_library): New.
364         (all_symbols_read_handler): Use add_input_library for items that
365         start with -l.
366         (process_option): Fit in 80 columns.
367         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
368
369 2009-10-02  Diego Novillo  <dnovillo@google.com>
370
371         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
372         and -D_FILE_OFFSET_BITS=64.
373         * configure.ac: Add AC_SYS_LARGEFILE.
374         * configure: Regenerate.
375         * Makefile.in: Regenerate.
376         * lto-plugin.c: Fix copyright boilerplate.
377
378 2009-10-02  Diego Novillo  <dnovillo@google.com>
379
380         * Makefile.am (ACLOCAL_AMFLAGS): Define.
381         * aclocal.m4: Regenerate with aclocal-2.64
382         * acinclude.m4: Remove.
383         * Makefile.in: Regenerate with automake-1.11
384         * configure.ac (AC_PREREQ): Update to 2.64.
385         * configure: Regenerate.
386
387 2009-10-02  Diego Novillo  <dnovillo@google.com>
388
389         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
390         and -D_FILE_OFFSET_BITS=64.
391         * configure.ac: Add AC_SYS_LARGEFILE.
392         * configure: Regenerate.
393         * Makefile.in: Regenerate.
394         * lto-plugin.c: Fix copyright boilerplate.
395
396 2009-10-02  Diego Novillo  <dnovillo@google.com>
397
398         * Makefile.am (ACLOCAL_AMFLAGS): Define.
399         * aclocal.m4: Regenerate with aclocal-2.64
400         * acinclude.m4: Remove.
401         * Makefile.in: Regenerate with automake-1.11
402         * configure.ac (AC_PREREQ): Update to 2.64.
403         * configure: Regenerate.
404
405 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
406
407         * Makefile.am (liblto_plugin_la_SOURCES): Remove
408         $(top_srcdir)/../gcc/lto/common.c
409         * Makefile.in: Regenerate.
410
411 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
412
413         * lto-plugin.c (pass_through_items): New.
414         (num_pass_through_items): New.
415         (all_symbols_read_handler): Update to use the -pass-through option.
416         (process_option): Replace -libgcc with -pass-through.
417         
418 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
419
420         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
421         register_cleanup to be set.
422
423 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
424
425         * Makefile.am: Remove all reference to ltosymtab.
426         * Makefile.in: Regenerate.
427         * lto-symtab.c: Remove.
428
429 2009-05-21  Diego Novillo  <dnovillo@google.com>
430
431         * configure.ac: Remove call to AC_CHECK_GELF.
432         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
433         * acinclude.m4: Do not include ../config/libelf.m4
434         * Makefile.am (LIBELFLIBS): Define.
435         (LIBELFINC): Define.
436         (AM_CPPFLAGS): Add $(LIBELFINC).
437         (ltosymtab_LDADD): Add $(LIBELFLIBS).
438         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
439         * lto-plugin.c: Always include <gelf.h>
440         * lto-symtab.c: Likewise.
441         * configure: Regenerate.
442         * Makefile.in: Regenerate.
443
444 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
445
446         * lto-plugin.c (libgcc_filename): New.
447         (all_symbols_read_handler): Pass libgcc to the linker.
448         (all_symbols_read_handler): Parse -libgcc
449
450 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
451
452         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
453         * Makefile.in: Regenerate.
454         * lto-plugin.c (add_output_files): Argument is now a FILE.
455         (exec_lto_wrapper): Use writeargv and pex.
456
457 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
458
459         Revert:
460         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
461         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
462
463
464 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
465
466         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
467
468 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
469
470         * lto-plugin.c: Include libiberty.h.
471         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
472         snprintf.
473
474 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
475
476         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
477         file to lto-wrapper.
478
479 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
480
481         * lto-plugin.c (plugin_file_info): Remove fd and elf.
482         (parse_table_entry): strdup entry->name and entry->comdat_key.
483         (free_1): Free name and comdat_key. Don't close the file. Don't call
484         elf_end.
485         (claim_file_handler): Always call elf_end.
486
487 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
488
489         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
490         -D_FILE_OFFSET_BITS=64
491         * Makefile.in: Regenerate
492
493 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
494
495         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
496         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
497         * Makefile.in: Regenerate.
498         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
499         * configure: Regenerate.
500         * configure.ac: Add AC_SUBST(target_noncanonical).
501
502 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
503
504         * lto-plugin.c: Include stdbool.h.
505         (debug, nop): Declare as bool.
506
507 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
508
509         * lto-plugin.c (nop): New.
510         (use_original_files): New.
511         (all_symbols_read_handler): Call use_original_files if nop is true.
512         (process_option): Parse the -nop option.
513
514 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
515
516         * lto-plugin.c (debug): New.
517         (exec_lto_wrapper): Print argv if debug is true.
518         (process_option): Process the -debug command line option.
519
520 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
521
522         * lto-plugin.c (process_option): The argument is now a single option,
523         not a space separated list.
524
525 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
526
527         * lto-plugin.c: Include sys/types.h and sys/wait.h
528         (output_files, num_output_files, lto_wrapper_argv,
529         lto_wrapper_num_args): New.
530         (free_2): Free output_files.
531         (write_resolution): Disable.
532         (add_output_files): New.
533         (exec_lto_wrapper): New.
534         (all_symbols_read_handler): Run lto-wrapper.
535         (claim_file_handler): Free lto_file.name and call elf_end.
536         (process_option): New.
537
538 2008-11-26  Rafael Espindola  <espindola@google.com>
539
540         * lto-plugin.c (add_input_file): New.
541         (get_section): Return NULL if get_section fails.
542         (write_resolution): New.
543         (all_symbols_read_handler): Call add_input_file.
544         (claim_file_handler): Unlink the correct file.
545         (onload): Record add_input_file.
546
547 2008-09-23 Rafael Espindola  <espindola@google.com>
548
549         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
550         Update the location of common.c.
551         * Makefile.in: Regenerate.
552         * common.c: Moved to gcc/lto.
553         * common.h: Moved to gcc/lto.
554         * lto-plugin.c: Update the location of common.h.
555         * lto-symtab.c: Update the location of common.h.
556
557 2008-09-23 Rafael Espindola  <espindola@google.com>
558
559         * common.c: Include common.h.
560         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
561         sizes.
562         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
563         explicit sizes.
564
565 2008-09-23 Rafael Espindola  <espindola@google.com>
566
567         * lto-plugin.c (plugin_file_info): Add temp.
568         (cleanup_handler): Only delete temporary files.
569         (claim_file_handler): Initialize lto_file.temp.
570
571 2008-09-23  Rafael Espindola  <espindola@google.com>
572
573         * plugin-api.h: Moved to include.
574
575 2008-09-23 Rafael Espindola  <espindola@google.com>
576
577         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
578         format.
579
580 2008-09-22 Rafael Espindola  <espindola@google.com>
581
582         * plugin-api.h: Copy from binutils' cvs.
583
584 2008-09-22 Rafael Espindola  <espindola@google.com>
585
586         * lto-symtab.c (get_symbols, add_symbols): Update signature.
587         * plugin-api.h: Copy from binutils' cvs.
588
589 2008-09-22 Rafael Espindola  <espindola@google.com>
590
591         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
592         Make extern
593
594 2008-09-10 Rafael Espindola  <espindola@google.com>
595
596         * lto-plugin.c (onload): add missing break statements and asserts.
597         * lto-symtab.c (claim_file_handler): Make it static.
598         (all_symbols_read_handler): Make it static.
599         (all_file_handles): Make it static.
600         (num_file_handles): Make it static.
601         (register_claim_file): Make it static.
602         (register_object): Indent properly.
603
604 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
605
606         * Makefile.am (ltosymtab_LDADD): Add -lelf.
607         * Makefiel.in: Regenerate.
608         * lto-plugin.c: Include ar.h.
609         (claim_file_handler): Handle file->offset != 0.
610         * lto-symtab.c: Include gelf.h.
611         (all_file_handles): Change type.
612         (register_object): New.
613         (register_file): Add support for archives.
614         (resolve): Update to new type of all_file_handles.
615         (print): Update to new type of all_file_handles.
616         (free_all): Update to new type of all_file_handles.
617         (main): Update to new type of all_file_handles.
618
619 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
620
621         * lto-plugin.c (get_string_table): Remove.
622         (get_section): Use elf_strptr instead of get_string_table.
623
624 2008-09-08  Doug Kwan  <dougkwan@google.com>
625
626         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
627         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
628
629 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
630
631         * Makefile.am (ltosymtab_SOURCES): add common.c.
632         (ltosymtab_CFLAGS): New.
633         (liblto_plugin_la_SOURCES): Add common.c.
634         * Makefile.in: Regenerate.
635         * common.c: New.
636         * common.h: New.
637         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
638         (plugin_symtab): New.
639         (plugin_file_info): New.
640         (register_all_symbols_read): New.
641         (get_symbols): New.
642         (claimed_files): New.
643         (num_claimed_files): New.
644         (translate): Don't drop the slot number.
645         (free_1): New.
646         (free_2): New.
647         (all_symbols_read_handler): New.
648         (claim_file_handler): Record every claimed file.
649         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
650         LDPT_GET_SYMBOLS.
651         * lto-symtab.c: Include stdlib.h, string.h and common.h.
652         (current_file_handle): Remove.
653         (ld_plugin_all_symbols_read_handler): New.
654         (plugin_handle): New.
655         (file_handle): New.
656         (all_file_handles): New.
657         (num_file_handles): New.
658         (get_symbols): New.
659         (register_all_symbols_read): New.
660         (add_symbols): Don't print the symbols, just record them.
661         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
662         LDPT_GET_SYMBOLS.
663         (load_plugin): Use plugin_handle.
664         (register_file): Add the file handle to all_file_handles.
665         (resolve): New.
666         (print): New.
667         (unload_plugin): New.
668         (free_all): New.
669         (main): Call all_symbols_read_handler and free resources.
670
671 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
672
673         * Makefile.am (AM_CFLAGS): New.
674         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
675         (lib_LTLIBRARIES): New.
676         (liblto_plugin_la_SOURCES): New.
677         (liblto_plugin_la_LIBADD): New.
678         * Makefile.in: Regenerate.
679         * acinclude.m4: Don't include ../config/acx.m4 and
680         ../config/no-executables.m4.
681         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
682         ../libtool.m4.
683         * aclocal.m4: Regenerate.
684         * configure: Regenerate.
685         * configure.ac: Use AM_PROG_LIBTOOL.
686         * lto-plugin.c: New.
687         * lto-symtab.c: Rewrite to use the plugin.
688         * plugin-api.h: New.
689
690 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
691
692         * configure: Regenerate.
693         * configure.ac: Use AC_CHECK_GELF.
694         * lto-symtab.c: Include gelf.h.
695         (get_string_table): Use size independent API.
696         (printTable): Use lld to print 64 bit integers.
697
698 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
699
700         * lto-symtab.c (parse_table_entry): Assert entry->kind and
701         entry->visibility are valid.
702
703 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
704         * lto-symtab.c (table_entry): Add comdat.
705         (parse_table_entry): Read comdat.
706
707 2008-08-21  Rafael Espindola  <espindola@google.com>
708
709         * Makefile.am: New.
710         * Makefile.in: New.
711         * acinclude.m4: New.
712         * aclocal.m4: New.
713         * configure: New.
714         * configure.ac: New.
715         * lto-symtab.c: New.