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