1 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
3 * lto-plugin.c (add_input_library): New.
4 (all_symbols_read_handler): Use add_input_library for items that
6 (process_option): Fit in 80 columns.
7 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
9 2009-10-02 Diego Novillo <dnovillo@google.com>
11 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
12 and -D_FILE_OFFSET_BITS=64.
13 * configure.ac: Add AC_SYS_LARGEFILE.
14 * configure: Regenerate.
15 * Makefile.in: Regenerate.
16 * lto-plugin.c: Fix copyright boilerplate.
18 2009-10-02 Diego Novillo <dnovillo@google.com>
20 * Makefile.am (ACLOCAL_AMFLAGS): Define.
21 * aclocal.m4: Regenerate with aclocal-2.64
22 * acinclude.m4: Remove.
23 * Makefile.in: Regenerate with automake-1.11
24 * configure.ac (AC_PREREQ): Update to 2.64.
25 * configure: Regenerate.
27 2009-10-02 Diego Novillo <dnovillo@google.com>
29 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
30 and -D_FILE_OFFSET_BITS=64.
31 * configure.ac: Add AC_SYS_LARGEFILE.
32 * configure: Regenerate.
33 * Makefile.in: Regenerate.
34 * lto-plugin.c: Fix copyright boilerplate.
36 2009-10-02 Diego Novillo <dnovillo@google.com>
38 * Makefile.am (ACLOCAL_AMFLAGS): Define.
39 * aclocal.m4: Regenerate with aclocal-2.64
40 * acinclude.m4: Remove.
41 * Makefile.in: Regenerate with automake-1.11
42 * configure.ac (AC_PREREQ): Update to 2.64.
43 * configure: Regenerate.
45 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
47 * Makefile.am (liblto_plugin_la_SOURCES): Remove
48 $(top_srcdir)/../gcc/lto/common.c
49 * Makefile.in: Regenerate.
51 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
53 * lto-plugin.c (pass_through_items): New.
54 (num_pass_through_items): New.
55 (all_symbols_read_handler): Update to use the -pass-through option.
56 (process_option): Replace -libgcc with -pass-through.
58 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
60 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
61 register_cleanup to be set.
63 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
65 * Makefile.am: Remove all reference to ltosymtab.
66 * Makefile.in: Regenerate.
67 * lto-symtab.c: Remove.
69 2009-05-21 Diego Novillo <dnovillo@google.com>
71 * configure.ac: Remove call to AC_CHECK_GELF.
72 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
73 * acinclude.m4: Do not include ../config/libelf.m4
74 * Makefile.am (LIBELFLIBS): Define.
76 (AM_CPPFLAGS): Add $(LIBELFINC).
77 (ltosymtab_LDADD): Add $(LIBELFLIBS).
78 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
79 * lto-plugin.c: Always include <gelf.h>
80 * lto-symtab.c: Likewise.
81 * configure: Regenerate.
82 * Makefile.in: Regenerate.
84 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
86 * lto-plugin.c (libgcc_filename): New.
87 (all_symbols_read_handler): Pass libgcc to the linker.
88 (all_symbols_read_handler): Parse -libgcc
90 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
92 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
93 * Makefile.in: Regenerate.
94 * lto-plugin.c (add_output_files): Argument is now a FILE.
95 (exec_lto_wrapper): Use writeargv and pex.
97 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
100 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
101 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
104 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
106 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
108 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
110 * lto-plugin.c: Include libiberty.h.
111 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
114 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
116 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
119 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
121 * lto-plugin.c (plugin_file_info): Remove fd and elf.
122 (parse_table_entry): strdup entry->name and entry->comdat_key.
123 (free_1): Free name and comdat_key. Don't close the file. Don't call
125 (claim_file_handler): Always call elf_end.
127 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
129 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
130 -D_FILE_OFFSET_BITS=64
131 * Makefile.in: Regenerate
133 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
135 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
136 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
137 * Makefile.in: Regenerate.
138 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
139 * configure: Regenerate.
140 * configure.ac: Add AC_SUBST(target_noncanonical).
142 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
144 * lto-plugin.c: Include stdbool.h.
145 (debug, nop): Declare as bool.
147 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
149 * lto-plugin.c (nop): New.
150 (use_original_files): New.
151 (all_symbols_read_handler): Call use_original_files if nop is true.
152 (process_option): Parse the -nop option.
154 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
156 * lto-plugin.c (debug): New.
157 (exec_lto_wrapper): Print argv if debug is true.
158 (process_option): Process the -debug command line option.
160 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
162 * lto-plugin.c (process_option): The argument is now a single option,
163 not a space separated list.
165 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
167 * lto-plugin.c: Include sys/types.h and sys/wait.h
168 (output_files, num_output_files, lto_wrapper_argv,
169 lto_wrapper_num_args): New.
170 (free_2): Free output_files.
171 (write_resolution): Disable.
172 (add_output_files): New.
173 (exec_lto_wrapper): New.
174 (all_symbols_read_handler): Run lto-wrapper.
175 (claim_file_handler): Free lto_file.name and call elf_end.
176 (process_option): New.
178 2008-11-26 Rafael Espindola <espindola@google.com>
180 * lto-plugin.c (add_input_file): New.
181 (get_section): Return NULL if get_section fails.
182 (write_resolution): New.
183 (all_symbols_read_handler): Call add_input_file.
184 (claim_file_handler): Unlink the correct file.
185 (onload): Record add_input_file.
187 2008-09-23 Rafael Espindola <espindola@google.com>
189 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
190 Update the location of common.c.
191 * Makefile.in: Regenerate.
192 * common.c: Moved to gcc/lto.
193 * common.h: Moved to gcc/lto.
194 * lto-plugin.c: Update the location of common.h.
195 * lto-symtab.c: Update the location of common.h.
197 2008-09-23 Rafael Espindola <espindola@google.com>
199 * common.c: Include common.h.
200 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
202 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
205 2008-09-23 Rafael Espindola <espindola@google.com>
207 * lto-plugin.c (plugin_file_info): Add temp.
208 (cleanup_handler): Only delete temporary files.
209 (claim_file_handler): Initialize lto_file.temp.
211 2008-09-23 Rafael Espindola <espindola@google.com>
213 * plugin-api.h: Moved to include.
215 2008-09-23 Rafael Espindola <espindola@google.com>
217 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
220 2008-09-22 Rafael Espindola <espindola@google.com>
222 * plugin-api.h: Copy from binutils' cvs.
224 2008-09-22 Rafael Espindola <espindola@google.com>
226 * lto-symtab.c (get_symbols, add_symbols): Update signature.
227 * plugin-api.h: Copy from binutils' cvs.
229 2008-09-22 Rafael Espindola <espindola@google.com>
231 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
234 2008-09-10 Rafael Espindola <espindola@google.com>
236 * lto-plugin.c (onload): add missing break statements and asserts.
237 * lto-symtab.c (claim_file_handler): Make it static.
238 (all_symbols_read_handler): Make it static.
239 (all_file_handles): Make it static.
240 (num_file_handles): Make it static.
241 (register_claim_file): Make it static.
242 (register_object): Indent properly.
244 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
246 * Makefile.am (ltosymtab_LDADD): Add -lelf.
247 * Makefiel.in: Regenerate.
248 * lto-plugin.c: Include ar.h.
249 (claim_file_handler): Handle file->offset != 0.
250 * lto-symtab.c: Include gelf.h.
251 (all_file_handles): Change type.
252 (register_object): New.
253 (register_file): Add support for archives.
254 (resolve): Update to new type of all_file_handles.
255 (print): Update to new type of all_file_handles.
256 (free_all): Update to new type of all_file_handles.
257 (main): Update to new type of all_file_handles.
259 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
261 * lto-plugin.c (get_string_table): Remove.
262 (get_section): Use elf_strptr instead of get_string_table.
264 2008-09-08 Doug Kwan <dougkwan@google.com>
266 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
267 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
269 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
271 * Makefile.am (ltosymtab_SOURCES): add common.c.
272 (ltosymtab_CFLAGS): New.
273 (liblto_plugin_la_SOURCES): Add common.c.
274 * Makefile.in: Regenerate.
277 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
278 (plugin_symtab): New.
279 (plugin_file_info): New.
280 (register_all_symbols_read): New.
282 (claimed_files): New.
283 (num_claimed_files): New.
284 (translate): Don't drop the slot number.
287 (all_symbols_read_handler): New.
288 (claim_file_handler): Record every claimed file.
289 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
291 * lto-symtab.c: Include stdlib.h, string.h and common.h.
292 (current_file_handle): Remove.
293 (ld_plugin_all_symbols_read_handler): New.
294 (plugin_handle): New.
296 (all_file_handles): New.
297 (num_file_handles): New.
299 (register_all_symbols_read): New.
300 (add_symbols): Don't print the symbols, just record them.
301 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
303 (load_plugin): Use plugin_handle.
304 (register_file): Add the file handle to all_file_handles.
307 (unload_plugin): New.
309 (main): Call all_symbols_read_handler and free resources.
311 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
313 * Makefile.am (AM_CFLAGS): New.
314 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
315 (lib_LTLIBRARIES): New.
316 (liblto_plugin_la_SOURCES): New.
317 (liblto_plugin_la_LIBADD): New.
318 * Makefile.in: Regenerate.
319 * acinclude.m4: Don't include ../config/acx.m4 and
320 ../config/no-executables.m4.
321 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
323 * aclocal.m4: Regenerate.
324 * configure: Regenerate.
325 * configure.ac: Use AM_PROG_LIBTOOL.
327 * lto-symtab.c: Rewrite to use the plugin.
330 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
332 * configure: Regenerate.
333 * configure.ac: Use AC_CHECK_GELF.
334 * lto-symtab.c: Include gelf.h.
335 (get_string_table): Use size independent API.
336 (printTable): Use lld to print 64 bit integers.
338 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
340 * lto-symtab.c (parse_table_entry): Assert entry->kind and
341 entry->visibility are valid.
343 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
344 * lto-symtab.c (table_entry): Add comdat.
345 (parse_table_entry): Read comdat.
347 2008-08-21 Rafael Espindola <espindola@google.com>