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