1 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
4 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
7 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
10 * configure: Regenerated.
11 * Makefile.in: Likewise.
13 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
16 * lto-plugin.c (claim_file_handler): Print offsets in hex.
18 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
20 * lto-plugin.c (write_resolution): Assume resolution_file is set.
21 Print the symbol name.
22 (all_symbols_read_handler): Create a resolution file.
24 (cleanup_handler): Remove the resolution file.
25 (process_option): Drop the -resolution option.
27 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
29 * lto-plugin.c (temp_obj_dir_name): Remove.
30 (arguments_file_name): New.
31 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
32 (exec_lto_wrapper): Create arguments file with make_temp_file.
33 (cleanup_handler): Don't remove the temporary directory. Remove the
35 (onload): Don't create the temporary directory.
37 2009-11-04 Richard Guenther <rguenther@suse.de>
38 Rafael Avila de Espindola <espindola@google.com>
40 * lto-plugin.c (plugin_file_info): Remove temp field.
41 (cleanup_handler): Don't delete temporary objects.
42 (claim_file_handler): Don't create temporary objects.
44 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
46 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
48 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
51 * lto-plugin.c (claim_file_handler): Close files that we created.
53 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
55 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
58 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
61 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
62 * configure: Regenerate.
64 2009-10-26 Richard Guenther <rguenther@suse.de>
66 * configure.ac: Use AM_MAINTAINER_MODE.
67 * acinclude.m4: Remove.
68 * configure: Re-generate.
69 * Makefile.in: Likewise.
70 * aclocal.m4: Likewise.
72 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
75 * configure: Regenerate.
76 * configure.ac: Add AC_TYPE_UINT64_T.
78 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
80 * lto-plugin.c (message): New variable.
81 (check): New function.
82 (parse_table_entry, translate, write_resolution,add_output_files,
83 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
85 (cleanup_handler): Use check instead of assert. Remove the arguments
88 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
90 * lto-plugin.c (resolution_file): New.
91 (free_1): Update comment.
92 (free_2): Free resolution_file.
93 (write_resolution): Write resolution to specified file. Use the
94 syms array from the symbol table.
95 (all_symbols_read_handler): Delay call to free_1 past call to
97 (process_option): Add a -resolution option.
99 2009-10-13 Richard Guenther <rguenther@suse.de>
101 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
103 * Makefile.in: Regenerated.
105 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
107 * lto-plugin.c (add_input_library): New.
108 (all_symbols_read_handler): Use add_input_library for items that
110 (process_option): Fit in 80 columns.
111 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
113 2009-10-02 Diego Novillo <dnovillo@google.com>
115 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
116 and -D_FILE_OFFSET_BITS=64.
117 * configure.ac: Add AC_SYS_LARGEFILE.
118 * configure: Regenerate.
119 * Makefile.in: Regenerate.
120 * lto-plugin.c: Fix copyright boilerplate.
122 2009-10-02 Diego Novillo <dnovillo@google.com>
124 * Makefile.am (ACLOCAL_AMFLAGS): Define.
125 * aclocal.m4: Regenerate with aclocal-2.64
126 * acinclude.m4: Remove.
127 * Makefile.in: Regenerate with automake-1.11
128 * configure.ac (AC_PREREQ): Update to 2.64.
129 * configure: Regenerate.
131 2009-10-02 Diego Novillo <dnovillo@google.com>
133 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
134 and -D_FILE_OFFSET_BITS=64.
135 * configure.ac: Add AC_SYS_LARGEFILE.
136 * configure: Regenerate.
137 * Makefile.in: Regenerate.
138 * lto-plugin.c: Fix copyright boilerplate.
140 2009-10-02 Diego Novillo <dnovillo@google.com>
142 * Makefile.am (ACLOCAL_AMFLAGS): Define.
143 * aclocal.m4: Regenerate with aclocal-2.64
144 * acinclude.m4: Remove.
145 * Makefile.in: Regenerate with automake-1.11
146 * configure.ac (AC_PREREQ): Update to 2.64.
147 * configure: Regenerate.
149 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
151 * Makefile.am (liblto_plugin_la_SOURCES): Remove
152 $(top_srcdir)/../gcc/lto/common.c
153 * Makefile.in: Regenerate.
155 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
157 * lto-plugin.c (pass_through_items): New.
158 (num_pass_through_items): New.
159 (all_symbols_read_handler): Update to use the -pass-through option.
160 (process_option): Replace -libgcc with -pass-through.
162 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
164 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
165 register_cleanup to be set.
167 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
169 * Makefile.am: Remove all reference to ltosymtab.
170 * Makefile.in: Regenerate.
171 * lto-symtab.c: Remove.
173 2009-05-21 Diego Novillo <dnovillo@google.com>
175 * configure.ac: Remove call to AC_CHECK_GELF.
176 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
177 * acinclude.m4: Do not include ../config/libelf.m4
178 * Makefile.am (LIBELFLIBS): Define.
180 (AM_CPPFLAGS): Add $(LIBELFINC).
181 (ltosymtab_LDADD): Add $(LIBELFLIBS).
182 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
183 * lto-plugin.c: Always include <gelf.h>
184 * lto-symtab.c: Likewise.
185 * configure: Regenerate.
186 * Makefile.in: Regenerate.
188 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
190 * lto-plugin.c (libgcc_filename): New.
191 (all_symbols_read_handler): Pass libgcc to the linker.
192 (all_symbols_read_handler): Parse -libgcc
194 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
196 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
197 * Makefile.in: Regenerate.
198 * lto-plugin.c (add_output_files): Argument is now a FILE.
199 (exec_lto_wrapper): Use writeargv and pex.
201 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
204 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
205 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
208 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
210 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
212 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
214 * lto-plugin.c: Include libiberty.h.
215 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
218 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
220 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
223 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
225 * lto-plugin.c (plugin_file_info): Remove fd and elf.
226 (parse_table_entry): strdup entry->name and entry->comdat_key.
227 (free_1): Free name and comdat_key. Don't close the file. Don't call
229 (claim_file_handler): Always call elf_end.
231 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
233 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
234 -D_FILE_OFFSET_BITS=64
235 * Makefile.in: Regenerate
237 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
239 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
240 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
241 * Makefile.in: Regenerate.
242 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
243 * configure: Regenerate.
244 * configure.ac: Add AC_SUBST(target_noncanonical).
246 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
248 * lto-plugin.c: Include stdbool.h.
249 (debug, nop): Declare as bool.
251 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
253 * lto-plugin.c (nop): New.
254 (use_original_files): New.
255 (all_symbols_read_handler): Call use_original_files if nop is true.
256 (process_option): Parse the -nop option.
258 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
260 * lto-plugin.c (debug): New.
261 (exec_lto_wrapper): Print argv if debug is true.
262 (process_option): Process the -debug command line option.
264 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
266 * lto-plugin.c (process_option): The argument is now a single option,
267 not a space separated list.
269 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
271 * lto-plugin.c: Include sys/types.h and sys/wait.h
272 (output_files, num_output_files, lto_wrapper_argv,
273 lto_wrapper_num_args): New.
274 (free_2): Free output_files.
275 (write_resolution): Disable.
276 (add_output_files): New.
277 (exec_lto_wrapper): New.
278 (all_symbols_read_handler): Run lto-wrapper.
279 (claim_file_handler): Free lto_file.name and call elf_end.
280 (process_option): New.
282 2008-11-26 Rafael Espindola <espindola@google.com>
284 * lto-plugin.c (add_input_file): New.
285 (get_section): Return NULL if get_section fails.
286 (write_resolution): New.
287 (all_symbols_read_handler): Call add_input_file.
288 (claim_file_handler): Unlink the correct file.
289 (onload): Record add_input_file.
291 2008-09-23 Rafael Espindola <espindola@google.com>
293 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
294 Update the location of common.c.
295 * Makefile.in: Regenerate.
296 * common.c: Moved to gcc/lto.
297 * common.h: Moved to gcc/lto.
298 * lto-plugin.c: Update the location of common.h.
299 * lto-symtab.c: Update the location of common.h.
301 2008-09-23 Rafael Espindola <espindola@google.com>
303 * common.c: Include common.h.
304 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
306 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
309 2008-09-23 Rafael Espindola <espindola@google.com>
311 * lto-plugin.c (plugin_file_info): Add temp.
312 (cleanup_handler): Only delete temporary files.
313 (claim_file_handler): Initialize lto_file.temp.
315 2008-09-23 Rafael Espindola <espindola@google.com>
317 * plugin-api.h: Moved to include.
319 2008-09-23 Rafael Espindola <espindola@google.com>
321 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
324 2008-09-22 Rafael Espindola <espindola@google.com>
326 * plugin-api.h: Copy from binutils' cvs.
328 2008-09-22 Rafael Espindola <espindola@google.com>
330 * lto-symtab.c (get_symbols, add_symbols): Update signature.
331 * plugin-api.h: Copy from binutils' cvs.
333 2008-09-22 Rafael Espindola <espindola@google.com>
335 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
338 2008-09-10 Rafael Espindola <espindola@google.com>
340 * lto-plugin.c (onload): add missing break statements and asserts.
341 * lto-symtab.c (claim_file_handler): Make it static.
342 (all_symbols_read_handler): Make it static.
343 (all_file_handles): Make it static.
344 (num_file_handles): Make it static.
345 (register_claim_file): Make it static.
346 (register_object): Indent properly.
348 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
350 * Makefile.am (ltosymtab_LDADD): Add -lelf.
351 * Makefiel.in: Regenerate.
352 * lto-plugin.c: Include ar.h.
353 (claim_file_handler): Handle file->offset != 0.
354 * lto-symtab.c: Include gelf.h.
355 (all_file_handles): Change type.
356 (register_object): New.
357 (register_file): Add support for archives.
358 (resolve): Update to new type of all_file_handles.
359 (print): Update to new type of all_file_handles.
360 (free_all): Update to new type of all_file_handles.
361 (main): Update to new type of all_file_handles.
363 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
365 * lto-plugin.c (get_string_table): Remove.
366 (get_section): Use elf_strptr instead of get_string_table.
368 2008-09-08 Doug Kwan <dougkwan@google.com>
370 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
371 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
373 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
375 * Makefile.am (ltosymtab_SOURCES): add common.c.
376 (ltosymtab_CFLAGS): New.
377 (liblto_plugin_la_SOURCES): Add common.c.
378 * Makefile.in: Regenerate.
381 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
382 (plugin_symtab): New.
383 (plugin_file_info): New.
384 (register_all_symbols_read): New.
386 (claimed_files): New.
387 (num_claimed_files): New.
388 (translate): Don't drop the slot number.
391 (all_symbols_read_handler): New.
392 (claim_file_handler): Record every claimed file.
393 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
395 * lto-symtab.c: Include stdlib.h, string.h and common.h.
396 (current_file_handle): Remove.
397 (ld_plugin_all_symbols_read_handler): New.
398 (plugin_handle): New.
400 (all_file_handles): New.
401 (num_file_handles): New.
403 (register_all_symbols_read): New.
404 (add_symbols): Don't print the symbols, just record them.
405 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
407 (load_plugin): Use plugin_handle.
408 (register_file): Add the file handle to all_file_handles.
411 (unload_plugin): New.
413 (main): Call all_symbols_read_handler and free resources.
415 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
417 * Makefile.am (AM_CFLAGS): New.
418 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
419 (lib_LTLIBRARIES): New.
420 (liblto_plugin_la_SOURCES): New.
421 (liblto_plugin_la_LIBADD): New.
422 * Makefile.in: Regenerate.
423 * acinclude.m4: Don't include ../config/acx.m4 and
424 ../config/no-executables.m4.
425 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
427 * aclocal.m4: Regenerate.
428 * configure: Regenerate.
429 * configure.ac: Use AM_PROG_LIBTOOL.
431 * lto-symtab.c: Rewrite to use the plugin.
434 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
436 * configure: Regenerate.
437 * configure.ac: Use AC_CHECK_GELF.
438 * lto-symtab.c: Include gelf.h.
439 (get_string_table): Use size independent API.
440 (printTable): Use lld to print 64 bit integers.
442 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
444 * lto-symtab.c (parse_table_entry): Assert entry->kind and
445 entry->visibility are valid.
447 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
448 * lto-symtab.c (table_entry): Add comdat.
449 (parse_table_entry): Read comdat.
451 2008-08-21 Rafael Espindola <espindola@google.com>