1 2009-10-02 Diego Novillo <dnovillo@google.com>
3 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
4 and -D_FILE_OFFSET_BITS=64.
5 * configure.ac: Add AC_SYS_LARGEFILE.
6 * configure: Regenerate.
7 * Makefile.in: Regenerate.
8 * lto-plugin.c: Fix copyright boilerplate.
10 2009-10-02 Diego Novillo <dnovillo@google.com>
12 * Makefile.am (ACLOCAL_AMFLAGS): Define.
13 * aclocal.m4: Regenerate with aclocal-2.64
14 * acinclude.m4: Remove.
15 * Makefile.in: Regenerate with automake-1.11
16 * configure.ac (AC_PREREQ): Update to 2.64.
17 * configure: Regenerate.
19 2009-10-02 Diego Novillo <dnovillo@google.com>
21 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
22 and -D_FILE_OFFSET_BITS=64.
23 * configure.ac: Add AC_SYS_LARGEFILE.
24 * configure: Regenerate.
25 * Makefile.in: Regenerate.
26 * lto-plugin.c: Fix copyright boilerplate.
28 2009-10-02 Diego Novillo <dnovillo@google.com>
30 * Makefile.am (ACLOCAL_AMFLAGS): Define.
31 * aclocal.m4: Regenerate with aclocal-2.64
32 * acinclude.m4: Remove.
33 * Makefile.in: Regenerate with automake-1.11
34 * configure.ac (AC_PREREQ): Update to 2.64.
35 * configure: Regenerate.
37 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
39 * Makefile.am (liblto_plugin_la_SOURCES): Remove
40 $(top_srcdir)/../gcc/lto/common.c
41 * Makefile.in: Regenerate.
43 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
45 * lto-plugin.c (pass_through_items): New.
46 (num_pass_through_items): New.
47 (all_symbols_read_handler): Update to use the -pass-through option.
48 (process_option): Replace -libgcc with -pass-through.
50 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
52 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
53 register_cleanup to be set.
55 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
57 * Makefile.am: Remove all reference to ltosymtab.
58 * Makefile.in: Regenerate.
59 * lto-symtab.c: Remove.
61 2009-05-21 Diego Novillo <dnovillo@google.com>
63 * configure.ac: Remove call to AC_CHECK_GELF.
64 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
65 * acinclude.m4: Do not include ../config/libelf.m4
66 * Makefile.am (LIBELFLIBS): Define.
68 (AM_CPPFLAGS): Add $(LIBELFINC).
69 (ltosymtab_LDADD): Add $(LIBELFLIBS).
70 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
71 * lto-plugin.c: Always include <gelf.h>
72 * lto-symtab.c: Likewise.
73 * configure: Regenerate.
74 * Makefile.in: Regenerate.
76 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
78 * lto-plugin.c (libgcc_filename): New.
79 (all_symbols_read_handler): Pass libgcc to the linker.
80 (all_symbols_read_handler): Parse -libgcc
82 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
84 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
85 * Makefile.in: Regenerate.
86 * lto-plugin.c (add_output_files): Argument is now a FILE.
87 (exec_lto_wrapper): Use writeargv and pex.
89 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
92 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
93 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
96 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
98 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
100 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
102 * lto-plugin.c: Include libiberty.h.
103 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
106 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
108 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
111 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
113 * lto-plugin.c (plugin_file_info): Remove fd and elf.
114 (parse_table_entry): strdup entry->name and entry->comdat_key.
115 (free_1): Free name and comdat_key. Don't close the file. Don't call
117 (claim_file_handler): Always call elf_end.
119 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
121 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
122 -D_FILE_OFFSET_BITS=64
123 * Makefile.in: Regenerate
125 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
127 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
128 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
129 * Makefile.in: Regenerate.
130 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
131 * configure: Regenerate.
132 * configure.ac: Add AC_SUBST(target_noncanonical).
134 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
136 * lto-plugin.c: Include stdbool.h.
137 (debug, nop): Declare as bool.
139 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
141 * lto-plugin.c (nop): New.
142 (use_original_files): New.
143 (all_symbols_read_handler): Call use_original_files if nop is true.
144 (process_option): Parse the -nop option.
146 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
148 * lto-plugin.c (debug): New.
149 (exec_lto_wrapper): Print argv if debug is true.
150 (process_option): Process the -debug command line option.
152 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
154 * lto-plugin.c (process_option): The argument is now a single option,
155 not a space separated list.
157 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
159 * lto-plugin.c: Include sys/types.h and sys/wait.h
160 (output_files, num_output_files, lto_wrapper_argv,
161 lto_wrapper_num_args): New.
162 (free_2): Free output_files.
163 (write_resolution): Disable.
164 (add_output_files): New.
165 (exec_lto_wrapper): New.
166 (all_symbols_read_handler): Run lto-wrapper.
167 (claim_file_handler): Free lto_file.name and call elf_end.
168 (process_option): New.
170 2008-11-26 Rafael Espindola <espindola@google.com>
172 * lto-plugin.c (add_input_file): New.
173 (get_section): Return NULL if get_section fails.
174 (write_resolution): New.
175 (all_symbols_read_handler): Call add_input_file.
176 (claim_file_handler): Unlink the correct file.
177 (onload): Record add_input_file.
179 2008-09-23 Rafael Espindola <espindola@google.com>
181 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
182 Update the location of common.c.
183 * Makefile.in: Regenerate.
184 * common.c: Moved to gcc/lto.
185 * common.h: Moved to gcc/lto.
186 * lto-plugin.c: Update the location of common.h.
187 * lto-symtab.c: Update the location of common.h.
189 2008-09-23 Rafael Espindola <espindola@google.com>
191 * common.c: Include common.h.
192 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
194 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
197 2008-09-23 Rafael Espindola <espindola@google.com>
199 * lto-plugin.c (plugin_file_info): Add temp.
200 (cleanup_handler): Only delete temporary files.
201 (claim_file_handler): Initialize lto_file.temp.
203 2008-09-23 Rafael Espindola <espindola@google.com>
205 * plugin-api.h: Moved to include.
207 2008-09-23 Rafael Espindola <espindola@google.com>
209 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
212 2008-09-22 Rafael Espindola <espindola@google.com>
214 * plugin-api.h: Copy from binutils' cvs.
216 2008-09-22 Rafael Espindola <espindola@google.com>
218 * lto-symtab.c (get_symbols, add_symbols): Update signature.
219 * plugin-api.h: Copy from binutils' cvs.
221 2008-09-22 Rafael Espindola <espindola@google.com>
223 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
226 2008-09-10 Rafael Espindola <espindola@google.com>
228 * lto-plugin.c (onload): add missing break statements and asserts.
229 * lto-symtab.c (claim_file_handler): Make it static.
230 (all_symbols_read_handler): Make it static.
231 (all_file_handles): Make it static.
232 (num_file_handles): Make it static.
233 (register_claim_file): Make it static.
234 (register_object): Indent properly.
236 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
238 * Makefile.am (ltosymtab_LDADD): Add -lelf.
239 * Makefiel.in: Regenerate.
240 * lto-plugin.c: Include ar.h.
241 (claim_file_handler): Handle file->offset != 0.
242 * lto-symtab.c: Include gelf.h.
243 (all_file_handles): Change type.
244 (register_object): New.
245 (register_file): Add support for archives.
246 (resolve): Update to new type of all_file_handles.
247 (print): Update to new type of all_file_handles.
248 (free_all): Update to new type of all_file_handles.
249 (main): Update to new type of all_file_handles.
251 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
253 * lto-plugin.c (get_string_table): Remove.
254 (get_section): Use elf_strptr instead of get_string_table.
256 2008-09-08 Doug Kwan <dougkwan@google.com>
258 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
259 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
261 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
263 * Makefile.am (ltosymtab_SOURCES): add common.c.
264 (ltosymtab_CFLAGS): New.
265 (liblto_plugin_la_SOURCES): Add common.c.
266 * Makefile.in: Regenerate.
269 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
270 (plugin_symtab): New.
271 (plugin_file_info): New.
272 (register_all_symbols_read): New.
274 (claimed_files): New.
275 (num_claimed_files): New.
276 (translate): Don't drop the slot number.
279 (all_symbols_read_handler): New.
280 (claim_file_handler): Record every claimed file.
281 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
283 * lto-symtab.c: Include stdlib.h, string.h and common.h.
284 (current_file_handle): Remove.
285 (ld_plugin_all_symbols_read_handler): New.
286 (plugin_handle): New.
288 (all_file_handles): New.
289 (num_file_handles): New.
291 (register_all_symbols_read): New.
292 (add_symbols): Don't print the symbols, just record them.
293 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
295 (load_plugin): Use plugin_handle.
296 (register_file): Add the file handle to all_file_handles.
299 (unload_plugin): New.
301 (main): Call all_symbols_read_handler and free resources.
303 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
305 * Makefile.am (AM_CFLAGS): New.
306 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
307 (lib_LTLIBRARIES): New.
308 (liblto_plugin_la_SOURCES): New.
309 (liblto_plugin_la_LIBADD): New.
310 * Makefile.in: Regenerate.
311 * acinclude.m4: Don't include ../config/acx.m4 and
312 ../config/no-executables.m4.
313 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
315 * aclocal.m4: Regenerate.
316 * configure: Regenerate.
317 * configure.ac: Use AM_PROG_LIBTOOL.
319 * lto-symtab.c: Rewrite to use the plugin.
322 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
324 * configure: Regenerate.
325 * configure.ac: Use AC_CHECK_GELF.
326 * lto-symtab.c: Include gelf.h.
327 (get_string_table): Use size independent API.
328 (printTable): Use lld to print 64 bit integers.
330 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
332 * lto-symtab.c (parse_table_entry): Assert entry->kind and
333 entry->visibility are valid.
335 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
336 * lto-symtab.c (table_entry): Add comdat.
337 (parse_table_entry): Read comdat.
339 2008-08-21 Rafael Espindola <espindola@google.com>