OSDN Git Service

b2011cd56b23cb7c41c77a465ef36195e48f283c
[pf3gnuchains/gcc-fork.git] / lto-plugin / ChangeLog
1 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2
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.
7
8 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
9
10         PR middle-end/46674
11         PR lto/43157
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.
16
17 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
18
19         PR target/40125
20         PR lto/46695
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.
27
28 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
29
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.
35
36 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
37
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.
44
45 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
46
47         * lto-plugin.c (add_output_files): Fix memory leak.
48
49 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
50
51         PR bootstrap/46397
52         PR bootstrap/46362
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.
57         (nop): Likewise.
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.
64
65 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
66
67         PR lto/46291
68         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
69
70 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
71
72         PR lto/46273
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.
77         (LIBELFLIBS): Delete.
78         (LIBELFINC): Delete.
79         (LTO_FORMAT): Delete.
80         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
81         (config.h): Add AC_CONFIG_HEADERS directive.
82         * Makefile.am (LIBELFLIBS): Delete.
83         (LIBELFINC): Delete.
84         (LTO_FORMAT): Delete.
85         (DEFS): Import.
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.
117
118 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
119
120         * lto-plugin.c (dump_symtab): Correct printf argument type.
121         (finish_conflict_resolution): Initialize resolution.
122
123 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
124
125         PR bootstrap/45951
126         * configure.ac: Add AC_CANONICAL_SYSTEM.
127         * configure: Regenerated.
128
129 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
130
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.
148         (check): 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
153         source file.
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.
175
176 2010-08-05  Andi Kleen  <ak@linux.intel.com>
177
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.
183         (dump_symtab): Add.
184         (finish_conflict_resolution): Add.
185         (free_symtab): 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.
189         (SWAP): Add.
190         (eq_sym): Add.
191         (hash_sym): Add.
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.
196
197 2010-07-27  Andi Kleen <ak@linux.intel.com>
198
199         * lto-plugin.c (translate): Remove debug fprintf.
200
201 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
202
203         PR bootstrap/45042
204         * lto-plugin.c (translate): Cast to unsigned long.
205
206 2010-07-23   Andi Kleen <ak@linux.intel.com>
207
208         PR lto/44992
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.
222
223 2010-07-22  Richard Guenther  <rguenther@suse.de>
224
225         * Makefile.am: New copy_lto_plugin rule to install the plugin
226         into ../gcc.
227         * Makefile.in: Regenerated.
228
229 2010-05-21  Richard Guenther  <rguenther@suse.de>
230
231         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
232
233 2010-05-07  Richard Guenther <rguenther@suse.de>
234
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=.
240
241 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
242
243         PR other/43620
244         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
245         * Makefile.in: Regenerate.
246
247 2010-04-23  Richard Guenther  <rguenther@suse.de>
248
249         PR lto/41550
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.
256
257 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
258
259         * Makefile.in: Regenerate.
260         * aclocal.m4: Regenerate.
261
262 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
263
264         PR lto/43336
265         * lto-plugin.c (cleanup_handler): Delete temporary output files.
266
267 2010-01-11  Richard Guenther  <rguenther@suse.de>
268
269         PR lto/41569
270         * Makefile.am: Disable dependencies.
271         * Makefile.in: Regenerated.
272
273 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
274
275         PR lto/42520
276         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
277         if -v is passed.
278
279 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
280
281         PR bootstrap/42306
282         * configure: Regenerated.
283         * Makefile.in: Likewise.
284
285 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
286
287         PR bootstrap/42096
288         * lto-plugin.c (claim_file_handler): Print offsets in hex.
289
290 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
291
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.
295         Pass it to gcc.
296         (cleanup_handler): Remove the resolution file.
297         (process_option): Drop the -resolution option.
298
299 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
300
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
306         arguments file.
307         (onload): Don't create the temporary directory.
308
309 2009-11-04  Richard Guenther  <rguenther@suse.de>
310             Rafael Avila de Espindola  <espindola@google.com>
311
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.
315
316 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
317
318         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
319
320 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
321
322         PR41871
323         * lto-plugin.c (claim_file_handler): Close files that we created.
324
325 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
326
327         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
328         LDPL_ERROR
329
330 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
331
332         PR lto/41652
333         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
334         * configure: Regenerate.
335
336 2009-10-26  Richard Guenther  <rguenther@suse.de>
337
338         * configure.ac: Use AM_MAINTAINER_MODE.
339         * acinclude.m4: Remove.
340         * configure: Re-generate.
341         * Makefile.in: Likewise.
342         * aclocal.m4: Likewise.
343
344 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
345     
346         PR40790
347         * configure: Regenerate.
348         * configure.ac: Add AC_TYPE_UINT64_T.
349
350 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
351
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
356         assert.
357         (cleanup_handler): Use check instead of assert. Remove the arguments
358         file if it exists.
359
360 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
361
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
368         write_resolution.
369         (process_option): Add a -resolution option.
370
371 2009-10-13  Richard Guenther  <rguenther@suse.de>
372
373         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
374         correct libiberty.
375         * Makefile.in: Regenerated.
376
377 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
378
379         * lto-plugin.c (add_input_library): New.
380         (all_symbols_read_handler): Use add_input_library for items that
381         start with -l.
382         (process_option): Fit in 80 columns.
383         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
384
385 2009-10-02  Diego Novillo  <dnovillo@google.com>
386
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.
393
394 2009-10-02  Diego Novillo  <dnovillo@google.com>
395
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.
402
403 2009-10-02  Diego Novillo  <dnovillo@google.com>
404
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.
411
412 2009-10-02  Diego Novillo  <dnovillo@google.com>
413
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.
420
421 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
422
423         * Makefile.am (liblto_plugin_la_SOURCES): Remove
424         $(top_srcdir)/../gcc/lto/common.c
425         * Makefile.in: Regenerate.
426
427 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
428
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.
433         
434 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
435
436         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
437         register_cleanup to be set.
438
439 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
440
441         * Makefile.am: Remove all reference to ltosymtab.
442         * Makefile.in: Regenerate.
443         * lto-symtab.c: Remove.
444
445 2009-05-21  Diego Novillo  <dnovillo@google.com>
446
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.
451         (LIBELFINC): 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.
459
460 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
461
462         * lto-plugin.c (libgcc_filename): New.
463         (all_symbols_read_handler): Pass libgcc to the linker.
464         (all_symbols_read_handler): Parse -libgcc
465
466 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
467
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.
472
473 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
474
475         Revert:
476         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
477         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
478
479
480 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
481
482         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
483
484 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
485
486         * lto-plugin.c: Include libiberty.h.
487         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
488         snprintf.
489
490 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
491
492         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
493         file to lto-wrapper.
494
495 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
496
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
500         elf_end.
501         (claim_file_handler): Always call elf_end.
502
503 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
504
505         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
506         -D_FILE_OFFSET_BITS=64
507         * Makefile.in: Regenerate
508
509 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
510
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).
517
518 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
519
520         * lto-plugin.c: Include stdbool.h.
521         (debug, nop): Declare as bool.
522
523 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
524
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.
529
530 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
531
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.
535
536 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
537
538         * lto-plugin.c (process_option): The argument is now a single option,
539         not a space separated list.
540
541 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
542
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.
553
554 2008-11-26  Rafael Espindola  <espindola@google.com>
555
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.
562
563 2008-09-23 Rafael Espindola  <espindola@google.com>
564
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.
572
573 2008-09-23 Rafael Espindola  <espindola@google.com>
574
575         * common.c: Include common.h.
576         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
577         sizes.
578         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
579         explicit sizes.
580
581 2008-09-23 Rafael Espindola  <espindola@google.com>
582
583         * lto-plugin.c (plugin_file_info): Add temp.
584         (cleanup_handler): Only delete temporary files.
585         (claim_file_handler): Initialize lto_file.temp.
586
587 2008-09-23  Rafael Espindola  <espindola@google.com>
588
589         * plugin-api.h: Moved to include.
590
591 2008-09-23 Rafael Espindola  <espindola@google.com>
592
593         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
594         format.
595
596 2008-09-22 Rafael Espindola  <espindola@google.com>
597
598         * plugin-api.h: Copy from binutils' cvs.
599
600 2008-09-22 Rafael Espindola  <espindola@google.com>
601
602         * lto-symtab.c (get_symbols, add_symbols): Update signature.
603         * plugin-api.h: Copy from binutils' cvs.
604
605 2008-09-22 Rafael Espindola  <espindola@google.com>
606
607         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
608         Make extern
609
610 2008-09-10 Rafael Espindola  <espindola@google.com>
611
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.
619
620 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
621
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.
634
635 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
636
637         * lto-plugin.c (get_string_table): Remove.
638         (get_section): Use elf_strptr instead of get_string_table.
639
640 2008-09-08  Doug Kwan  <dougkwan@google.com>
641
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.
644
645 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
646
647         * Makefile.am (ltosymtab_SOURCES): add common.c.
648         (ltosymtab_CFLAGS): New.
649         (liblto_plugin_la_SOURCES): Add common.c.
650         * Makefile.in: Regenerate.
651         * common.c: New.
652         * common.h: New.
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.
657         (get_symbols): New.
658         (claimed_files): New.
659         (num_claimed_files): New.
660         (translate): Don't drop the slot number.
661         (free_1): New.
662         (free_2): New.
663         (all_symbols_read_handler): New.
664         (claim_file_handler): Record every claimed file.
665         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
666         LDPT_GET_SYMBOLS.
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.
671         (file_handle): New.
672         (all_file_handles): New.
673         (num_file_handles): New.
674         (get_symbols): 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
678         LDPT_GET_SYMBOLS.
679         (load_plugin): Use plugin_handle.
680         (register_file): Add the file handle to all_file_handles.
681         (resolve): New.
682         (print): New.
683         (unload_plugin): New.
684         (free_all): New.
685         (main): Call all_symbols_read_handler and free resources.
686
687 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
688
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
698         ../libtool.m4.
699         * aclocal.m4: Regenerate.
700         * configure: Regenerate.
701         * configure.ac: Use AM_PROG_LIBTOOL.
702         * lto-plugin.c: New.
703         * lto-symtab.c: Rewrite to use the plugin.
704         * plugin-api.h: New.
705
706 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
707
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.
713
714 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
715
716         * lto-symtab.c (parse_table_entry): Assert entry->kind and
717         entry->visibility are valid.
718
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.
722
723 2008-08-21  Rafael Espindola  <espindola@google.com>
724
725         * Makefile.am: New.
726         * Makefile.in: New.
727         * acinclude.m4: New.
728         * aclocal.m4: New.
729         * configure: New.
730         * configure.ac: New.
731         * lto-symtab.c: New.