]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/ChangeLog
Fix PR lto/49664: liblto_plugin.so exports too many symbols
[thirdparty/gcc.git] / lto-plugin / ChangeLog
CommitLineData
90708f87
GA
12021-06-25 Richard Biener <rguenther@suse.de>
2
3 * lto-plugin.c (ltrans_objects): New global.
4 (all_symbols_read_handler): If -ltrans-objects was specified,
5 add the output files from the specified file directly.
6 (process_option): Handle -ltrans-objects.
7
aa891c56
GA
82021-05-10 Martin Liska <mliska@suse.cz>
9
10 * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
11 (LTO_SYMTAB_PREFIX): Likewise.
12 (LTO_SYMTAB_PREFIX_LEN): Likewise.
13 (LTO_SYMTAB_EXT_PREFIX): Likewise.
14 (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
15 (LTO_LTO_PREFIX): Likewise.
16 (LTO_LTO_PREFIX_LEN): Likewise.
17 (OFFLOAD_SECTION): Likewise.
18 (OFFLOAD_SECTION_LEN): Likewise.
19 (startswith): New function.
20 (all_symbols_read_handler): Use it.
21 (process_symtab): Likewise.
22 (process_symtab_extension): Likewise.
23 (process_offload_section): Likewise.
24 (process_option): Likewise.
25
e690396d
GA
262021-05-03 H.J. Lu <hjl.tools@gmail.com>
27
28 PR bootstrap/99703
29 * configure: Regenerated.
30
c1ef0c92
GA
312021-04-21 Martin Liska <mliska@suse.cz>
32
33 * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
34
651b8a50
GA
352021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
36
37 * configure: Re-generate.
38
a9625c50
GA
392020-11-29 John David Anglin <danglin@gcc.gnu.org>
40
41 * configure: Regenerate.
42
360258da
GA
432020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
44
45 * Makefile.am: Avoid using sanitizer.
46 * Makefile.in: Regenerate.
47
fdcc0283
GA
482020-09-10 Jonathan Yong <10walls@gmail.com>
49
50 * Makefile.am: drop versioning from libtool completely.
51 * Makefile.in: regenerate.
52
80f86e78
GA
532020-09-09 Nick Clifton <nickc@redhat.com>
54
55 * lto-plugin.c (struct plugin_symtab): Add last_sym field.
56 (parse_symtab_extension): Only read as many entries as are
57 available in the buffer. Store the data read into the symbol
58 table indexed from last_sym. Increment last_sym.
59
d48cca8f
GA
602020-07-30 H.J. Lu <hjl.tools@gmail.com>
61
62 PR bootstrap/96202
63 * configure: Regenerated.
64
885ef72f
GA
652020-05-29 H.J. Lu <hjl.tools@gmail.com>
66
67 PR bootstrap/95413
68 * configure: Regenerated.
69
c3a4169b
GA
702020-05-26 Alexandre Oliva <oliva@adacore.com>
71
72 * lto-plugin.c (skip_in_suffix): New.
73 (exec_lto_wrapper): Use skip_in_suffix and concat to build
74 non-temporary output names.
75 (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
76 override link_output_name with it.
77
d17cdc17
L
782020-05-12 H.J. Lu <hongjiu.lu@intel.com>
79
80 PR bootstrap/94998
81 * configure: Regenerated.
82
5269b246
EB
832020-05-05 Eric Botcazou <ebotcazou@adacore.com>
84
85 * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
86 (linker_output_set): Change type to bool.
87 (linker_output_known): Likewise.
88 (linker_output_auto_nolto_rel): New variable.
89 (all_symbols_read_handler): Take it into account.
90 <LDPO_REL>: Do not issue the warning if it is set.
91 (process_option): Process -linker-output-auto-notlo-rel.
92 (cleanup_handler): Remove unused variable.
93 (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
94
eedc73a2
L
952020-04-28 H.J. Lu <hongjiu.lu@intel.com>
96
97 PR bootstrap/94739
98 * configure: Regenerated.
99
8fc8bf80
L
1002020-04-25 H.J. Lu <hongjiu.lu@intel.com>
101
102 PR bootstrap/94739
103 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
104 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
105 AC_SUBST(CET_HOST_FLAGS).
106 * Makefile.in: Regenerated.
107 * aclocal.m4: Likewise.
108 * configure: Likewise.
109
c8429c2a
ML
1102020-03-19 Martin Liska <mliska@suse.cz>
111
112 * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
113 (LTO_SYMTAB_PREFIX): ... this.
114 (LTO_SECTION_PREFIX_LEN): Rename to ...
115 (LTO_SYMTAB_PREFIX_LEN): ... this.
116 (LTO_SYMTAB_EXT_PREFIX): New.
117 (LTO_SYMTAB_EXT_PREFIX_LEN): New.
118 (LTO_LTO_PREFIX): New.
119 (LTO_LTO_PREFIX_LEN): New.
120 (parse_table_entry): Fill up unused to zero.
121 (parse_table_entry_extension): New.
122 (parse_symtab_extension): New.
123 (finish_conflict_resolution): Change type
124 for resolution.
125 (process_symtab): Use new macro name.
126 (process_symtab_extension): New.
127 (claim_file_handler): Parse also process_symtab_extension.
128 (onload): Call new add_symbols_v2.
129
8d9254fc
JJ
1302020-01-01 Jakub Jelinek <jakub@redhat.com>
131
132 Update copyright years.
133
e9085da5
MR
1342019-09-27 Maciej W. Rozycki <macro@wdc.com>
135
136 * configure: Regenerate.
137
2e97dfdd
IS
1382019-05-15 Iain Sandoe <iain@sandoe.co.uk>
139
140 * lto-plugin.c (cleanup_handler): Remove unused var.
141
c101cff8
IS
1422019-05-15 Iain Sandoe <iain@sandoe.co.uk>
143
144 * lto-plugin.c (exec_lto_wrapper): Make the wrapper
145 arguments filename more user-friendly.
146 (file_exists, maybe_unlink): New.
147 (cleanup_handler): Use maybe unlink to handle the
148 case when temps should be saved.
149 (process_option): Look for -v, —-version, -save-temps.
150 (onload): Record the linker output file name.
151 Check for -v, —-version, -save-temps in the GCC collect
152 options environment.
153
24f0c842
ML
1542019-02-26 Martin Liska <mliska@suse.cz>
155
156 * lto-symtab.c: Remove.
157
a5544970
JJ
1582019-01-01 Jakub Jelinek <jakub@redhat.com>
159
160 Update copyright years.
161
22e05272
JM
1622018-10-31 Joseph Myers <joseph@codesourcery.com>
163
164 PR bootstrap/82856
165 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
166 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
167
de54061d
JH
1682018-05-30 Jan Hubicka <jh@suse.cz>
169
170 * lto-plugin.c: (non_claimed_files): New static var.
171 (linker_ouput_known): New static var.
172 (all_symbols_read_handler): When user specifies linker output do not
173 imply it; output warning when nonlto-rel mode is forced.
174 (claim_file_header): Record number of nonclaimed files.
175 (process_option): Remember if linker output is known
176
001ddaa8
DM
1772018-04-18 David Malcolm <dmalcolm@redhat.com>
178
179 PR jit/85384
180 * configure: Regenerate.
181
85ec4feb
JJ
1822018-01-03 Jakub Jelinek <jakub@redhat.com>
183
184 Update copyright years.
185
5c2dee6f
GJL
1862017-07-21 Georg-Johann Lay <avr@gjlay.de>
187
188 PR lto/81487
189 * lto-plugin.c (claim_file_handler): Use xasprintf instead of
190 asprintf.
191 [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
192
3c36aa6b
JJ
1932017-01-17 Jakub Jelinek <jakub@redhat.com>
194
195 PR other/79046
196 * configure.ac: Add GCC_BASE_VER.
197 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
198 get version from BASE-VER file.
199 * configure: Regenerated.
200 * Makefile.in: Regenerated.
201
2afd3180
JJ
2022017-01-04 Jakub Jelinek <jakub@redhat.com>
203
204 Update copyright years.
205
84c1b9d3
MK
2062016-11-15 Matthias Klose <doko@ubuntu.com>
207
208 * configure: Regenerate.
209
e6861a99
IV
2102016-02-25 Ilya Verbin <ilya.verbin@intel.com>
211
212 PR driver/68463
213 * lto-plugin.c (struct plugin_offload_file): New.
214 (offload_files): Change type.
215 (offload_files_last, offload_files_last_obj): New.
216 (offload_files_last_lto): New.
217 (free_2): Adjust accordingly.
218 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
219 Don't call free_1 for offload_files. Write names of object files with
220 offloading to the temporary file. Add new option to lto_arg_ptr.
221 (claim_file_handler): Don't claim file if it contains offload sections
222 without LTO sections. If it contains offload sections, add to the list.
223
aea40b08
ML
2242016-01-15 Martin Liska <mliska@suse.cz>
225
226 * lto-plugin.c (all_symbols_read_handler): Assign default
227 value to a string variable.
228
1ff9ed6f
JH
2292015-11-25 Jan Hubicka <jh@suse.cz>
230
231 PR lto/67548
232 * lto-plugin.c (linker_output, linker_output_set): New statics.
233 (all_symbols_read_handler): Add -flinker-output option.
234 (onload): Record linker_output info.
235
dcbc9df9
UB
2362015-07-02 Uros Bizjak <ubizjak@gmail.com>
237
238 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
239 * configure: Regenerate.
240 * config.h.in: Ditto.
241
ed9b4ae3
MH
2422015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
243
244 * Makefile.am: Drop 'by automake version' from top-level comment.
245 * Makefile.in: Regenerated with automake-1.11.6.
246 * aclocal.m4: Likewise.
247 * configure: Likewise.
248
514ba9e4
L
2492015-02-06 H.J. Lu <hongjiu.lu@intel.com>
250
251 * lto-plugin.c (release_input_file): Removed.
252 (claim_file_handler): Don't call release_input_file.
253 (onload): Don't set release_input_file.
254
11c17039
L
2552015-02-05 H.J. Lu <hongjiu.lu@intel.com>
256
257 * lto-plugin.c (claim_file_handler): Pass handle to
258 release_input_file.
259
06fa4f00
L
2602015-02-05 H.J. Lu <hongjiu.lu@intel.com>
261
262 * lto-plugin.c (claim_file_handler): Call release_input_file only
263 if file is claimed.
264
380c25ea
L
2652015-01-28 H.J. Lu <hongjiu.lu@intel.com>
266
267 * lto-plugin.c (claim_file_handler): Call release_input_file only
268 if it is not NULL.
269
1e081eda
L
2702015-01-28 H.J. Lu <hongjiu.lu@intel.com>
271
272 PR lto/64837
273 * lto-plugin.c (release_input_file): New.
274 (claim_file_handler): Call release_input_file.
275 (onload): Set release_input_file.
276
443743fd
IV
2772014-12-09 Ilya Verbin <ilya.verbin@intel.com>
278
279 * lto-plugin.c (offload_files, num_offload_files): New static variables.
280 (free_1): Use arguments instead of global variables.
281 (free_2): Free offload_files.
282 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
283 arguments.
284 (claim_file_handler): Do not add file to claimed_files if it contains
285 offload sections without LTO sections. Add it to offload_files instead.
286
a699d672
L
2872014-11-21 H.J. Lu <hongjiu.lu@intel.com>
288
289 PR bootstrap/63784
290 * configure: Regenerated.
291
fc8b3540
IV
2922014-11-13 Ilya Verbin <ilya.verbin@intel.com>
293 Bernd Schmidt <bernds@codesourcery.com>
294 Andrey Turetskiy <andrey.turetskiy@intel.com>
295 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
296
297 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
298 (struct plugin_objfile): Add new field "offload".
299 (process_offload_section): New static function.
300 (claim_file_handler): Claim file if it contains offload sections.
301
85c64bbe
BS
3022014-11-13 Bernd Schmidt <bernds@codesourcery.com>
303 Thomas Schwinge <thomas@codesourcery.com>
304 Ilya Verbin <ilya.verbin@intel.com>
305 Andrey Turetskiy <andrey.turetskiy@intel.com>
306
307 * Makefile.am (libexecsubdir): Tweak for the possibility of being
308 configured for offload compiler.
309 (accel_dir_suffix, real_target_noncanonical): New variables substituted
310 by configure.
311 * Makefile.in: Regenerate.
312 * configure: Regenerate.
313 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
314 variables.
315
ebf6d33b
FXC
3162014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
317
318 PR target/63610
319 * configure: Regenerate.
320
43f4a446
L
3212014-08-26 H.J. Lu <hongjiu.lu@intel.com>
322
323 PR bootstrap/62260
324 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
325 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
326 $host_subdir.
327 * Makefile.in: Regenerated.
328 * configure: Likewise.
329
2a7a8388
TS
3302014-06-13 Thomas Schwinge <thomas@codesourcery.com>
331
332 * configure.ac (--with-libiberty): New configure option.
333 * configure: Regenerate.
334 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
335 variables.
336 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
337 (liblto_plugin_la_DEPENDENCIES): Use them.
338 * Makefile.in: Regenerate.
339
a2555c65
RO
3402014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
341
342 PR lto/60981
343 * configure.ac: Check for -static-libgcc.
344 * configure: Regenerate.
345
ffe7f7a7
JJ
3462014-04-17 Jakub Jelinek <jakub@redhat.com>
347
4f148bbc
JJ
348 PR sanitizer/56781
349 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
350 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
351 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
352 over ../libiberty/pic/libiberty.a if the former exists.
353 * Makefile.in: Regenerated.
354
ffe7f7a7
JJ
355 PR sanitizer/56781
356 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
357 * Makefile.in: Regenerated.
358
21b624f0
RB
3592014-04-02 Richard Biener <rguenther@suse.de>
360
361 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
362 is set in COLLECT_GCC_OPTIONS.
363
2486c24a
RB
3642014-03-28 Richard Biener <rguenther@suse.de>
365
366 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
367
5523efdf
RO
3682014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
369
370 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
371 for gcc.
372 * configure: Regenerate.
373 * Makefile.am (AM_LDFLAGS): New variable.
374 (liblto_plugin_la_LDFLAGS): Add it.
375 * Makefile.in: Regenerate.
376
3cbe17f7
AM
3772013-09-20 Alan Modra <amodra@gmail.com>
378
379 * configure: Regenerate.
380
de973ab7
DE
3812012-09-14 David Edelsohn <dje.gcc@gmail.com>
382
383 * configure: Regenerated.
384
3f417959
JM
3852012-05-29 Joseph Myers <joseph@codesourcery.com>
386
387 * lto-plugin.c: Fix typo.
388
e6d5f8c9
L
3892012-05-16 H.J. Lu <hongjiu.lu@intel.com>
390
391 * configure: Regenerated.
392
8cfa7899
KT
3932012-02-22 Kai Tietz <ktietz@redhat.com>
394
395 PR lto/50616
396 * lto-plugin.c (PRI_LL): New macro.
397 (dump_symtab): Use PRI_LL instead of ll in print.
398 (process_symtab): Use PRI_LL instead of ll in scan.
399
4a5e00ca
AS
4002011-12-20 Andreas Schwab <schwab@linux-m68k.org>
401
402 * configure: Regenerate.
403
095af58f
AS
4042011-12-19 Andreas Schwab <schwab@linux-m68k.org>
405
406 * configure: Regenerate.
407
c6084f68
AT
4082011-11-21 Andreas Tobler <andreast@fgznet.ch>
409
410 * configure: Regenerate.
411
ed0d2da0
JH
4122011-10-02 Jan Hubicka <jh@suse.cz>
413
414 PR lto/47247
415 * lto-plugin.c (get_symbols_v2): New variable.
416 (write_resolution): Use V2 API when available.
417 (onload): Handle LDPT_GET_SYMBOLS_V2.
418
ad7715f3
L
4192011-09-30 H.J. Lu <hongjiu.lu@intel.com>
420 Andi Kleen <ak@linux.intel.com>
421
422 PR lto/50568
423 * lto-plugin.c (sym_aux): Change id to unsigned long long.
424 (plugin_symtab): Likewise.
425 (dump_symtab): Likewise.
426 (resolve_conflicts): Likewise.
427 (process_symtab): Likewise.
428
f3016c47
RG
4292011-08-10 Richard Guenther <rguenther@suse.de>
430
431 PR bootstrap/49907
432 lto-plugin/
433 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
434 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
435 * configure: Regenerate.
436 * Makefile.in: Likewise.
437 * aclocal.m4: Likewise.
438
04695783
JM
4392011-04-20 Jim Meyering <meyering@redhat.com>
440
441 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
442
3b8c1a3f
RG
4432011-04-05 Richard Guenther <rguenther@suse.de>
444
445 PR bootstrap/48431
446 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
447
029c8f3e
RW
4482011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
449
450 * Makefile.in: Regenerate.
451 * aclocal.m4: Regenerate.
452 * configure: Regenerate.
453
3917813c
RW
4542011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
455
456 * Makefile.am (all-local): Rename from 'all'.
457 * Makefile.in: Regenerate.
458
f3d533d3
AO
4592011-02-12 Alexandre Oliva <aoliva@redhat.com>
460
461 PR lto/47225
462 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
463 (liblto_plugin_la_LDFLAGS): Add -module.
464 (copy_lto_plugin): Renamed to...
465 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
466 of static modules.
467 * Makefile.in: Rebuild.
468
f43c3935
KT
4692011-02-07 Kai Tietz <kai.tietz@onevision.com>
470
471 PR lto/47225
472 * Makefile.am (Wc): New helper for encoding -Wc,.
473 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
474 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
475 * Makefile.in: Regenerated.
476
e6d926d7
PB
4772011-02-07 Paolo Bonzini <bonzini@gnu.org>
478
479 Revert:
480
481 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
482
483 PR lto/47225
484 * Makefile.am (Wl): New helper for encoding -Wl,.
485 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
486 * Makefile.in: Regenerated.
487
c7b5125d
KT
4882011-02-07 Kai Tietz <kai.tietz@onevision.com>
489
490 PR lto/47225
491 * Makefile.am (Wl): New helper for encoding -Wl,.
492 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
493 * Makefile.in: Regenerated.
494
e3bb089d
ILT
4952011-01-25 Ian Lance Taylor <iant@google.com>
496
497 * lto-plugin.c (gold_version): New static variable.
498 (all_symbols_read_handler): Don't check pass_through_items if
499 using gold 1.11 or later.
500 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
501
47782a9d
RG
5022011-01-12 Richard Guenther <rguenther@suse.de>
503
504 PR lto/47264
505 * lto-plugin.c (parse_table_entry): Use memcpy to access
506 unaligned fields.
507
5b64bab9
DK
5082010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
509
510 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
511 * Makefile.in: Regenerate.
512
be3ea0c8
RO
5132010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
514
515 Revert last change.
516
dd8587d6
RO
5172010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
518
519 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
520 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
521 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
522 * Makefile.in: Regenerate.
523
77754180
DK
5242010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
525
526 PR middle-end/46674
527 PR lto/43157
528 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
529 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
530 * configure: Regenerate.
531 * config.h.in: Likewise.
532
7de6ba7a
DK
5332010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
534
535 PR target/40125
536 PR lto/46695
537 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
538 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
539 override -bindir setting.
540 * aclocal.m4: Regenerate.
541 * configure: Regenerate.
542 * Makefile.in: Regenerate.
543
ec692d5f
KT
5442010-12-05 Kai Tietz <kai.tietz@onevision.com>
545
546 * config.h.in: Regenerated.
547 * configure: Regenerated.
548 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
549 * lto-plugin.c (WIFEXITED): Define default.
550 (WEXITSTATUS): Likeiwse.
551
a2254c5d
KT
5522010-12-01 Kai Tietz <kai.tietz@onevision.com>
553
554 * config.h.in: Regenerated.
555 * configure: Regenerated.
556 * Makefile.in: Regenerated.
557 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
558 * lto-plugin.c: Include sys/wait.h conditionally.
559 * aclocal.m4: Regenerated.
560
44538c62
KT
5612010-11-13 Kai Tietz <kai.tietz@onevision.com>
562
563 * lto-plugin.c (add_output_files): Fix memory leak.
564
d19e0f01
DK
5652010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
566
567 PR bootstrap/46397
568 PR bootstrap/46362
569 * configure.ac: Add AC_TYPE_INT64_T test.
570 * config.h.in: Regenerate.
571 * configure: Likewise.
572 * lto-plugin.c (debug): Use char not bool.
573 (nop): Likewise.
574 (check_1): Rename from check, and use int not bool for gate argument.
575 (check): Macro wrapper for the above to coerce gate argument into
576 boolean-valued integer in case it has pointer type.
577 (parse_table_entry): Use 0 not false.
578 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
579 into two 32-bit parts and printing as hex ints.
580
37da3688
DK
5812010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
582
583 PR lto/46291
584 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
585
48215350
DK
5862010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
587
588 PR lto/46273
589 * lto-plugin.h: Delete.
590 * lto-plugin-elf.c: Likewise.
591 * lto-plugin-coff.c: Likewise.
592 * configure.ac: Don't use libelf, don't source config.gcc.
593 (LIBELFLIBS): Delete.
594 (LIBELFINC): Delete.
595 (LTO_FORMAT): Delete.
596 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
597 (config.h): Add AC_CONFIG_HEADERS directive.
598 * Makefile.am (LIBELFLIBS): Delete.
599 (LIBELFINC): Delete.
600 (LTO_FORMAT): Delete.
601 (DEFS): Import.
602 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
603 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
604 any object-format-specific source file in the link.
605 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
606 * config.h.in: Generate.
607 * configure: Regenerate.
608 * Makefile.in: Likewise.
609 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
610 (LTO_SEGMENT_NAME): New definition.
611 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
612 (LTO_SECTION_PREFIX_LEN): New definition.
613 (struct sym_aux): Struct definition moved here from lto-plugin.h.
614 (struct plugin_symtab): Likewise.
615 (struct plugin_objfile): Likewise.
616 (struct plugin_objfile): New struct def.
617 (enum symbol_style): New enum type.
618 (add_symbols): Make static.
619 (claimed_files): Likewise.
620 (num_claimed_files): Likewise.
621 (sym_style): New global.
622 (check): Make static.
623 (parse_table_entry): Likewise. Respect sym_style when extracting
624 symbol from symtab entry.
625 (translate): Make static.
626 (resolve_conflicts): Likewise.
627 (process_symtab): New function, per-section callback version of
628 old object-format-specific handling from deleted lto-plugin-elf.c.
629 (claim_file_handler): Convert ELF-specific version from deleted
630 lto-plugin-elf.c to simple_object interface and move here.
631 (process_options): Allow new '-sym-style=' option.
632 (onload): Don't call deleted onload_format_checks hook.
633
9df2493c
KT
6342010-10-11 Kai Tietz <kai.tietz@onevision.com>
635
636 * lto-plugin.c (dump_symtab): Correct printf argument type.
637 (finish_conflict_resolution): Initialize resolution.
638
73d5e770
L
6392010-10-08 H.J. Lu <hongjiu.lu@intel.com>
640
641 PR bootstrap/45951
642 * configure.ac: Add AC_CANONICAL_SYSTEM.
643 * configure: Regenerated.
644
1cd0b716
DK
6452010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
646
647 * configure.ac: Source config.gcc to determine lto_binary_reader.
648 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
649 * Makefile.am (LTO_FORMAT): Import.
650 (liblto_plugin_la_SOURCES): Add object format dependent module
651 defined by LTO_FORMAT.
652 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
653 and work around libtool warning.
654 * configure: Regenerate.
655 * Makefile.in: Likewise.
656 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
657 (struct sym_aux): Likewise.
658 (struct plugin_symtab): Likewise.
659 (struct plugin_file_info): Likewise.
660 (LTO_SECTION_PREFIX): Likewise.
661 (add_symbols): Make non-static.
662 (claimed_files): Likewise.
663 (num_claimed_files): Likewise.
664 (check): Likewise.
665 (parse_table_entry): Likewise.
666 (translate): Likewise.
667 (resolve_conflicts): Likewise.
668 (process_symtab): Move to new lto-plugin-elf.c object format dependent
669 source file.
670 (claim_file_handler): Likewise, and make non-static.
671 (onload): Call new onload_format_checks function.
672 * lto-plugin.h: New file.
673 (LTO_SECTION_PREFIX): Move here.
674 (struct sym_aux): Likewise.
675 (struct plugin_symtab): Likewise.
676 (struct plugin_file_info): Likewise.
677 (claim_file_handler): Add new function prototype.
678 (onload_format_checks): Likewise.
679 (check): Declare extern.
680 (translate): Likewise.
681 (parse_table_entry): Likewise.
682 (resolve_conflicts): Likewise.
683 (add_symbols): Likewise.
684 (claimed_files): Likewise.
685 (num_claimed_files): Likewise.
686 * lto-plugin-elf.c (process_symtab): Move here.
687 (claim_file_handler): Likewise, and make non-static.
688 (onload_format_checks): New function factored out from onload.
689 * lto-plugin-coff.c (claim_file_handler): New function stub.
690 (onload_format_checks): Likewise.
691
d2c57fe9
AK
6922010-08-05 Andi Kleen <ak@linux.intel.com>
693
694 * lto-plugin.c: Include <hashtab.h>
695 (sym_aux): Add next_conflict field to save conflict chains.
696 (plugin_file_info): Add conflicts symtab.
697 (parse_table_entry): Initialize aux->next_conflict.
698 (process_symtab): Increment found.
699 (dump_symtab): Add.
700 (finish_conflict_resolution): Add.
701 (free_symtab): Add.
702 (write_resolution): Remove symbols loop and move into
703 dump_symtab. Call dump_symtab for main symbol and conflicts table.
704 Call free_symtab to free conflicts table.
705 (SWAP): Add.
706 (eq_sym): Add.
707 (hash_sym): Add.
708 (symbol_strength): Add.
709 (resolve_conflicts): Add.
710 (claim_file_handler): Add n variable. Check return value of
711 process_symtab. Call resolve_conflicts.
712
ecdbd01a 7132010-07-27 Andi Kleen <ak@linux.intel.com>
90e26247
AK
714
715 * lto-plugin.c (translate): Remove debug fprintf.
716
9477ccb2
L
7172010-07-23 H.J. Lu <hongjiu.lu@intel.com>
718
719 PR bootstrap/45042
720 * lto-plugin.c (translate): Cast to unsigned long.
721
ecdbd01a 7222010-07-23 Andi Kleen <ak@linux.intel.com>
73ce4d1e
AK
723
724 PR lto/44992
725 * lto-plugin.c (sym_aux): Add.
726 (plugin_symtab): Remove slots. Add aux and id.
727 (parse_table_entry): Change to use aux instead of slots.
728 (LTO_SECTION_PREFIX): Add.
729 (translate): Improve buffer allocation. Change to append
730 symbols to existing out buffer.
731 (get_section): Remove.
732 (process_symtab): Add.
733 (free_2): Free symtab->aux.
734 (write_resolution): Handle aux instead of slots.
735 Print sub id to resolution file.
736 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
737 calls with call to process_symtab.
738
553fc582
RG
7392010-07-22 Richard Guenther <rguenther@suse.de>
740
741 * Makefile.am: New copy_lto_plugin rule to install the plugin
742 into ../gcc.
743 * Makefile.in: Regenerated.
744
bdc89f9e
RG
7452010-05-21 Richard Guenther <rguenther@suse.de>
746
747 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
748
5cd0e96b
RG
7492010-05-07 Richard Guenther <rguenther@suse.de>
750
751 * lto-plugin.c (free_2): Do not free resolution_file.
752 (write_resolution): Check that we were passed a resolution file.
753 (all_symbols_read_handler): Adjust.
754 (cleanup_handler): Do not remove the resolution file.
755 (process_option): Handle -fresolution=.
756
13917ae3
RW
7572010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
758
759 PR other/43620
760 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
761 * Makefile.in: Regenerate.
762
ed0f0c0f
RG
7632010-04-23 Richard Guenther <rguenther@suse.de>
764
765 PR lto/41550
766 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
767 (translate): Likewise.
768 (all_symbols_read_handler): Likewise.
769 (claim_file_handler): Likewise.
770 (process_option): Likewise.
771 (add_output_files): Likewise. Remove filename length limit.
772
4d9e8446
RW
7732010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
774
775 * Makefile.in: Regenerate.
776 * aclocal.m4: Regenerate.
777
a8a5ac48
DG
7782010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
779
780 PR lto/43336
781 * lto-plugin.c (cleanup_handler): Delete temporary output files.
782
c164615b
RG
7832010-01-11 Richard Guenther <rguenther@suse.de>
784
785 PR lto/41569
786 * Makefile.am: Disable dependencies.
787 * Makefile.in: Regenerated.
788
f0d61983
L
7892010-01-03 H.J. Lu <hongjiu.lu@intel.com>
790
791 PR lto/42520
792 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
793 if -v is passed.
794
52327858 7952009-12-05 H.J. Lu <hongjiu.lu@intel.com>
43e02a8a 796
52327858
L
797 PR bootstrap/42306
798 * configure: Regenerated.
799 * Makefile.in: Likewise.
43e02a8a 800
92fa7608
RAE
8012009-11-19 Rafael Avila de Espindola <espindola@google.com>
802
803 PR bootstrap/42096
804 * lto-plugin.c (claim_file_handler): Print offsets in hex.
805
06bd7f56
RAE
8062009-11-12 Rafael Avila de Espindola <espindola@google.com>
807
808 * lto-plugin.c (write_resolution): Assume resolution_file is set.
809 Print the symbol name.
810 (all_symbols_read_handler): Create a resolution file.
811 Pass it to gcc.
812 (cleanup_handler): Remove the resolution file.
813 (process_option): Drop the -resolution option.
814
94086ef6
RAE
8152009-11-05 Rafael Avila de Espindola <espindola@google.com>
816
817 * lto-plugin.c (temp_obj_dir_name): Remove.
818 (arguments_file_name): New.
819 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
820 (exec_lto_wrapper): Create arguments file with make_temp_file.
821 (cleanup_handler): Don't remove the temporary directory. Remove the
822 arguments file.
823 (onload): Don't create the temporary directory.
824
7e9dc421 8252009-11-04 Richard Guenther <rguenther@suse.de>
92a285c1 826 Rafael Avila de Espindola <espindola@google.com>
7e9dc421
RG
827
828 * lto-plugin.c (plugin_file_info): Remove temp field.
829 (cleanup_handler): Don't delete temporary objects.
830 (claim_file_handler): Don't create temporary objects.
831
1cddcdca
RAE
8322009-11-04 Rafael Avila de Espindola <espindola@google.com>
833
834 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
835
86ed04df
RAE
8362009-10-30 Rafael Avila de Espindola <espindola@google.com>
837
838 PR41871
839 * lto-plugin.c (claim_file_handler): Close files that we created.
840
aff4273c
RAE
8412009-10-28 Rafael Avila de Espindola <espindola@google.com>
842
843 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
844 LDPL_ERROR
845
4c0f4b0b
DG
8462009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
847
848 PR lto/41652
849 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
850 * configure: Regenerate.
851
03428d41
RG
8522009-10-26 Richard Guenther <rguenther@suse.de>
853
854 * configure.ac: Use AM_MAINTAINER_MODE.
855 * acinclude.m4: Remove.
856 * configure: Re-generate.
857 * Makefile.in: Likewise.
858 * aclocal.m4: Likewise.
859
941e566a
RE
8602009-10-19 Rafael Avila de Espindola <espindola@google.com>
861
92a285c1
ML
862 PR40790
863 * configure: Regenerate.
864 * configure.ac: Add AC_TYPE_UINT64_T.
941e566a 865
33662270
RAE
8662009-10-16 Rafael Avila de Espindola <espindola@google.com>
867
868 * lto-plugin.c (message): New variable.
869 (check): New function.
870 (parse_table_entry, translate, write_resolution,add_output_files,
871 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
872 assert.
873 (cleanup_handler): Use check instead of assert. Remove the arguments
874 file if it exists.
875
b10071c5
RAE
8762009-10-15 Rafael Avila de Espindola <espindola@google.com>
877
878 * lto-plugin.c (resolution_file): New.
879 (free_1): Update comment.
880 (free_2): Free resolution_file.
881 (write_resolution): Write resolution to specified file. Use the
882 syms array from the symbol table.
883 (all_symbols_read_handler): Delay call to free_1 past call to
884 write_resolution.
885 (process_option): Add a -resolution option.
886
076c7ebe
RG
8872009-10-13 Richard Guenther <rguenther@suse.de>
888
889 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
890 correct libiberty.
891 * Makefile.in: Regenerated.
892
d520c7fb
RAE
8932009-10-08 Rafael Avila de Espindola <espindola@google.com>
894
895 * lto-plugin.c (add_input_library): New.
896 (all_symbols_read_handler): Use add_input_library for items that
897 start with -l.
898 (process_option): Fit in 80 columns.
899 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
900
d7f09764
DN
9012009-10-02 Diego Novillo <dnovillo@google.com>
902
903 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
904 and -D_FILE_OFFSET_BITS=64.
905 * configure.ac: Add AC_SYS_LARGEFILE.
906 * configure: Regenerate.
907 * Makefile.in: Regenerate.
908 * lto-plugin.c: Fix copyright boilerplate.
909
9102009-10-02 Diego Novillo <dnovillo@google.com>
911
912 * Makefile.am (ACLOCAL_AMFLAGS): Define.
913 * aclocal.m4: Regenerate with aclocal-2.64
914 * acinclude.m4: Remove.
915 * Makefile.in: Regenerate with automake-1.11
916 * configure.ac (AC_PREREQ): Update to 2.64.
917 * configure: Regenerate.
918
9192009-10-02 Diego Novillo <dnovillo@google.com>
920
921 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
922 and -D_FILE_OFFSET_BITS=64.
923 * configure.ac: Add AC_SYS_LARGEFILE.
924 * configure: Regenerate.
925 * Makefile.in: Regenerate.
926 * lto-plugin.c: Fix copyright boilerplate.
927
9282009-10-02 Diego Novillo <dnovillo@google.com>
929
930 * Makefile.am (ACLOCAL_AMFLAGS): Define.
931 * aclocal.m4: Regenerate with aclocal-2.64
932 * acinclude.m4: Remove.
933 * Makefile.in: Regenerate with automake-1.11
934 * configure.ac (AC_PREREQ): Update to 2.64.
935 * configure: Regenerate.
936
9372009-10-02 Rafael Avila de Espindola <espindola@google.com>
938
939 * Makefile.am (liblto_plugin_la_SOURCES): Remove
940 $(top_srcdir)/../gcc/lto/common.c
941 * Makefile.in: Regenerate.
942
9432009-10-01 Rafael Avila de Espindola <espindola@google.com>
944
945 * lto-plugin.c (pass_through_items): New.
946 (num_pass_through_items): New.
947 (all_symbols_read_handler): Update to use the -pass-through option.
948 (process_option): Replace -libgcc with -pass-through.
949
9502009-09-30 Rafael Avila de Espindola <espindola@google.com>
951
952 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
953 register_cleanup to be set.
954
9552009-09-30 Rafael Avila de Espindola <espindola@google.com>
956
957 * Makefile.am: Remove all reference to ltosymtab.
958 * Makefile.in: Regenerate.
959 * lto-symtab.c: Remove.
960
9612009-05-21 Diego Novillo <dnovillo@google.com>
962
963 * configure.ac: Remove call to AC_CHECK_GELF.
964 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
965 * acinclude.m4: Do not include ../config/libelf.m4
966 * Makefile.am (LIBELFLIBS): Define.
967 (LIBELFINC): Define.
968 (AM_CPPFLAGS): Add $(LIBELFINC).
969 (ltosymtab_LDADD): Add $(LIBELFLIBS).
970 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
971 * lto-plugin.c: Always include <gelf.h>
972 * lto-symtab.c: Likewise.
973 * configure: Regenerate.
974 * Makefile.in: Regenerate.
975
9762009-03-23 Rafael Avila de Espindola <espindola@google.com>
977
978 * lto-plugin.c (libgcc_filename): New.
979 (all_symbols_read_handler): Pass libgcc to the linker.
980 (all_symbols_read_handler): Parse -libgcc
981
9822009-02-05 Rafael Avila de Espindola <espindola@google.com>
983
984 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
985 * Makefile.in: Regenerate.
986 * lto-plugin.c (add_output_files): Argument is now a FILE.
987 (exec_lto_wrapper): Use writeargv and pex.
988
9892009-02-04 Rafael Avila de Espindola <espindola@google.com>
990
991 Revert:
992 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
993 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
994
995
9962009-02-04 Rafael Avila de Espindola <espindola@google.com>
997
998 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
999
10002009-01-29 Rafael Avila de Espindola <espindola@google.com>
1001
1002 * lto-plugin.c: Include libiberty.h.
1003 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1004 snprintf.
1005
10062009-01-29 Rafael Avila de Espindola <espindola@google.com>
1007
1008 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1009 file to lto-wrapper.
1010
10112009-01-28 Rafael Avila de Espindola <espindola@google.com>
1012
1013 * lto-plugin.c (plugin_file_info): Remove fd and elf.
1014 (parse_table_entry): strdup entry->name and entry->comdat_key.
1015 (free_1): Free name and comdat_key. Don't close the file. Don't call
1016 elf_end.
1017 (claim_file_handler): Always call elf_end.
1018
10192008-12-23 Rafael Avila de Espindola <espindola@google.com>
1020
1021 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1022 -D_FILE_OFFSET_BITS=64
1023 * Makefile.in: Regenerate
1024
10252008-12-22 Rafael Avila de Espindola <espindola@google.com>
1026
1027 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1028 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1029 * Makefile.in: Regenerate.
1030 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1031 * configure: Regenerate.
1032 * configure.ac: Add AC_SUBST(target_noncanonical).
1033
10342008-12-08 Rafael Avila de Espindola <espindola@google.com>
1035
1036 * lto-plugin.c: Include stdbool.h.
1037 (debug, nop): Declare as bool.
1038
10392008-12-08 Rafael Avila de Espindola <espindola@google.com>
1040
1041 * lto-plugin.c (nop): New.
1042 (use_original_files): New.
1043 (all_symbols_read_handler): Call use_original_files if nop is true.
1044 (process_option): Parse the -nop option.
1045
10462008-12-08 Rafael Avila de Espindola <espindola@google.com>
1047
1048 * lto-plugin.c (debug): New.
1049 (exec_lto_wrapper): Print argv if debug is true.
1050 (process_option): Process the -debug command line option.
1051
10522008-12-03 Rafael Avila de Espindola <espindola@google.com>
1053
1054 * lto-plugin.c (process_option): The argument is now a single option,
1055 not a space separated list.
1056
10572008-12-02 Rafael Avila de Espindola <espindola@google.com>
1058
1059 * lto-plugin.c: Include sys/types.h and sys/wait.h
1060 (output_files, num_output_files, lto_wrapper_argv,
1061 lto_wrapper_num_args): New.
1062 (free_2): Free output_files.
1063 (write_resolution): Disable.
1064 (add_output_files): New.
1065 (exec_lto_wrapper): New.
1066 (all_symbols_read_handler): Run lto-wrapper.
1067 (claim_file_handler): Free lto_file.name and call elf_end.
1068 (process_option): New.
1069
10702008-11-26 Rafael Espindola <espindola@google.com>
1071
1072 * lto-plugin.c (add_input_file): New.
1073 (get_section): Return NULL if get_section fails.
1074 (write_resolution): New.
1075 (all_symbols_read_handler): Call add_input_file.
1076 (claim_file_handler): Unlink the correct file.
1077 (onload): Record add_input_file.
1078
10792008-09-23 Rafael Espindola <espindola@google.com>
1080
1081 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1082 Update the location of common.c.
1083 * Makefile.in: Regenerate.
1084 * common.c: Moved to gcc/lto.
1085 * common.h: Moved to gcc/lto.
1086 * lto-plugin.c: Update the location of common.h.
1087 * lto-symtab.c: Update the location of common.h.
1088
10892008-09-23 Rafael Espindola <espindola@google.com>
1090
1091 * common.c: Include common.h.
1092 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1093 sizes.
1094 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1095 explicit sizes.
1096
10972008-09-23 Rafael Espindola <espindola@google.com>
1098
1099 * lto-plugin.c (plugin_file_info): Add temp.
1100 (cleanup_handler): Only delete temporary files.
1101 (claim_file_handler): Initialize lto_file.temp.
1102
11032008-09-23 Rafael Espindola <espindola@google.com>
1104
92a285c1 1105 * plugin-api.h: Moved to include.
d7f09764
DN
1106
11072008-09-23 Rafael Espindola <espindola@google.com>
1108
1109 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1110 format.
1111
11122008-09-22 Rafael Espindola <espindola@google.com>
1113
1114 * plugin-api.h: Copy from binutils' cvs.
1115
11162008-09-22 Rafael Espindola <espindola@google.com>
1117
1118 * lto-symtab.c (get_symbols, add_symbols): Update signature.
1119 * plugin-api.h: Copy from binutils' cvs.
1120
11212008-09-22 Rafael Espindola <espindola@google.com>
1122
1123 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1124 Make extern
1125
11262008-09-10 Rafael Espindola <espindola@google.com>
1127
1128 * lto-plugin.c (onload): add missing break statements and asserts.
1129 * lto-symtab.c (claim_file_handler): Make it static.
1130 (all_symbols_read_handler): Make it static.
1131 (all_file_handles): Make it static.
1132 (num_file_handles): Make it static.
1133 (register_claim_file): Make it static.
1134 (register_object): Indent properly.
1135
11362008-09-10 Rafael Avila de Espindola <espindola@google.com>
1137
1138 * Makefile.am (ltosymtab_LDADD): Add -lelf.
1139 * Makefiel.in: Regenerate.
1140 * lto-plugin.c: Include ar.h.
1141 (claim_file_handler): Handle file->offset != 0.
1142 * lto-symtab.c: Include gelf.h.
1143 (all_file_handles): Change type.
1144 (register_object): New.
1145 (register_file): Add support for archives.
1146 (resolve): Update to new type of all_file_handles.
1147 (print): Update to new type of all_file_handles.
1148 (free_all): Update to new type of all_file_handles.
1149 (main): Update to new type of all_file_handles.
1150
11512008-09-10 Rafael Avila de Espindola <espindola@google.com>
1152
1153 * lto-plugin.c (get_string_table): Remove.
1154 (get_section): Use elf_strptr instead of get_string_table.
1155
11562008-09-08 Doug Kwan <dougkwan@google.com>
1157
1158 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1159 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1160
11612008-09-08 Rafael Avila de Espindola <espindola@google.com>
1162
1163 * Makefile.am (ltosymtab_SOURCES): add common.c.
1164 (ltosymtab_CFLAGS): New.
1165 (liblto_plugin_la_SOURCES): Add common.c.
1166 * Makefile.in: Regenerate.
1167 * common.c: New.
1168 * common.h: New.
1169 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1170 (plugin_symtab): New.
1171 (plugin_file_info): New.
1172 (register_all_symbols_read): New.
1173 (get_symbols): New.
1174 (claimed_files): New.
1175 (num_claimed_files): New.
1176 (translate): Don't drop the slot number.
1177 (free_1): New.
1178 (free_2): New.
1179 (all_symbols_read_handler): New.
1180 (claim_file_handler): Record every claimed file.
1181 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1182 LDPT_GET_SYMBOLS.
1183 * lto-symtab.c: Include stdlib.h, string.h and common.h.
1184 (current_file_handle): Remove.
1185 (ld_plugin_all_symbols_read_handler): New.
1186 (plugin_handle): New.
1187 (file_handle): New.
1188 (all_file_handles): New.
1189 (num_file_handles): New.
1190 (get_symbols): New.
1191 (register_all_symbols_read): New.
1192 (add_symbols): Don't print the symbols, just record them.
1193 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1194 LDPT_GET_SYMBOLS.
1195 (load_plugin): Use plugin_handle.
1196 (register_file): Add the file handle to all_file_handles.
1197 (resolve): New.
1198 (print): New.
1199 (unload_plugin): New.
1200 (free_all): New.
1201 (main): Call all_symbols_read_handler and free resources.
1202
12032008-09-03 Rafael Avila de Espindola <espindola@google.com>
1204
1205 * Makefile.am (AM_CFLAGS): New.
1206 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1207 (lib_LTLIBRARIES): New.
1208 (liblto_plugin_la_SOURCES): New.
1209 (liblto_plugin_la_LIBADD): New.
1210 * Makefile.in: Regenerate.
1211 * acinclude.m4: Don't include ../config/acx.m4 and
1212 ../config/no-executables.m4.
1213 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1214 ../libtool.m4.
1215 * aclocal.m4: Regenerate.
1216 * configure: Regenerate.
1217 * configure.ac: Use AM_PROG_LIBTOOL.
1218 * lto-plugin.c: New.
1219 * lto-symtab.c: Rewrite to use the plugin.
1220 * plugin-api.h: New.
1221
12222008-08-25 Rafael Avila de Espindola <espindola@google.com>
1223
1224 * configure: Regenerate.
1225 * configure.ac: Use AC_CHECK_GELF.
1226 * lto-symtab.c: Include gelf.h.
1227 (get_string_table): Use size independent API.
1228 (printTable): Use lld to print 64 bit integers.
1229
12302008-08-22 Rafael Avila de Espindola <espindola@google.com>
1231
1232 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1233 entry->visibility are valid.
1234
12352008-07-22 Rafael Avila de Espindola <espindola@google.com>
1236 * lto-symtab.c (table_entry): Add comdat.
1237 (parse_table_entry): Read comdat.
1238
12392008-08-21 Rafael Espindola <espindola@google.com>
1240
1241 * Makefile.am: New.
1242 * Makefile.in: New.
1243 * acinclude.m4: New.
1244 * aclocal.m4: New.
1245 * configure: New.
1246 * configure.ac: New.
1247 * lto-symtab.c: New.