1 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
4 * lto-plugin.c (claim_file_handler): Print offsets in hex.
6 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
8 * lto-plugin.c (write_resolution): Assume resolution_file is set.
10 (all_symbols_read_handler): Create a resolution file.
12 (cleanup_handler): Remove the resolution file.
13 (process_option): Drop the -resolution option.
15 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
17 * lto-plugin.c (temp_obj_dir_name): Remove.
18 (arguments_file_name): New.
19 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
20 (exec_lto_wrapper): Create arguments file with make_temp_file.
21 (cleanup_handler): Don't remove the temporary directory. Remove the
23 (onload): Don't create the temporary directory.
25 2009-11-04 Richard Guenther <rguenther@suse.de>
26 Rafael Avila de Espindola <espindola@google.com>
28 * lto-plugin.c (plugin_file_info): Remove temp field.
29 (cleanup_handler): Don't delete temporary objects.
30 (claim_file_handler): Don't create temporary objects.
32 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
34 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
36 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
39 * lto-plugin.c (claim_file_handler): Close files that we created.
41 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
43 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
46 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
49 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
50 * configure: Regenerate.
52 2009-10-26 Richard Guenther <rguenther@suse.de>
54 * configure.ac: Use AM_MAINTAINER_MODE.
55 * acinclude.m4: Remove.
56 * configure: Re-generate.
57 * Makefile.in: Likewise.
58 * aclocal.m4: Likewise.
60 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
63 * configure: Regenerate.
64 * configure.ac: Add AC_TYPE_UINT64_T.
66 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
68 * lto-plugin.c (message): New variable.
69 (check): New function.
70 (parse_table_entry, translate, write_resolution,add_output_files,
71 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
73 (cleanup_handler): Use check instead of assert. Remove the arguments
76 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
78 * lto-plugin.c (resolution_file): New.
79 (free_1): Update comment.
80 (free_2): Free resolution_file.
81 (write_resolution): Write resolution to specified file. Use the
82 syms array from the symbol table.
83 (all_symbols_read_handler): Delay call to free_1 past call to
85 (process_option): Add a -resolution option.
87 2009-10-13 Richard Guenther <rguenther@suse.de>
89 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
91 * Makefile.in: Regenerated.
93 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
95 * lto-plugin.c (add_input_library): New.
96 (all_symbols_read_handler): Use add_input_library for items that
98 (process_option): Fit in 80 columns.
99 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
101 2009-10-02 Diego Novillo <dnovillo@google.com>
103 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
104 and -D_FILE_OFFSET_BITS=64.
105 * configure.ac: Add AC_SYS_LARGEFILE.
106 * configure: Regenerate.
107 * Makefile.in: Regenerate.
108 * lto-plugin.c: Fix copyright boilerplate.
110 2009-10-02 Diego Novillo <dnovillo@google.com>
112 * Makefile.am (ACLOCAL_AMFLAGS): Define.
113 * aclocal.m4: Regenerate with aclocal-2.64
114 * acinclude.m4: Remove.
115 * Makefile.in: Regenerate with automake-1.11
116 * configure.ac (AC_PREREQ): Update to 2.64.
117 * configure: Regenerate.
119 2009-10-02 Diego Novillo <dnovillo@google.com>
121 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
122 and -D_FILE_OFFSET_BITS=64.
123 * configure.ac: Add AC_SYS_LARGEFILE.
124 * configure: Regenerate.
125 * Makefile.in: Regenerate.
126 * lto-plugin.c: Fix copyright boilerplate.
128 2009-10-02 Diego Novillo <dnovillo@google.com>
130 * Makefile.am (ACLOCAL_AMFLAGS): Define.
131 * aclocal.m4: Regenerate with aclocal-2.64
132 * acinclude.m4: Remove.
133 * Makefile.in: Regenerate with automake-1.11
134 * configure.ac (AC_PREREQ): Update to 2.64.
135 * configure: Regenerate.
137 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
139 * Makefile.am (liblto_plugin_la_SOURCES): Remove
140 $(top_srcdir)/../gcc/lto/common.c
141 * Makefile.in: Regenerate.
143 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
145 * lto-plugin.c (pass_through_items): New.
146 (num_pass_through_items): New.
147 (all_symbols_read_handler): Update to use the -pass-through option.
148 (process_option): Replace -libgcc with -pass-through.
150 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
152 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
153 register_cleanup to be set.
155 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
157 * Makefile.am: Remove all reference to ltosymtab.
158 * Makefile.in: Regenerate.
159 * lto-symtab.c: Remove.
161 2009-05-21 Diego Novillo <dnovillo@google.com>
163 * configure.ac: Remove call to AC_CHECK_GELF.
164 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
165 * acinclude.m4: Do not include ../config/libelf.m4
166 * Makefile.am (LIBELFLIBS): Define.
168 (AM_CPPFLAGS): Add $(LIBELFINC).
169 (ltosymtab_LDADD): Add $(LIBELFLIBS).
170 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
171 * lto-plugin.c: Always include <gelf.h>
172 * lto-symtab.c: Likewise.
173 * configure: Regenerate.
174 * Makefile.in: Regenerate.
176 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
178 * lto-plugin.c (libgcc_filename): New.
179 (all_symbols_read_handler): Pass libgcc to the linker.
180 (all_symbols_read_handler): Parse -libgcc
182 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
184 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
185 * Makefile.in: Regenerate.
186 * lto-plugin.c (add_output_files): Argument is now a FILE.
187 (exec_lto_wrapper): Use writeargv and pex.
189 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
192 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
193 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
196 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
198 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
200 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
202 * lto-plugin.c: Include libiberty.h.
203 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
206 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
208 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
211 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
213 * lto-plugin.c (plugin_file_info): Remove fd and elf.
214 (parse_table_entry): strdup entry->name and entry->comdat_key.
215 (free_1): Free name and comdat_key. Don't close the file. Don't call
217 (claim_file_handler): Always call elf_end.
219 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
221 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
222 -D_FILE_OFFSET_BITS=64
223 * Makefile.in: Regenerate
225 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
227 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
228 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
229 * Makefile.in: Regenerate.
230 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
231 * configure: Regenerate.
232 * configure.ac: Add AC_SUBST(target_noncanonical).
234 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
236 * lto-plugin.c: Include stdbool.h.
237 (debug, nop): Declare as bool.
239 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
241 * lto-plugin.c (nop): New.
242 (use_original_files): New.
243 (all_symbols_read_handler): Call use_original_files if nop is true.
244 (process_option): Parse the -nop option.
246 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
248 * lto-plugin.c (debug): New.
249 (exec_lto_wrapper): Print argv if debug is true.
250 (process_option): Process the -debug command line option.
252 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
254 * lto-plugin.c (process_option): The argument is now a single option,
255 not a space separated list.
257 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
259 * lto-plugin.c: Include sys/types.h and sys/wait.h
260 (output_files, num_output_files, lto_wrapper_argv,
261 lto_wrapper_num_args): New.
262 (free_2): Free output_files.
263 (write_resolution): Disable.
264 (add_output_files): New.
265 (exec_lto_wrapper): New.
266 (all_symbols_read_handler): Run lto-wrapper.
267 (claim_file_handler): Free lto_file.name and call elf_end.
268 (process_option): New.
270 2008-11-26 Rafael Espindola <espindola@google.com>
272 * lto-plugin.c (add_input_file): New.
273 (get_section): Return NULL if get_section fails.
274 (write_resolution): New.
275 (all_symbols_read_handler): Call add_input_file.
276 (claim_file_handler): Unlink the correct file.
277 (onload): Record add_input_file.
279 2008-09-23 Rafael Espindola <espindola@google.com>
281 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
282 Update the location of common.c.
283 * Makefile.in: Regenerate.
284 * common.c: Moved to gcc/lto.
285 * common.h: Moved to gcc/lto.
286 * lto-plugin.c: Update the location of common.h.
287 * lto-symtab.c: Update the location of common.h.
289 2008-09-23 Rafael Espindola <espindola@google.com>
291 * common.c: Include common.h.
292 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
294 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
297 2008-09-23 Rafael Espindola <espindola@google.com>
299 * lto-plugin.c (plugin_file_info): Add temp.
300 (cleanup_handler): Only delete temporary files.
301 (claim_file_handler): Initialize lto_file.temp.
303 2008-09-23 Rafael Espindola <espindola@google.com>
305 * plugin-api.h: Moved to include.
307 2008-09-23 Rafael Espindola <espindola@google.com>
309 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
312 2008-09-22 Rafael Espindola <espindola@google.com>
314 * plugin-api.h: Copy from binutils' cvs.
316 2008-09-22 Rafael Espindola <espindola@google.com>
318 * lto-symtab.c (get_symbols, add_symbols): Update signature.
319 * plugin-api.h: Copy from binutils' cvs.
321 2008-09-22 Rafael Espindola <espindola@google.com>
323 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
326 2008-09-10 Rafael Espindola <espindola@google.com>
328 * lto-plugin.c (onload): add missing break statements and asserts.
329 * lto-symtab.c (claim_file_handler): Make it static.
330 (all_symbols_read_handler): Make it static.
331 (all_file_handles): Make it static.
332 (num_file_handles): Make it static.
333 (register_claim_file): Make it static.
334 (register_object): Indent properly.
336 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
338 * Makefile.am (ltosymtab_LDADD): Add -lelf.
339 * Makefiel.in: Regenerate.
340 * lto-plugin.c: Include ar.h.
341 (claim_file_handler): Handle file->offset != 0.
342 * lto-symtab.c: Include gelf.h.
343 (all_file_handles): Change type.
344 (register_object): New.
345 (register_file): Add support for archives.
346 (resolve): Update to new type of all_file_handles.
347 (print): Update to new type of all_file_handles.
348 (free_all): Update to new type of all_file_handles.
349 (main): Update to new type of all_file_handles.
351 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
353 * lto-plugin.c (get_string_table): Remove.
354 (get_section): Use elf_strptr instead of get_string_table.
356 2008-09-08 Doug Kwan <dougkwan@google.com>
358 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
359 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
361 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
363 * Makefile.am (ltosymtab_SOURCES): add common.c.
364 (ltosymtab_CFLAGS): New.
365 (liblto_plugin_la_SOURCES): Add common.c.
366 * Makefile.in: Regenerate.
369 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
370 (plugin_symtab): New.
371 (plugin_file_info): New.
372 (register_all_symbols_read): New.
374 (claimed_files): New.
375 (num_claimed_files): New.
376 (translate): Don't drop the slot number.
379 (all_symbols_read_handler): New.
380 (claim_file_handler): Record every claimed file.
381 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
383 * lto-symtab.c: Include stdlib.h, string.h and common.h.
384 (current_file_handle): Remove.
385 (ld_plugin_all_symbols_read_handler): New.
386 (plugin_handle): New.
388 (all_file_handles): New.
389 (num_file_handles): New.
391 (register_all_symbols_read): New.
392 (add_symbols): Don't print the symbols, just record them.
393 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
395 (load_plugin): Use plugin_handle.
396 (register_file): Add the file handle to all_file_handles.
399 (unload_plugin): New.
401 (main): Call all_symbols_read_handler and free resources.
403 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
405 * Makefile.am (AM_CFLAGS): New.
406 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
407 (lib_LTLIBRARIES): New.
408 (liblto_plugin_la_SOURCES): New.
409 (liblto_plugin_la_LIBADD): New.
410 * Makefile.in: Regenerate.
411 * acinclude.m4: Don't include ../config/acx.m4 and
412 ../config/no-executables.m4.
413 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
415 * aclocal.m4: Regenerate.
416 * configure: Regenerate.
417 * configure.ac: Use AM_PROG_LIBTOOL.
419 * lto-symtab.c: Rewrite to use the plugin.
422 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
424 * configure: Regenerate.
425 * configure.ac: Use AC_CHECK_GELF.
426 * lto-symtab.c: Include gelf.h.
427 (get_string_table): Use size independent API.
428 (printTable): Use lld to print 64 bit integers.
430 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
432 * lto-symtab.c (parse_table_entry): Assert entry->kind and
433 entry->visibility are valid.
435 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
436 * lto-symtab.c (table_entry): Add comdat.
437 (parse_table_entry): Read comdat.
439 2008-08-21 Rafael Espindola <espindola@google.com>