Automatic date update in version.in
[deliverable/binutils-gdb.git] / libctf / ChangeLog
CommitLineData
51419248
NC
12021-07-03 Nick Clifton <nickc@redhat.com>
2
3 * 2.37 release branch created.
4
4821e618
AM
52021-05-09 Alan Modra <amodra@gmail.com>
6
7 * ctf-impl.h (ctf_dynset_eq_string): Don't declare.
8 * ctf-hash.c (ctf_dynset_eq_string): Delete function.
9 * ctf-dedup.c (make_set_element): Use htab_eq_string.
10 (ctf_dedup_atoms_init, ADD_CITER, ctf_dedup_init): Likewise.
11 (ctf_dedup_conflictify_unshared): Likewise.
12 (ctf_dedup_walk_output_mapping): Likewise.
13
ae064303
NA
142021-05-06 Nick Alcock <nick.alcock@oracle.com>
15
16 * testsuite/lib/ctf-lib.exp: Use -gctf, not -gt.
17 * testsuite/libctf-regression/nonstatic-var-section-ld-r.lk:
18 Hidden symbols now get into the symtypetab anyway.
19
49da556c
NA
202021-05-06 Nick Alcock <nick.alcock@oracle.com>
21
22 * ctf-open.c (init_types): Unknown types may have names.
23 * ctf-types.c (ctf_type_resolve): CTF_K_UNKNOWN is as
24 non-representable as type ID 0.
25 (ctf_type_aname): Print unknown types.
26 * ctf-dedup.c (ctf_dedup_hash_type): Do not early-exit for
27 CTF_K_UNKNOWN types: they have real hash values now.
28 (ctf_dedup_rwalk_one_output_mapping): Treat CTF_K_UNKNOWN types
29 like other types with no referents: call the callback and do not
30 skip them.
31 (ctf_dedup_emit_type): Emit via...
32 * ctf-create.c (ctf_add_unknown): ... this new function.
33 * libctf.ver (LIBCTF_1.2): Add it.
34
8f7b22ea
NA
352021-03-25 Nick Alcock <nick.alcock@oracle.com>
36
37 * configure.ac: Check for dlsym, not dlopen.
38 * configure: Regenerate.
39
15131809
NA
402021-03-25 Nick Alcock <nick.alcock@oracle.com>
41
42 * testsuite/libctf-writable/symtypetab-nonlinker-writeout.c: Don't
43 leak buf.
44
0bd65ce3
NA
452021-03-25 Nick Alcock <nick.alcock@oracle.com>
46
47 PR libctf/27628
48 * ctf-lookup.c (isqualifier): Don't dereference out-of-bounds
49 qhash values.
50
5226ef61
NA
512021-03-25 Nick Alcock <nick.alcock@oracle.com>
52
53 * ctf-open-bfd.c (ctf_bfdopen_ctfsect): Initialize debugging.
54
86f64bf4
NA
552021-03-25 Nick Alcock <nick.alcock@oracle.com>
56
57 PR libctf/27628
58 * ctf-serialize.c (ctf_emit_type_sect): Allow for a NULL vlen in
59 CTF_K_FUNCTION types.
60
485170cd
NA
612021-03-25 Nick Alcock <nick.alcock@oracle.com>
62
63 * ctf-dump.c (ctf_dump_format_type): Don't emit size or alignment
64 on error.
65
e9338841
AM
662021-03-21 Alan Modra <amodra@gmail.com>
67
68 * ctf-impl.h: Include string.h.
69
69a28486
NA
702021-03-18 Nick Alcock <nick.alcock@oracle.com>
71
72 * ctf-types.c (ctf_type_encoding): Support, after a fashion, for enums.
73 * ctf-dump.c (ctf_dump_format_type): Do not report enums' degenerate
74 encoding.
75
e4c78f30
NA
762021-03-18 Nick Alcock <nick.alcock@oracle.com>
77
78 * ctf-dedup.c (ctf_dedup_rhash_type): Report errors on the input
79 dict properly.
80 * ctf-open.c (ctf_bufopen_internal): Report errors initializing
81 the atoms table.
82
d7b1416e
NA
832021-03-18 Nick Alcock <nick.alcock@oracle.com>
84
85 * ctf-impl.h (ctf_next_t) <ctn_tp>: New.
86 <u.ctn_mp>: Remove.
87 <u.ctn_lmp>: Remove.
88 <u.ctn_vlen>: New.
89 * ctf-types.c (ctf_struct_member): New.
90 (ctf_member_next): Use it, dropping separate large/small code paths.
91 (ctf_type_align): Likewise.
92 (ctf_member_info): Likewise.
93 (ctf_type_rvisit): Likewise.
94
08c428af
NA
952021-03-18 Nick Alcock <nick.alcock@oracle.com>
96
97 * ctf-impl.h (ctf_dtdef_t) <dtu_members>: Remove.
98 <dtd_u>: Likewise.
99 (ctf_dmdef_t): Remove.
100 (struct ctf_next) <u.ctn_dmd>: Remove.
101 * ctf-create.c (INITIAL_VLEN): New, more-or-less arbitrary initial
102 vlen size.
103 (ctf_add_enum): Use it.
104 (ctf_dtd_delete): Do not free the (removed) dmd; remove string
105 refs from the vlen on struct deletion.
106 (ctf_add_struct_sized): Populate the vlen: do it by hand if
107 promoting forwards. Always populate the full-size
108 lsizehi/lsizelo members.
109 (ctf_add_union_sized): Likewise.
110 (ctf_add_member_offset): Set up the vlen rather than the dmd.
111 Expand it as needed, repointing string refs via
112 ctf_str_move_pending. Add the member names as pending strings.
113 Always populate the full-size lsizehi/lsizelo members.
114 (membadd): Remove, folding back into...
115 (ctf_add_type_internal): ... here, adding via an ordinary
116 ctf_add_struct_sized and _next iteration rather than doing
117 everything by hand.
118 * ctf-serialize.c (ctf_copy_smembers): Remove this...
119 (ctf_copy_lmembers): ... and this...
120 (ctf_emit_type_sect): ... folding into here. Figure out if a
121 ctf_stype_t is needed here, not in ctf_add_*_sized.
122 (ctf_type_sect_size): Figure out the ctf_stype_t stuff the same
123 way here.
124 * ctf-types.c (ctf_member_next): Remove the dmd path and always
125 use the vlen. Force large-structure usage for dynamic types.
126 (ctf_type_align): Likewise.
127 (ctf_member_info): Likewise.
128 (ctf_type_rvisit): Likewise.
129 * testsuite/libctf-regression/type-add-unnamed-struct-ctf.c: Add a
130 self-referential type to this test.
131 * testsuite/libctf-regression/type-add-unnamed-struct.c: Adjusted
132 accordingly.
133 * testsuite/libctf-regression/type-add-unnamed-struct.lk: Likewise.
134
77d724a7
NA
1352021-03-18 Nick Alcock <nick.alcock@oracle.com>
136
137 * ctf-impl.h (ctf_dtdef_t) <dtd_vlen_alloc>: New.
138 (ctf_str_move_pending): Declare.
139 * ctf-string.c (ctf_str_add_ref_internal): Fix error return.
140 (ctf_str_move_pending): New.
141 * ctf-create.c (ctf_grow_vlen): New.
142 (ctf_dtd_delete): Zero out the vlen_alloc after free. Free the
143 vlen later: iterate over it and free enum name refs first.
144 (ctf_add_generic): Populate dtd_vlen_alloc from vlen.
145 (ctf_add_enum): populate the vlen; do it by hand if promoting
146 forwards.
147 (ctf_add_enumerator): Set up the vlen rather than the dmd. Expand
148 it as needed, repointing string refs via ctf_str_move_pending. Add
149 the enumerand names as pending strings.
150 * ctf-serialize.c (ctf_copy_emembers): Remove.
151 (ctf_emit_type_sect): Copy the vlen into place and ref the
152 strings.
153 * ctf-types.c (ctf_enum_next): The dynamic portion now uses
154 the same code as the non-dynamic.
155 (ctf_enum_name): Likewise.
156 (ctf_enum_value): Likewise.
157 * testsuite/libctf-lookup/enum-many-ctf.c: New test.
158 * testsuite/libctf-lookup/enum-many.lk: New test.
159
986e9e3a
NA
1602021-03-18 Nick Alcock <nick.alcock@oracle.com>
161
162 * ctf-hash.c (ctf_dynset_elements): New.
163 * ctf-impl.h (ctf_dynset_elements): Declare it.
164 (ctf_str_add_pending): Likewise.
165 (ctf_dict_t) <ctf_str_pending_ref>: New, set of refs that must be
166 added during serialization.
167 * ctf-string.c (ctf_str_create_atoms): Initialize it.
168 (CTF_STR_ADD_REF): New flag.
169 (CTF_STR_MAKE_PROVISIONAL): Likewise.
170 (CTF_STR_PENDING_REF): Likewise.
171 (ctf_str_add_ref_internal): Take a flags word rather than int
172 params. Populate, and clear out, ctf_str_pending_ref.
173 (ctf_str_add): Adjust accordingly.
174 (ctf_str_add_external): Likewise.
175 (ctf_str_add_pending): New.
176 (ctf_str_remove_ref): Also remove the potential ref if it is a
177 pending ref.
178 * ctf-serialize.c (ctf_serialize): Prohibit addition of strings
179 with ctf_str_add_ref before serialization. Ensure that the
180 ctf_str_pending_ref set is empty before strtab finalization.
181 (ctf_emit_type_sect): Add a ref to the ctt_name.
182 * ctf-create.c (ctf_add_generic): Add the ctt_name as a pending
183 ref.
184 * testsuite/libctf-writable/reserialize-strtab-corruption.*: New test.
185
2a05d50e
NA
1862021-03-18 Nick Alcock <nick.alcock@oracle.com>
187
188 * ctf-serialize.c (ctf_serialize): Preserve ctf_typemax across
189 serialization.
190
81982d20
NA
1912021-03-18 Nick Alcock <nick.alcock@oracle.com>
192
193 * ctf-impl.h (ctf_dtdef_t) <dtd_u.dtu_argv>: Remove.
194 * ctf-create.c (ctf_dtd_delete): No longer free it.
195 (ctf_add_function): Use the dtd_vlen, not dtu_argv. Properly align.
196 * ctf-serialize.c (ctf_emit_type_sect): Just copy the dtd_vlen.
197 * ctf-types.c (ctf_func_type_info): Just use the vlen.
198 (ctf_func_type_args): Likewise.
199
534444b1
NA
2002021-03-18 Nick Alcock <nick.alcock@oracle.com>
201
202 * ctf-impl.h (ctf_dtdef_t) <dtd_u.dtu_arr>: Remove.
203 * ctf-create.c (ctf_add_array): Use the dtd_vlen, not dtu_arr.
204 (ctf_set_array): Likewise.
205 * ctf-serialize.c (ctf_emit_type_sect): Just copy the dtd_vlen.
206 * ctf-types.c (ctf_array_info): Just use the vlen.
207
7879dd88
NA
2082021-03-18 Nick Alcock <nick.alcock@oracle.com>
209
210 * ctf-impl.h (ctf_dtdef_t) <dtd_u.dtu_enc>: Remove.
211 <dtd_u.dtu_slice>: Likewise.
212 <dtd_vlen>: New.
213 * ctf-create.c (ctf_add_generic): Perhaps allocate it. All
214 callers adjusted.
215 (ctf_dtd_delete): Free it.
216 (ctf_add_slice): Use the dtd_vlen, not dtu_enc.
217 (ctf_add_encoded): Likewise. Assert that this must be an int or
218 float.
219 * ctf-serialize.c (ctf_emit_type_sect): Just copy the dtd_vlen.
220 * ctf-dedup.c (ctf_dedup_rhash_type): Use the dtd_vlen, not
221 dtu_slice.
222 * ctf-types.c (ctf_type_reference): Likewise.
223 (ctf_type_encoding): Remove most dynamic-type-specific code: just
224 get the vlen from the right place. Report failure to look up the
225 underlying type's encoding.
226
eefe721e
NA
2272021-03-18 Nick Alcock <nick.alcock@oracle.com>
228
229 * ctf-archive.c (ctf_archive_next): GNU style fix for do {} while.
230 * ctf-dedup.c (ctf_dedup_rhash_type): Likewise.
231 (ctf_dedup_rwalk_one_output_mapping): Likewise.
232 * ctf-dump.c (ctf_dump_format_type): Likewise.
233 * ctf-lookup.c (ctf_symbol_next): Likewise.
234 * swap.h (swap_thing): Likewise.
235
b9a96431
NA
2362021-03-18 Nick Alcock <nick.alcock@oracle.com>
237
238 * ctf-serialize.c: General reshuffling, and...
239 (emit_symtypetab_state_t): New, migrated from
240 local variables in ctf_serialize.
241 (ctf_serialize): Split out most section sizing and
242 emission.
243 (ctf_symtypetab_sect_sizes): New (split out).
244 (ctf_emit_symtypetab_sects): Likewise.
245 (ctf_type_sect_size): Likewise.
246 (ctf_emit_type_sect): Likewise.
247
01cbfcba
NA
2482021-03-18 Nick Alcock <nick.alcock@oracle.com>
249
250 * ctf-impl.h (ctf_dict_t): Fix comment.
251
bf4c3185
NA
2522021-03-18 Nick Alcock <nick.alcock@oracle.com>
253
254 * ctf-create.c (symtypetab_delete_nonstatic_vars): Move
255 into ctf-serialize.c.
256 (ctf_symtab_skippable): Likewise.
257 (CTF_SYMTYPETAB_EMIT_FUNCTION): Likewise.
258 (CTF_SYMTYPETAB_EMIT_PAD): Likewise.
259 (CTF_SYMTYPETAB_FORCE_INDEXED): Likewise.
260 (symtypetab_density): Likewise.
261 (emit_symtypetab): Likewise.
262 (emit_symtypetab_index): Likewise.
263 (ctf_copy_smembers): Likewise.
264 (ctf_copy_lmembers): Likewise.
265 (ctf_copy_emembers): Likewise.
266 (ctf_sort_var): Likewise.
267 (ctf_serialize): Likewise.
268 (ctf_gzwrite): Likewise.
269 (ctf_compress_write): Likewise.
270 (ctf_write_mem): Likewise.
271 (ctf_write): Likewise.
272 * ctf-serialize.c: New file.
273 * Makefile.am (libctf_nobfd_la_SOURCES): Add it.
274 * Makefile.in: Regenerate.
275
08794526
NA
2762021-03-18 Nick Alcock <nick.alcock@oracle.com>
277
278 * ctf-link.c (ctf_link_lazy_open): Move up in the file, to near
279 ctf_link_add_ctf.
280 * ctf-lookup.c (ctf_lookup_symbol_idx): Repair tabdamage.
281 (ctf_lookup_by_sym_or_name): Likewise.
282 * testsuite/libctf-lookup/struct-iteration.c: Likewise.
283 * testsuite/libctf-regression/type-add-unnamed-struct.c: Likewise.
284
211bcd01
NA
2852021-03-02 Nick Alcock <nick.alcock@oracle.com>
286
287 * ctf-create.c (symtypetab_density): Report the symbol name as
288 well as index in the name != object error; note the likely
289 consequences.
290 * ctf-link.c (ctf_link_shuffle_syms): Report the symbol index
291 as well as name.
292
8e7e4464
NA
2932021-03-02 Nick Alcock <nick.alcock@oracle.com>
294
295 * ctf-link.c (ctf_link_shuffle_syms): Free ctf_dynsyms properly.
296
cf6a0b98
NA
2972021-03-02 Nick Alcock <nick.alcock@oracle.com>
298
299 * ctf-dump.c (ctf_dump_format_type): Fix signed/unsigned confusion.
300
4659554b
NA
3012021-03-02 Nick Alcock <nick.alcock@oracle.com>
302
303 * ctf-dedup.c (ctf_dedup): Pass on errors from ctf_dedup_hash_type.
304 Call ctf_dedup_fini properly on other errors.
305 (ctf_dedup_emit_type): Set the errno on dynhash insertion failure.
306 * ctf-link.c (ctf_link_deduplicating_per_cu): Close outputs beyond
307 output 0 when asserting because >1 output is found.
308 (ctf_link_deduplicating): Likewise, when asserting because the
309 shared output is not the same as the passed-in fp.
310
f5060e56
NA
3112021-03-02 Nick Alcock <nick.alcock@oracle.com>
312
313 * ctf-impl.h (ctf_dict_t) <ctf_link_type_mapping>: No longer used
314 by the nondeduplicating linker.
315 (ctf_add_type_mapping): Removed, now static.
316 (ctf_type_mapping): Likewise.
317 (ctf_dedup_type_mapping): New.
318 (ctf_dedup_t) <cd_input_nums>: New.
319 * ctf-dedup.c (ctf_dedup_init): Populate it.
320 (ctf_dedup_fini): Free it again. Emphasise that this has to be
321 the last thing called.
322 (ctf_dedup): Populate it.
323 (ctf_dedup_populate_type_mapping): Removed.
324 (ctf_dedup_populate_type_mappings): Likewise.
325 (ctf_dedup_emit): No longer call it. No longer call
326 ctf_dedup_fini either.
327 (ctf_dedup_type_mapping): New.
328 * ctf-link.c (ctf_unnamed_cuname): New.
329 (ctf_create_per_cu): Arguments must be non-null now.
330 (ctf_in_member_cb_arg): Removed.
331 (ctf_link): No longer populate it. No longer discard the
332 mapping table.
333 (ctf_link_deduplicating_one_symtypetab): Use
334 ctf_dedup_type_mapping, not ctf_type_mapping. Use
335 ctf_unnamed_cuname.
336 (ctf_link_one_variable): Likewise. Pass in args individually: no
337 longer a ctf_variable_iter callback.
338 (empty_link_type_mapping): Removed.
339 (ctf_link_deduplicating_variables): Use ctf_variable_next, not
340 ctf_variable_iter. No longer pack arguments to
341 ctf_link_one_variable into a struct.
342 (ctf_link_deduplicating_per_cu): Call ctf_dedup_fini once
343 all link phases are done.
344 (ctf_link_deduplicating): Likewise.
345 (ctf_link_intern_extern_string): Improve comment.
346 (ctf_add_type_mapping): Migrate...
347 (ctf_type_mapping): ... these functions...
348 * ctf-create.c (ctf_add_type_mapping): ... here...
349 (ctf_type_mapping): ... and make static, for the sole use of
350 ctf_add_type.
351
478c04a5
NA
3522021-03-02 Nick Alcock <nick.alcock@oracle.com>
353
354 * ctf-link.c (ctf_link_one_variable): Remove reference to
355 "unconflicted link mode".
356
8915c559
NA
3572021-03-02 Nick Alcock <nick.alcock@oracle.com>
358
359 * ctf-link.c (ctf_create_per_cu): Drop FILENAME now that it is
360 always identical to CUNAME.
361 (ctf_link_deduplicating_one_symtypetab): Adjust.
362 (ctf_link_one_type): Remove.
363 (ctf_link_one_input_archive_member): Likewise.
364 (ctf_link_close_one_input_archive): Likewise.
365 (ctf_link_one_input_archive): Likewise.
366 (ctf_link): No longer call it. Drop CTF_LINK_NONDEDUP path.
367 Improve header comment a bit (dicts, not files). Adjust
368 ctf_create_per_cu call.
369 (ctf_link_deduplicating_variables): Simplify.
370 (ctf_link_in_member_cb_arg_t) <cu_name>: Remove.
371 <in_input_cu_file>: Likewise.
372 <in_fp_parent>: Likewise.
373 <done_parent>: Likewise.
374 (ctf_link_one_variable): Turn uses of in_file_name to in_cuname.
375
ac36e134
NA
3762021-03-02 Nick Alcock <nick.alcock@oracle.com>
377
378 * ctf-types.c (ctf_member_iter): Move 'rc' to an inner scope.
379 (ctf_enum_iter): Reimplement in terms of ctf_enum_next.
380 (ctf_type_iter): Reimplement in terms of ctf_type_next.
381 (ctf_type_iter_all): Likewise.
382 (ctf_variable_iter): Reimplement in terms of ctf_variable_next.
383 * ctf-archive.c (ctf_archive_iter_internal): Remove.
384 (ctf_archive_iter): Reimplement in terms of ctf_archive_next.
385
eaa2913a
NA
3862021-03-02 Nick Alcock <nick.alcock@oracle.com>
387
388 * ctf-archive.c (ctf_archive_next): Set the name of parents in
389 single-member archives.
390
8255cf42
AM
3912021-02-26 Alan Modra <amodra@gmail.com>
392
393 * Makefile.in: Regenerate.
394
93993f67
AM
3952021-02-21 Alan Modra <amodra@gmail.com>
396
397 * configure.ac: Invoke AC_CANONICAL_TARGET, AC_CANONICAL_HOST
398 and AC_CANONICAL_BUILD.
399 * configure: Regenerate.
400 * Makefile.in: Regenerate.
401
fd126337 4022021-02-20 Nick Alcock <nick.alcock@oracle.com>
f4f60336
NA
403
404 * ctf-impl.h (ctf_dict_t) <ctf_symhash>: New.
405 <ctf_symhash_latest>: Likewise.
406 (struct ctf_archive_internal) <ctfi_crossdict_cache>: New.
407 <ctfi_symnamedicts>: New.
408 <ctfi_syms>: Remove.
409 (ctf_lookup_symbol_name): Remove.
410 * ctf-lookup.c (ctf_lookup_symbol_name): Propagate errors from
411 parent properly. Make static.
412 (ctf_lookup_symbol_idx): New, linear search for the symbol name,
413 cached in the crossdict cache's ctf_symhash (if available), or
414 this dict's (otherwise).
415 (ctf_try_lookup_indexed): Allow the symname to be passed in.
416 (ctf_lookup_by_symbol): Turn into a wrapper around...
417 (ctf_lookup_by_sym_or_name): ... this, supporting name lookup too,
418 using ctf_lookup_symbol_idx in non-writable dicts. Special-case
419 name lookup in dynamic dicts without reported symbols, which have
420 no symtab or dynsymidx but where name lookup should still work.
421 (ctf_lookup_by_symbol_name): New, another wrapper.
422 * ctf-archive.c (enosym): Note that this is present in
423 ctfi_symnamedicts too.
424 (ctf_arc_close): Adjust for removal of ctfi_syms. Free the
425 ctfi_symnamedicts.
426 (ctf_arc_flush_caches): Likewise.
427 (ctf_dict_open_cached): Memoize the first cached dict in the
428 crossdict cache.
429 (ctf_arc_lookup_symbol): Turn into a wrapper around...
430 (ctf_arc_lookup_sym_or_name): ... this. No longer cache
431 ctf_id_t lookups: just call ctf_lookup_by_symbol as needed (but
432 still cache the dicts those lookups succeed in). Add
433 lookup-by-name support, with dicts of successful lookups cached in
434 ctfi_symnamedicts. Refactor the caching code a bit.
435 (ctf_arc_lookup_symbol_name): New, another wrapper.
436 * ctf-open.c (ctf_dict_close): Free the ctf_symhash.
437 * libctf.ver (LIBCTF_1.2): New version. Add
438 ctf_lookup_by_symbol_name, ctf_arc_lookup_symbol_name.
439 * testsuite/libctf-lookup/enum-symbol.c (main): Use
440 ctf_arc_lookup_symbol rather than looking up the name ourselves.
441 Fish it out repeatedly, to make sure that symbol caching isn't
442 broken.
443 (symidx_64): Remove.
444 (symidx_32): Remove.
445 * testsuite/libctf-lookup/enum-symbol-obj.lk: Test symbol lookup
446 in an unlinked object file (indexed symtypetab sections only).
447 * testsuite/libctf-writable/symtypetab-nonlinker-writeout.c
448 (try_maybe_reporting): Check symbol types via
449 ctf_lookup_by_symbol_name as well as ctf_symbol_next.
450 * testsuite/libctf-lookup/conflicting-type-syms.*: New test of
451 lookups in a multi-dict archive.
452
c3bf9dc5
AM
4532021-02-20 Alan Modra <amodra@gmail.com>
454
455 * testsuite/config/default.exp (ld_L_opt): Define.
456 * testsuite/lib/ctf-lib.exp (load_common_lib): Delete. Instead load
457 ld-lib.exp.
458 (run_host_cmd, run_host_cmd_yesno, check_compiler_available): Delete.
459 (compile_one_cc, check_ctf_available): Delete.
460
758f5907
NA
4612021-02-03 Nick Alcock <nick.alcock@oracle.com>
462
463 * configure.ac (ac_cv_libctf_bfd_elf): Include string.h.
464 * configure: Regenerated.
465
cbd8f5bb
NA
4662021-02-03 Nick Alcock <nick.alcock@oracle.com>
467
468 * configure.ac (EXPECT): Check for, in order to define...
469 (TCL_TRY): ... this, if Tcl supports try/catch.
470 * Makefile.am (TCL_TRY): Run the testsuite only if set.
471 * configure: Regenerated.
472 * Makefile.in: Likewise.
473
95148614
NA
4742021-02-02 Nick Alcock <nick.alcock@oracle.com>
475
476 * configure.ac (CTF_LIBADD): Remove explicit -lintl population in
477 favour of LIBINTL.
478 * Makefile.am (libctf_nobfd_la_LIBADD): No longer explicitly
479 include $(LIBINTL).
480 (check-DEJAGNU): Pass down to tests as well.
481 * configure: Regenerated.
482 * Makefile.in: Likewise.
483
ee87f50b
NA
4842021-01-27 Nick Alcock <nick.alcock@oracle.com>
485
486 * ctf-string.c (ctf_str_add): Treat adding a NULL as adding "".
487 (ctf_str_add_ref): Likewise.
488 (ctf_str_add_external): Likewise.
489 * ctf-types.c (ctf_type_name_raw): Always return "" for offset 0.
490 * ctf-dedup.c (ctf_dedup_multiple_input_dicts): Don't armour
491 against NULL name.
492 (ctf_dedup_maybe_synthesize_forward): Likewise.
493
5dacd11d
NA
4942021-01-27 Nick Alcock <nick.alcock@oracle.com>
495
496 * ctf-create.c (ctf_serialize): Fix shadowing.
497
caa17049
NA
4982021-01-27 Nick Alcock <nick.alcock@oracle.com>
499
500 * ctf-create.c (ctf_add_encoded): Add check for non-empty name.
501 (ctf_add_forward): Likewise.
502 (ctf_add_typedef): Likewise.
503
78f28b89
NA
5042021-01-27 Nick Alcock <nick.alcock@oracle.com>
505
506 * ctf-open.c (init_types): Rip out code to check anonymous typedef
507 nodes.
508 * ctf-create.c (ctf_add_reftype): Likewise.
509 * ctf-lookup.c (refresh_pptrtab): Likewise.
510
35a01a04
NA
5112021-01-27 Nick Alcock <nick.alcock@oracle.com>
512
513 * ctf-impl.c (_libctf_nonnull_): Add parameters.
514 (LCTF_LINKING): New flag.
515 (ctf_dict_t) <ctf_link_flags>: Mention it.
516 * ctf-link.c (ctf_link): Keep LCTF_LINKING set across call.
517 (ctf_write): Likewise, including in child dictionaries.
518 (ctf_link_shuffle_syms): Make sure ctf_dynsyms is NULL if there
519 are no reported symbols.
520 * ctf-create.c (symtypetab_delete_nonstatic_vars): Make sure
521 the variable has been reported as a symbol by the linker.
522 (symtypetab_skippable): Mention relationship between SYMFP and the
523 flags.
524 (symtypetab_density): Adjust nonnullity. Exit early if no symbols
525 were reported and force-indexing is off (i.e., we are doing a
526 final link).
527 (ctf_serialize): Handle the !LCTF_LINKING case by writing out an
528 indexed, sorted symtypetab (and allow SYMFP to be NULL in this
529 case). Turn sorting off if this is a non-final link. Only delete
530 nonstatic vars if we are filtering symbols and the linker has
531 reported some.
532 * testsuite/libctf-regression/nonstatic-var-section-ld-r*:
533 New test of variable and symtypetab section population when
534 ld -r is used.
535 * testsuite/libctf-regression/nonstatic-var-section-ld-executable.lk:
536 Likewise, when ld of an executable is used.
537 * testsuite/libctf-regression/nonstatic-var-section-ld.lk:
538 Likewise, when ld -shared alone is used.
539 * testsuite/libctf-regression/nonstatic-var-section-ld*.c:
540 Lookup programs for the above.
541 * testsuite/libctf-writable/symtypetab-nonlinker-writeout.*: New
542 test, testing survival of symbols across ctf_write paths.
543 * testsuite/lib/ctf-lib.exp (run_lookup_test): New option,
544 nonshared, suppressing linking of the SOURCE with -shared.
545
26503e2f
NA
5462021-01-19 Nick Alcock <nick.alcock@oracle.com>
547
548 * ctf-create.c (membadd): Transform ""-named members into
549 NULL-named ones.
550 * testsuite/libctf-regression/type-add-unnamed-struct*: New test.
551
e05a3e5a
NA
5522021-01-19 Nick Alcock <nick.alcock@oracle.com>
553
554 * ctf-lookup.c (ctf_lookup_by_name_internal): Do not return the
555 base type if looking up a nonexistent pointer type.
556 * testsuite/libctf-regression/pptrtab*: Test it.
557
5347ed60
AM
5582021-01-13 Alan Modra <amodra@gmail.com>
559
560 * Makefile.in: Regenerate.
561
d546b610
L
5622021-01-12 H.J. Lu <hongjiu.lu@intel.com>
563
564 PR binutils/26792
565 * configure.ac: Use GNU_MAKE_JOBSERVER.
566 * aclocal.m4: Regenerated.
567 * configure: Likewise.
568
83b33c6c
L
5692021-01-11 H.J. Lu <hongjiu.lu@intel.com>
570
571 PR ld/27173
572 * configure: Regenerated.
573
a4966cd9
L
5742021-01-09 H.J. Lu <hongjiu.lu@intel.com>
575
576 * configure: Regenerated.
577
055bc77a
NC
5782021-01-09 Nick Clifton <nickc@redhat.com>
579
580 * 2.36 release branch crated.
581
64307045
AM
5822021-01-09 Alan Modra <amodra@gmail.com>
583
584 * configure: Regenerate.
585
f4782128
ST
5862021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
587
588 * configure: Regenerate.
589
0814dbfb
NA
5902021-01-05 Nick Alcock <nick.alcock@oracle.com>
591
592 * testsuite/libctf-lookup/struct-iteration.c (main):
593 ctf_member_count returns an int.
594
70d3120f
NA
5952021-01-05 Nick Alcock <nick.alcock@oracle.com>
596
597 * Makefile.am (BASEDIR): New.
598 (BFDDIR): Likewise.
599 (check-DEJAGNU): Add development.exp to prerequisites.
600 (development.exp): New.
601 (CONFIG_STATUS_DEPENDENCIES): New.
602 (EXTRA_DEJAGNU_SITE_CONFIG): Likewise.
603 (DISTCLEANFILES): Likewise.
604 * Makefile.in: Regenerated.
605 * testsuite/lib/ctf-lib.exp (check_ctf_available): Return boolean.
606 * testsuite/libctf-lookup/lookup.exp: Call check_ctf_available.
607 * testsuite/libctf-regression/regression.exp: Likewise.
608
b4b6ea46
NA
6092021-01-05 Nick Alcock <nick.alcock@oracle.com>
610
611 * ctf-types.c (ctf_type_aname): Print forwards to unions and enums
612 properly.
613
abe4ca69
NA
6142021-01-05 Nick Alcock <nick.alcock@oracle.com>
615
616 * ctf-impl.h (ctf_dict_t) <ctf_pptrtab>: New.
617 <ctf_pptrtab_len>: New.
618 <ctf_pptrtab_typemax>: New.
619 * ctf-create.c (ctf_serialize): Update accordingly.
620 (ctf_add_reftype): Note that we don't need to update pptrtab here,
621 despite updating ptrtab.
622 * ctf-open.c (ctf_dict_close): Destroy the pptrtab.
623 (ctf_import): Likewise.
624 (ctf_import_unref): Likewise.
625 * ctf-lookup.c (grow_pptrtab): New.
626 (refresh_pptrtab): New, update a pptrtab.
627 (ctf_lookup_by_name): Turn into a wrapper around (and rename to)...
628 (ctf_lookup_by_name_internal): ... this: construct the pptrtab, and
629 use it in addition to the parent's ptrtab when parent dicts are
630 searched.
631 * testsuite/libctf-regression/regression.exp: New testsuite for
632 regression tests.
633 * testsuite/libctf-regression/pptrtab*: New test.
634 * testsuite/libctf-writable/writable.exp: New testsuite for tests of
635 writable CTF dicts.
636 * testsuite/libctf-writable/pptrtab*: New test.
637
8769046e
NA
6382021-01-05 Nick Alcock <nick.alcock@oracle.com>
639
640 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
641
6c3a3877
NA
6422021-01-05 Nick Alcock <nick.alcock@oracle.com>
643
644 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
645 <ctn_next>: ... here.
646 * ctf-util.c (ctf_next_destroy): Unconditionally destroy it.
647 * ctf-lookup.c (ctf_symbol_next): Adjust accordingly.
648 * ctf-types.c (ctf_member_iter): Reimplement in terms of...
649 (ctf_member_next): ... this. Support recursive unnamed member
650 iteration (off by default).
651 (ctf_member_info): Look up members in unnamed sub-structs.
652 * ctf-dedup.c (ctf_dedup_rhash_type): Adjust ctf_member_next call.
653 (ctf_dedup_emit_struct_members): Likewise.
654 * testsuite/libctf-lookup/struct-iteration-ctf.c: Test empty unnamed
655 members, and a normal member after the end.
656 * testsuite/libctf-lookup/struct-iteration.c: Verify that
657 ctf_member_count is consistent with the number of successful returns
658 from a non-recursive ctf_member_next.
659 * testsuite/libctf-lookup/struct-iteration-*: New, test iteration
660 over struct members.
661 * testsuite/libctf-lookup/struct-lookup.c: New test.
662 * testsuite/libctf-lookup/struct-lookup.lk: New test.
663
abed0b07
NA
6642021-01-05 Nick Alcock <nick.alcock@oracle.com>
665
666 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
667 (ctf_link_write): Call it.
668
9bc76971
NA
6692021-01-05 Nick Alcock <nick.alcock@oracle.com>
670
671 * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test.
672 * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input.
673 * testsuite/libctf-lookup/enum-symbol.c: New lookup test.
674
c59e30ed
NA
6752021-01-05 Nick Alcock <nick.alcock@oracle.com>
676
677 * Makefile.am (EXPECT): New.
678 (RUNTEST): Likewise.
679 (RUNTESTFLAGS): Likewise.
680 (CC_FOR_TARGET): Likewise.
681 (check-DEJAGNU): Likewise.
682 (AUTOMAKE_OPTIONS): Add dejagnu.
683 * Makefile.in: Regenerated.
684 * testsuite/config/default.exp: New.
685 * testsuite/lib/ctf-lib.exp: Likewise.
686 * testsuite/libctf-lookup/enum.lk: New test.
687 * testsuite/libctf-lookup/enum-ctf.c: New CTF input.
688 * testsuite/libctf-lookup/enum.c: New lookup test.
689 * testsuite/libctf-lookup/ambiguous-struct*.c: New test.
690 * testsuite/libctf-lookup/lookup.exp: New.
691
1038406a
NA
6922021-01-05 Nick Alcock <nick.alcock@oracle.com>
693
694 * configure.ac (BFD_LIBADD): Remove.
695 (BFD_DEPENDENCIES): Likewise. Remove associated cases.
696 (SHARED_LIBADD): Rename to...
697 (CTF_LIBADD): ... this. Stick in a suitable libiberty even when
698 linking statically.
699 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
700 libctf uses libintl.
701 (libctf_la_LIBADD): Reference libbfd.la directly, not via
702 BFD_LIBADD.
703 (libctf_la_DEPENDENCIES): Remove.
704 * Makefile.in: Regenerate.
705 * configure: Likewise.
706
37002871
NA
7072021-01-05 Nick Alcock <nick.alcock@oracle.com>
708
709 * ctf-decl.c (ctf_decl_push): Exclude slices from the decl stack.
710 * ctf-types.c (ctf_type_aname): No longer deal with slices here.
711 * ctf-dump.c (ctf_dump_membstate_t) <cdm_toplevel_indent>: Constify.
712 (CTF_FT_REFS): New.
713 (CTF_FT_BITFIELD): Likewise.
714 (CTF_FT_ID): Likewise.
715 (ctf_dump_member): Do not do indentation here. Migrate the
716 type-printing parts of this into...
717 (ctf_dump_format_type): ... here, to be shared by all type printers.
718 Get the errno value for non-representable types right. Do not print
719 bitfield info for non-bitfields. Improve the format and indentation
720 of other type output. Shuffle spacing around to make all indentation
721 either 'width of column' or 4 chars.
722 (ctf_dump_label): Pass CTF_FT_REFS to ctf_dump_format_type.
723 (ctf_dump_objts): Likewise. Spacing shuffle.
724 (ctf_dump_var): Likewise.
725 (type_hex_digits): Migrate down in the file, to above its new user.
726 (ctf_dump_type): Indent here instead. Pass CTF_FT_REFS to
727 ctf_dump_format_type. Don't trim off excess linefeeds now we no
728 longer generate them. Dump enumerated types.
729
ffeece6a
NA
7302021-01-05 Nick Alcock <nick.alcock@oracle.com>
731
732 * ctf-types.c (ctf_type_resolve): Improve comment.
733 (ctf_type_size): Yield ECTF_INCOMPLETE when applied to forwards.
734 Emit errors into the right dict.
735 (ctf_type_align): Likewise.
736 * ctf-create.c (ctf_add_member_offset): Yield ECTF_INCOMPLETE
737 when adding a member without explicit offset when this member, or
738 the previous member, is incomplete.
739 * ctf-dump.c (ctf_dump_format_type): Do not try to print the size of
740 forwards.
741 (ctf_dump_member): Do not try to print their alignment.
742
91e7ce2f
NA
7432021-01-05 Nick Alcock <nick.alcock@oracle.com>
744
745 * ctf-dump.c (ctf_dump_objts): Dump by calling ctf_dump_format_type.
746 (ctf_dump_format_type): Don't emit the size for function objects.
747 Dump the element type of arrays like we dump the pointed-to type of
748 pointers, etc.
749
57f97d0e
NA
7502021-01-05 Nick Alcock <nick.alcock@oracle.com>
751
752 * ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs.
753 (ctf_dump_header): Add 0x to the hex magic number.
754 (ctf_dump_str): Add 0x to the hex string offsets.
755 (ctf_dump_membstate_t) <cdm_toplevel_indent>: New.
756 (ctf_dump_type): Adjust. Free it when we're done.
757 (type_hex_digits): New.
758 (ctf_dump_member): Align output depending on the width of the type
759 ID being generated. Use printf padding, not a loop, to generate
760 indentation.
761
b09ad6ea
NA
7622021-01-05 Nick Alcock <nick.alcock@oracle.com>
763
764 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
765
a7c23ac9
NB
7662021-01-04 Nicolas Boulenguez <nicolas@debian.org>
767
768 PR 27117
769 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
770 ACLOCAL_AMFLAGS -I dirs.
771 * configure: Regenerate.
772
250d07de
AM
7732021-01-01 Alan Modra <amodra@gmail.com>
774
775 Update year range in copyright notice of all files.
776
c2795844
AM
777For older changes see ChangeLog-2020
778\f
779Copyright (C) 2021 Free Software Foundation, Inc.
60da9d95 780
c2795844
AM
781Copying and distribution of this file, with or without modification,
782are permitted in any medium without royalty provided the copyright
783notice and this notice are preserved.
60da9d95 784
60da9d95
NA
785Local Variables:
786mode: change-log
787left-margin: 8
c2795844 788fill-column: 74
60da9d95
NA
789version-control: never
790End:
This page took 0.176717 seconds and 4 git commands to generate.