1 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
3 * lto-plugin.c (resolution_file): New.
4 (free_1): Update comment.
5 (free_2): Free resolution_file.
6 (write_resolution): Write resolution to specified file. Use the
7 syms array from the symbol table.
8 (all_symbols_read_handler): Delay call to free_1 past call to
10 (process_option): Add a -resolution option.
12 2009-10-13 Richard Guenther <rguenther@suse.de>
14 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
16 * Makefile.in: Regenerated.
18 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
20 * lto-plugin.c (add_input_library): New.
21 (all_symbols_read_handler): Use add_input_library for items that
23 (process_option): Fit in 80 columns.
24 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
26 2009-10-02 Diego Novillo <dnovillo@google.com>
28 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
29 and -D_FILE_OFFSET_BITS=64.
30 * configure.ac: Add AC_SYS_LARGEFILE.
31 * configure: Regenerate.
32 * Makefile.in: Regenerate.
33 * lto-plugin.c: Fix copyright boilerplate.
35 2009-10-02 Diego Novillo <dnovillo@google.com>
37 * Makefile.am (ACLOCAL_AMFLAGS): Define.
38 * aclocal.m4: Regenerate with aclocal-2.64
39 * acinclude.m4: Remove.
40 * Makefile.in: Regenerate with automake-1.11
41 * configure.ac (AC_PREREQ): Update to 2.64.
42 * configure: Regenerate.
44 2009-10-02 Diego Novillo <dnovillo@google.com>
46 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
47 and -D_FILE_OFFSET_BITS=64.
48 * configure.ac: Add AC_SYS_LARGEFILE.
49 * configure: Regenerate.
50 * Makefile.in: Regenerate.
51 * lto-plugin.c: Fix copyright boilerplate.
53 2009-10-02 Diego Novillo <dnovillo@google.com>
55 * Makefile.am (ACLOCAL_AMFLAGS): Define.
56 * aclocal.m4: Regenerate with aclocal-2.64
57 * acinclude.m4: Remove.
58 * Makefile.in: Regenerate with automake-1.11
59 * configure.ac (AC_PREREQ): Update to 2.64.
60 * configure: Regenerate.
62 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
64 * Makefile.am (liblto_plugin_la_SOURCES): Remove
65 $(top_srcdir)/../gcc/lto/common.c
66 * Makefile.in: Regenerate.
68 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
70 * lto-plugin.c (pass_through_items): New.
71 (num_pass_through_items): New.
72 (all_symbols_read_handler): Update to use the -pass-through option.
73 (process_option): Replace -libgcc with -pass-through.
75 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
77 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
78 register_cleanup to be set.
80 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
82 * Makefile.am: Remove all reference to ltosymtab.
83 * Makefile.in: Regenerate.
84 * lto-symtab.c: Remove.
86 2009-05-21 Diego Novillo <dnovillo@google.com>
88 * configure.ac: Remove call to AC_CHECK_GELF.
89 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
90 * acinclude.m4: Do not include ../config/libelf.m4
91 * Makefile.am (LIBELFLIBS): Define.
93 (AM_CPPFLAGS): Add $(LIBELFINC).
94 (ltosymtab_LDADD): Add $(LIBELFLIBS).
95 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
96 * lto-plugin.c: Always include <gelf.h>
97 * lto-symtab.c: Likewise.
98 * configure: Regenerate.
99 * Makefile.in: Regenerate.
101 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
103 * lto-plugin.c (libgcc_filename): New.
104 (all_symbols_read_handler): Pass libgcc to the linker.
105 (all_symbols_read_handler): Parse -libgcc
107 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
109 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
110 * Makefile.in: Regenerate.
111 * lto-plugin.c (add_output_files): Argument is now a FILE.
112 (exec_lto_wrapper): Use writeargv and pex.
114 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
117 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
118 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
121 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
123 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
125 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
127 * lto-plugin.c: Include libiberty.h.
128 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
131 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
133 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
136 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
138 * lto-plugin.c (plugin_file_info): Remove fd and elf.
139 (parse_table_entry): strdup entry->name and entry->comdat_key.
140 (free_1): Free name and comdat_key. Don't close the file. Don't call
142 (claim_file_handler): Always call elf_end.
144 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
146 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
147 -D_FILE_OFFSET_BITS=64
148 * Makefile.in: Regenerate
150 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
152 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
153 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
154 * Makefile.in: Regenerate.
155 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
156 * configure: Regenerate.
157 * configure.ac: Add AC_SUBST(target_noncanonical).
159 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
161 * lto-plugin.c: Include stdbool.h.
162 (debug, nop): Declare as bool.
164 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
166 * lto-plugin.c (nop): New.
167 (use_original_files): New.
168 (all_symbols_read_handler): Call use_original_files if nop is true.
169 (process_option): Parse the -nop option.
171 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
173 * lto-plugin.c (debug): New.
174 (exec_lto_wrapper): Print argv if debug is true.
175 (process_option): Process the -debug command line option.
177 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
179 * lto-plugin.c (process_option): The argument is now a single option,
180 not a space separated list.
182 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
184 * lto-plugin.c: Include sys/types.h and sys/wait.h
185 (output_files, num_output_files, lto_wrapper_argv,
186 lto_wrapper_num_args): New.
187 (free_2): Free output_files.
188 (write_resolution): Disable.
189 (add_output_files): New.
190 (exec_lto_wrapper): New.
191 (all_symbols_read_handler): Run lto-wrapper.
192 (claim_file_handler): Free lto_file.name and call elf_end.
193 (process_option): New.
195 2008-11-26 Rafael Espindola <espindola@google.com>
197 * lto-plugin.c (add_input_file): New.
198 (get_section): Return NULL if get_section fails.
199 (write_resolution): New.
200 (all_symbols_read_handler): Call add_input_file.
201 (claim_file_handler): Unlink the correct file.
202 (onload): Record add_input_file.
204 2008-09-23 Rafael Espindola <espindola@google.com>
206 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
207 Update the location of common.c.
208 * Makefile.in: Regenerate.
209 * common.c: Moved to gcc/lto.
210 * common.h: Moved to gcc/lto.
211 * lto-plugin.c: Update the location of common.h.
212 * lto-symtab.c: Update the location of common.h.
214 2008-09-23 Rafael Espindola <espindola@google.com>
216 * common.c: Include common.h.
217 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
219 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
222 2008-09-23 Rafael Espindola <espindola@google.com>
224 * lto-plugin.c (plugin_file_info): Add temp.
225 (cleanup_handler): Only delete temporary files.
226 (claim_file_handler): Initialize lto_file.temp.
228 2008-09-23 Rafael Espindola <espindola@google.com>
230 * plugin-api.h: Moved to include.
232 2008-09-23 Rafael Espindola <espindola@google.com>
234 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
237 2008-09-22 Rafael Espindola <espindola@google.com>
239 * plugin-api.h: Copy from binutils' cvs.
241 2008-09-22 Rafael Espindola <espindola@google.com>
243 * lto-symtab.c (get_symbols, add_symbols): Update signature.
244 * plugin-api.h: Copy from binutils' cvs.
246 2008-09-22 Rafael Espindola <espindola@google.com>
248 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
251 2008-09-10 Rafael Espindola <espindola@google.com>
253 * lto-plugin.c (onload): add missing break statements and asserts.
254 * lto-symtab.c (claim_file_handler): Make it static.
255 (all_symbols_read_handler): Make it static.
256 (all_file_handles): Make it static.
257 (num_file_handles): Make it static.
258 (register_claim_file): Make it static.
259 (register_object): Indent properly.
261 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
263 * Makefile.am (ltosymtab_LDADD): Add -lelf.
264 * Makefiel.in: Regenerate.
265 * lto-plugin.c: Include ar.h.
266 (claim_file_handler): Handle file->offset != 0.
267 * lto-symtab.c: Include gelf.h.
268 (all_file_handles): Change type.
269 (register_object): New.
270 (register_file): Add support for archives.
271 (resolve): Update to new type of all_file_handles.
272 (print): Update to new type of all_file_handles.
273 (free_all): Update to new type of all_file_handles.
274 (main): Update to new type of all_file_handles.
276 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
278 * lto-plugin.c (get_string_table): Remove.
279 (get_section): Use elf_strptr instead of get_string_table.
281 2008-09-08 Doug Kwan <dougkwan@google.com>
283 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
284 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
286 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
288 * Makefile.am (ltosymtab_SOURCES): add common.c.
289 (ltosymtab_CFLAGS): New.
290 (liblto_plugin_la_SOURCES): Add common.c.
291 * Makefile.in: Regenerate.
294 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
295 (plugin_symtab): New.
296 (plugin_file_info): New.
297 (register_all_symbols_read): New.
299 (claimed_files): New.
300 (num_claimed_files): New.
301 (translate): Don't drop the slot number.
304 (all_symbols_read_handler): New.
305 (claim_file_handler): Record every claimed file.
306 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
308 * lto-symtab.c: Include stdlib.h, string.h and common.h.
309 (current_file_handle): Remove.
310 (ld_plugin_all_symbols_read_handler): New.
311 (plugin_handle): New.
313 (all_file_handles): New.
314 (num_file_handles): New.
316 (register_all_symbols_read): New.
317 (add_symbols): Don't print the symbols, just record them.
318 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
320 (load_plugin): Use plugin_handle.
321 (register_file): Add the file handle to all_file_handles.
324 (unload_plugin): New.
326 (main): Call all_symbols_read_handler and free resources.
328 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
330 * Makefile.am (AM_CFLAGS): New.
331 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
332 (lib_LTLIBRARIES): New.
333 (liblto_plugin_la_SOURCES): New.
334 (liblto_plugin_la_LIBADD): New.
335 * Makefile.in: Regenerate.
336 * acinclude.m4: Don't include ../config/acx.m4 and
337 ../config/no-executables.m4.
338 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
340 * aclocal.m4: Regenerate.
341 * configure: Regenerate.
342 * configure.ac: Use AM_PROG_LIBTOOL.
344 * lto-symtab.c: Rewrite to use the plugin.
347 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
349 * configure: Regenerate.
350 * configure.ac: Use AC_CHECK_GELF.
351 * lto-symtab.c: Include gelf.h.
352 (get_string_table): Use size independent API.
353 (printTable): Use lld to print 64 bit integers.
355 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
357 * lto-symtab.c (parse_table_entry): Assert entry->kind and
358 entry->visibility are valid.
360 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
361 * lto-symtab.c (table_entry): Add comdat.
362 (parse_table_entry): Read comdat.
364 2008-08-21 Rafael Espindola <espindola@google.com>