1 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
4 * lto-plugin.c (claim_file_handler): Close files that we created.
6 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
8 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
11 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
14 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
15 * configure: Regenerate.
17 2009-10-26 Richard Guenther <rguenther@suse.de>
19 * configure.ac: Use AM_MAINTAINER_MODE.
20 * acinclude.m4: Remove.
21 * configure: Re-generate.
22 * Makefile.in: Likewise.
23 * aclocal.m4: Likewise.
25 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
28 * configure: Regenerate.
29 * configure.ac: Add AC_TYPE_UINT64_T.
31 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
33 * lto-plugin.c (message): New variable.
34 (check): New function.
35 (parse_table_entry, translate, write_resolution,add_output_files,
36 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
38 (cleanup_handler): Use check instead of assert. Remove the arguments
41 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
43 * lto-plugin.c (resolution_file): New.
44 (free_1): Update comment.
45 (free_2): Free resolution_file.
46 (write_resolution): Write resolution to specified file. Use the
47 syms array from the symbol table.
48 (all_symbols_read_handler): Delay call to free_1 past call to
50 (process_option): Add a -resolution option.
52 2009-10-13 Richard Guenther <rguenther@suse.de>
54 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
56 * Makefile.in: Regenerated.
58 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
60 * lto-plugin.c (add_input_library): New.
61 (all_symbols_read_handler): Use add_input_library for items that
63 (process_option): Fit in 80 columns.
64 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
66 2009-10-02 Diego Novillo <dnovillo@google.com>
68 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
69 and -D_FILE_OFFSET_BITS=64.
70 * configure.ac: Add AC_SYS_LARGEFILE.
71 * configure: Regenerate.
72 * Makefile.in: Regenerate.
73 * lto-plugin.c: Fix copyright boilerplate.
75 2009-10-02 Diego Novillo <dnovillo@google.com>
77 * Makefile.am (ACLOCAL_AMFLAGS): Define.
78 * aclocal.m4: Regenerate with aclocal-2.64
79 * acinclude.m4: Remove.
80 * Makefile.in: Regenerate with automake-1.11
81 * configure.ac (AC_PREREQ): Update to 2.64.
82 * configure: Regenerate.
84 2009-10-02 Diego Novillo <dnovillo@google.com>
86 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
87 and -D_FILE_OFFSET_BITS=64.
88 * configure.ac: Add AC_SYS_LARGEFILE.
89 * configure: Regenerate.
90 * Makefile.in: Regenerate.
91 * lto-plugin.c: Fix copyright boilerplate.
93 2009-10-02 Diego Novillo <dnovillo@google.com>
95 * Makefile.am (ACLOCAL_AMFLAGS): Define.
96 * aclocal.m4: Regenerate with aclocal-2.64
97 * acinclude.m4: Remove.
98 * Makefile.in: Regenerate with automake-1.11
99 * configure.ac (AC_PREREQ): Update to 2.64.
100 * configure: Regenerate.
102 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
104 * Makefile.am (liblto_plugin_la_SOURCES): Remove
105 $(top_srcdir)/../gcc/lto/common.c
106 * Makefile.in: Regenerate.
108 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
110 * lto-plugin.c (pass_through_items): New.
111 (num_pass_through_items): New.
112 (all_symbols_read_handler): Update to use the -pass-through option.
113 (process_option): Replace -libgcc with -pass-through.
115 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
117 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
118 register_cleanup to be set.
120 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
122 * Makefile.am: Remove all reference to ltosymtab.
123 * Makefile.in: Regenerate.
124 * lto-symtab.c: Remove.
126 2009-05-21 Diego Novillo <dnovillo@google.com>
128 * configure.ac: Remove call to AC_CHECK_GELF.
129 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
130 * acinclude.m4: Do not include ../config/libelf.m4
131 * Makefile.am (LIBELFLIBS): Define.
133 (AM_CPPFLAGS): Add $(LIBELFINC).
134 (ltosymtab_LDADD): Add $(LIBELFLIBS).
135 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
136 * lto-plugin.c: Always include <gelf.h>
137 * lto-symtab.c: Likewise.
138 * configure: Regenerate.
139 * Makefile.in: Regenerate.
141 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
143 * lto-plugin.c (libgcc_filename): New.
144 (all_symbols_read_handler): Pass libgcc to the linker.
145 (all_symbols_read_handler): Parse -libgcc
147 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
149 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
150 * Makefile.in: Regenerate.
151 * lto-plugin.c (add_output_files): Argument is now a FILE.
152 (exec_lto_wrapper): Use writeargv and pex.
154 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
157 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
158 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
161 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
163 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
165 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
167 * lto-plugin.c: Include libiberty.h.
168 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
171 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
173 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
176 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
178 * lto-plugin.c (plugin_file_info): Remove fd and elf.
179 (parse_table_entry): strdup entry->name and entry->comdat_key.
180 (free_1): Free name and comdat_key. Don't close the file. Don't call
182 (claim_file_handler): Always call elf_end.
184 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
186 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
187 -D_FILE_OFFSET_BITS=64
188 * Makefile.in: Regenerate
190 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
192 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
193 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
194 * Makefile.in: Regenerate.
195 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
196 * configure: Regenerate.
197 * configure.ac: Add AC_SUBST(target_noncanonical).
199 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
201 * lto-plugin.c: Include stdbool.h.
202 (debug, nop): Declare as bool.
204 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
206 * lto-plugin.c (nop): New.
207 (use_original_files): New.
208 (all_symbols_read_handler): Call use_original_files if nop is true.
209 (process_option): Parse the -nop option.
211 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
213 * lto-plugin.c (debug): New.
214 (exec_lto_wrapper): Print argv if debug is true.
215 (process_option): Process the -debug command line option.
217 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
219 * lto-plugin.c (process_option): The argument is now a single option,
220 not a space separated list.
222 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
224 * lto-plugin.c: Include sys/types.h and sys/wait.h
225 (output_files, num_output_files, lto_wrapper_argv,
226 lto_wrapper_num_args): New.
227 (free_2): Free output_files.
228 (write_resolution): Disable.
229 (add_output_files): New.
230 (exec_lto_wrapper): New.
231 (all_symbols_read_handler): Run lto-wrapper.
232 (claim_file_handler): Free lto_file.name and call elf_end.
233 (process_option): New.
235 2008-11-26 Rafael Espindola <espindola@google.com>
237 * lto-plugin.c (add_input_file): New.
238 (get_section): Return NULL if get_section fails.
239 (write_resolution): New.
240 (all_symbols_read_handler): Call add_input_file.
241 (claim_file_handler): Unlink the correct file.
242 (onload): Record add_input_file.
244 2008-09-23 Rafael Espindola <espindola@google.com>
246 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
247 Update the location of common.c.
248 * Makefile.in: Regenerate.
249 * common.c: Moved to gcc/lto.
250 * common.h: Moved to gcc/lto.
251 * lto-plugin.c: Update the location of common.h.
252 * lto-symtab.c: Update the location of common.h.
254 2008-09-23 Rafael Espindola <espindola@google.com>
256 * common.c: Include common.h.
257 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
259 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
262 2008-09-23 Rafael Espindola <espindola@google.com>
264 * lto-plugin.c (plugin_file_info): Add temp.
265 (cleanup_handler): Only delete temporary files.
266 (claim_file_handler): Initialize lto_file.temp.
268 2008-09-23 Rafael Espindola <espindola@google.com>
270 * plugin-api.h: Moved to include.
272 2008-09-23 Rafael Espindola <espindola@google.com>
274 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
277 2008-09-22 Rafael Espindola <espindola@google.com>
279 * plugin-api.h: Copy from binutils' cvs.
281 2008-09-22 Rafael Espindola <espindola@google.com>
283 * lto-symtab.c (get_symbols, add_symbols): Update signature.
284 * plugin-api.h: Copy from binutils' cvs.
286 2008-09-22 Rafael Espindola <espindola@google.com>
288 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
291 2008-09-10 Rafael Espindola <espindola@google.com>
293 * lto-plugin.c (onload): add missing break statements and asserts.
294 * lto-symtab.c (claim_file_handler): Make it static.
295 (all_symbols_read_handler): Make it static.
296 (all_file_handles): Make it static.
297 (num_file_handles): Make it static.
298 (register_claim_file): Make it static.
299 (register_object): Indent properly.
301 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
303 * Makefile.am (ltosymtab_LDADD): Add -lelf.
304 * Makefiel.in: Regenerate.
305 * lto-plugin.c: Include ar.h.
306 (claim_file_handler): Handle file->offset != 0.
307 * lto-symtab.c: Include gelf.h.
308 (all_file_handles): Change type.
309 (register_object): New.
310 (register_file): Add support for archives.
311 (resolve): Update to new type of all_file_handles.
312 (print): Update to new type of all_file_handles.
313 (free_all): Update to new type of all_file_handles.
314 (main): Update to new type of all_file_handles.
316 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
318 * lto-plugin.c (get_string_table): Remove.
319 (get_section): Use elf_strptr instead of get_string_table.
321 2008-09-08 Doug Kwan <dougkwan@google.com>
323 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
324 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
326 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
328 * Makefile.am (ltosymtab_SOURCES): add common.c.
329 (ltosymtab_CFLAGS): New.
330 (liblto_plugin_la_SOURCES): Add common.c.
331 * Makefile.in: Regenerate.
334 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
335 (plugin_symtab): New.
336 (plugin_file_info): New.
337 (register_all_symbols_read): New.
339 (claimed_files): New.
340 (num_claimed_files): New.
341 (translate): Don't drop the slot number.
344 (all_symbols_read_handler): New.
345 (claim_file_handler): Record every claimed file.
346 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
348 * lto-symtab.c: Include stdlib.h, string.h and common.h.
349 (current_file_handle): Remove.
350 (ld_plugin_all_symbols_read_handler): New.
351 (plugin_handle): New.
353 (all_file_handles): New.
354 (num_file_handles): New.
356 (register_all_symbols_read): New.
357 (add_symbols): Don't print the symbols, just record them.
358 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
360 (load_plugin): Use plugin_handle.
361 (register_file): Add the file handle to all_file_handles.
364 (unload_plugin): New.
366 (main): Call all_symbols_read_handler and free resources.
368 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
370 * Makefile.am (AM_CFLAGS): New.
371 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
372 (lib_LTLIBRARIES): New.
373 (liblto_plugin_la_SOURCES): New.
374 (liblto_plugin_la_LIBADD): New.
375 * Makefile.in: Regenerate.
376 * acinclude.m4: Don't include ../config/acx.m4 and
377 ../config/no-executables.m4.
378 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
380 * aclocal.m4: Regenerate.
381 * configure: Regenerate.
382 * configure.ac: Use AM_PROG_LIBTOOL.
384 * lto-symtab.c: Rewrite to use the plugin.
387 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
389 * configure: Regenerate.
390 * configure.ac: Use AC_CHECK_GELF.
391 * lto-symtab.c: Include gelf.h.
392 (get_string_table): Use size independent API.
393 (printTable): Use lld to print 64 bit integers.
395 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
397 * lto-symtab.c (parse_table_entry): Assert entry->kind and
398 entry->visibility are valid.
400 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
401 * lto-symtab.c (table_entry): Add comdat.
402 (parse_table_entry): Read comdat.
404 2008-08-21 Rafael Espindola <espindola@google.com>