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