sim: mips: merge mips64vr4300 with existing multi-run build
[binutils-gdb.git] / libctf / ChangeLog
index bf138399a393d6cc118fde3d424b95cc20b2a8e7..06df64d33b433457830d0ca8ebd7a74e8600f3f7 100644 (file)
@@ -1,3 +1,293 @@
+2022-07-08  Nick Clifton  <nickc@redhat.com>
+
+       * 2.39 branch created.
+
+2022-01-22  Nick Clifton  <nickc@redhat.com>
+
+       * 2.38 release branch created.
+
+2021-11-08  Nick Alcock  <nick.alcock@oracle.com>
+
+       * doc/ctf-spec.texi: New file.
+       * configure.ac (MAKEINFO): Add.
+       (BUILD_INFO): Likewise.
+       (AC_CONFIG_FILES) [doc/Makefile]: Add.
+       * Makefile.am [BUILD_INFO] (SUBDIRS): Add doc/.
+       * doc/Makefile.am: New file.
+       * doc/Makefile.in: Likewise.
+       * configure: Regenerated.
+       * Makefile.in: Likewise.
+
+2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-types.c (ctf_type_rvisit): Handle nonrepresentable types.
+
+2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-dump.c (ctf_dump_type): Do not abort on error.
+
+2021-09-27  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-lookup.c (ctf_lookup_by_name_internal): Fix pptrtab bounds.
+       * testsuite/libctf-writable/pptrtab-writable-page-deep-lookup.*:
+       New test.
+
+2021-09-27  Nick Alcock  <nick.alcock@oracle.com>
+
+       * testsuite/libctf-lookup/enum-symbol.c: Remove unused label.
+       * testsuite/libctf-lookup/conflicting-type-syms.c: Remove unused
+       variables.
+       * testsuite/libctf-regression/pptrtab.c: Likewise.
+       * testsuite/libctf-regression/type-add-unnamed-struct.c: Likewise.
+       * testsuite/libctf-writable/pptrtab.c: Likewise.
+       * testsuite/libctf-writable/reserialize-strtab-corruption.c:
+       Likewise.
+       * testsuite/libctf-regression/nonstatic-var-section-ld-r.c: Fix
+       format string.
+       * testsuite/libctf-regression/nonstatic-var-section-ld.c:
+       Likewise.
+       * testsuite/libctf-regression/nonstatic-var-section-ld.lk: Adjust.
+       * testsuite/libctf-writable/symtypetab-nonlinker-writeout.c: Fix
+       initializer.
+
+2021-09-27  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-open.c (ctf_bufopen_internal): Don't complain about corrupt
+       function index symtypetab sections if this is an old-format
+       function symtypetab section (which should be ignored in any case).
+       Fix bad grammar.
+
+2021-09-27  Nick Alcock  <nick.alcock@oracle.com>
+
+       * configure: Regenerate.
+       * Makefile.in: Regenerate.
+
+2021-09-27  Nick Alcock  <nick.alcock@oracle.com>
+
+       PR libctf/27967
+       * configure.ac (VERSION_FLAGS): Replace with...
+       (ac_cv_libctf_version_script): ... this multiple test.
+       (VERSION_FLAGS_NOBFD): Substitute this too.
+       * Makefile.am (libctf_nobfd_la_LDFLAGS): Use it.  Split out...
+       (libctf_ldflags_nover): ... non-versioning flags here.
+       (libctf_la_LDFLAGS): Use it.
+       * libctf.ver: Give every symbol not in libctf-nobfd a comment on
+       the same line noting as much.
+
+2021-09-27  Nick Alcock  <nick.alcock@oracle.com>
+
+       PR libctf/27360
+       * Makefile.am (libctf_la_LIBADD): Link against libiberty
+       before pulling in libbfd.la or pulling in libctf-nobfd.la.
+       * Makefile.in: Regenerate.
+
+2021-07-03  Nick Clifton  <nickc@redhat.com>
+
+       * 2.37 release branch created.
+
+2021-05-09  Alan Modra  <amodra@gmail.com>
+
+       * ctf-impl.h (ctf_dynset_eq_string): Don't declare.
+       * ctf-hash.c (ctf_dynset_eq_string): Delete function.
+       * ctf-dedup.c (make_set_element): Use htab_eq_string.
+       (ctf_dedup_atoms_init, ADD_CITER, ctf_dedup_init): Likewise.
+       (ctf_dedup_conflictify_unshared): Likewise.
+       (ctf_dedup_walk_output_mapping): Likewise.
+
+2021-05-06  Nick Alcock  <nick.alcock@oracle.com>
+
+       * testsuite/lib/ctf-lib.exp: Use -gctf, not -gt.
+       * testsuite/libctf-regression/nonstatic-var-section-ld-r.lk:
+       Hidden symbols now get into the symtypetab anyway.
+
+2021-05-06  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-open.c (init_types): Unknown types may have names.
+       * ctf-types.c (ctf_type_resolve): CTF_K_UNKNOWN is as
+       non-representable as type ID 0.
+       (ctf_type_aname): Print unknown types.
+       * ctf-dedup.c (ctf_dedup_hash_type): Do not early-exit for
+       CTF_K_UNKNOWN types: they have real hash values now.
+       (ctf_dedup_rwalk_one_output_mapping): Treat CTF_K_UNKNOWN types
+       like other types with no referents: call the callback and do not
+       skip them.
+       (ctf_dedup_emit_type): Emit via...
+       * ctf-create.c (ctf_add_unknown): ... this new function.
+       * libctf.ver (LIBCTF_1.2): Add it.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * configure.ac: Check for dlsym, not dlopen.
+       * configure: Regenerate.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * testsuite/libctf-writable/symtypetab-nonlinker-writeout.c: Don't
+       leak buf.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       PR libctf/27628
+       * ctf-lookup.c (isqualifier): Don't dereference out-of-bounds
+       qhash values.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-open-bfd.c (ctf_bfdopen_ctfsect): Initialize debugging.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       PR libctf/27628
+       * ctf-serialize.c (ctf_emit_type_sect): Allow for a NULL vlen in
+       CTF_K_FUNCTION types.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-dump.c (ctf_dump_format_type): Don't emit size or alignment
+       on error.
+
+2021-03-21  Alan Modra  <amodra@gmail.com>
+
+       * ctf-impl.h: Include string.h.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-types.c (ctf_type_encoding): Support, after a fashion, for enums.
+       * ctf-dump.c (ctf_dump_format_type): Do not report enums' degenerate
+       encoding.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-dedup.c (ctf_dedup_rhash_type): Report errors on the input
+       dict properly.
+       * ctf-open.c (ctf_bufopen_internal): Report errors initializing
+       the atoms table.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_next_t) <ctn_tp>: New.
+       <u.ctn_mp>: Remove.
+       <u.ctn_lmp>: Remove.
+       <u.ctn_vlen>: New.
+       * ctf-types.c (ctf_struct_member): New.
+       (ctf_member_next): Use it, dropping separate large/small code paths.
+       (ctf_type_align): Likewise.
+       (ctf_member_info): Likewise.
+       (ctf_type_rvisit): Likewise.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_dtdef_t) <dtu_members>: Remove.
+       <dtd_u>: Likewise.
+       (ctf_dmdef_t): Remove.
+       (struct ctf_next) <u.ctn_dmd>: Remove.
+       * ctf-create.c (INITIAL_VLEN): New, more-or-less arbitrary initial
+       vlen size.
+       (ctf_add_enum): Use it.
+       (ctf_dtd_delete): Do not free the (removed) dmd; remove string
+       refs from the vlen on struct deletion.
+       (ctf_add_struct_sized): Populate the vlen: do it by hand if
+       promoting forwards.  Always populate the full-size
+       lsizehi/lsizelo members.
+       (ctf_add_union_sized): Likewise.
+       (ctf_add_member_offset): Set up the vlen rather than the dmd.
+       Expand it as needed, repointing string refs via
+       ctf_str_move_pending. Add the member names as pending strings.
+       Always populate the full-size lsizehi/lsizelo members.
+       (membadd): Remove, folding back into...
+       (ctf_add_type_internal): ... here, adding via an ordinary
+       ctf_add_struct_sized and _next iteration rather than doing
+       everything by hand.
+       * ctf-serialize.c (ctf_copy_smembers): Remove this...
+       (ctf_copy_lmembers): ... and this...
+       (ctf_emit_type_sect): ... folding into here. Figure out if a
+       ctf_stype_t is needed here, not in ctf_add_*_sized.
+       (ctf_type_sect_size): Figure out the ctf_stype_t stuff the same
+       way here.
+       * ctf-types.c (ctf_member_next): Remove the dmd path and always
+       use the vlen.  Force large-structure usage for dynamic types.
+       (ctf_type_align): Likewise.
+       (ctf_member_info): Likewise.
+       (ctf_type_rvisit): Likewise.
+       * testsuite/libctf-regression/type-add-unnamed-struct-ctf.c: Add a
+       self-referential type to this test.
+       * testsuite/libctf-regression/type-add-unnamed-struct.c: Adjusted
+       accordingly.
+       * testsuite/libctf-regression/type-add-unnamed-struct.lk: Likewise.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_dtdef_t) <dtd_vlen_alloc>: New.
+       (ctf_str_move_pending): Declare.
+       * ctf-string.c (ctf_str_add_ref_internal): Fix error return.
+       (ctf_str_move_pending): New.
+       * ctf-create.c (ctf_grow_vlen): New.
+       (ctf_dtd_delete): Zero out the vlen_alloc after free.  Free the
+       vlen later: iterate over it and free enum name refs first.
+       (ctf_add_generic): Populate dtd_vlen_alloc from vlen.
+       (ctf_add_enum): populate the vlen; do it by hand if promoting
+       forwards.
+       (ctf_add_enumerator): Set up the vlen rather than the dmd.  Expand
+       it as needed, repointing string refs via ctf_str_move_pending. Add
+       the enumerand names as pending strings.
+       * ctf-serialize.c (ctf_copy_emembers): Remove.
+       (ctf_emit_type_sect): Copy the vlen into place and ref the
+       strings.
+       * ctf-types.c (ctf_enum_next): The dynamic portion now uses
+       the same code as the non-dynamic.
+       (ctf_enum_name): Likewise.
+       (ctf_enum_value): Likewise.
+       * testsuite/libctf-lookup/enum-many-ctf.c: New test.
+       * testsuite/libctf-lookup/enum-many.lk: New test.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-hash.c (ctf_dynset_elements): New.
+       * ctf-impl.h (ctf_dynset_elements): Declare it.
+       (ctf_str_add_pending): Likewise.
+       (ctf_dict_t) <ctf_str_pending_ref>: New, set of refs that must be
+       added during serialization.
+       * ctf-string.c (ctf_str_create_atoms): Initialize it.
+       (CTF_STR_ADD_REF): New flag.
+       (CTF_STR_MAKE_PROVISIONAL): Likewise.
+       (CTF_STR_PENDING_REF): Likewise.
+       (ctf_str_add_ref_internal): Take a flags word rather than int
+       params.  Populate, and clear out, ctf_str_pending_ref.
+       (ctf_str_add): Adjust accordingly.
+       (ctf_str_add_external): Likewise.
+       (ctf_str_add_pending): New.
+       (ctf_str_remove_ref): Also remove the potential ref if it is a
+       pending ref.
+       * ctf-serialize.c (ctf_serialize): Prohibit addition of strings
+       with ctf_str_add_ref before serialization.  Ensure that the
+       ctf_str_pending_ref set is empty before strtab finalization.
+       (ctf_emit_type_sect): Add a ref to the ctt_name.
+       * ctf-create.c (ctf_add_generic): Add the ctt_name as a pending
+       ref.
+       * testsuite/libctf-writable/reserialize-strtab-corruption.*: New test.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-serialize.c (ctf_serialize): Preserve ctf_typemax across
+       serialization.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_dtdef_t) <dtd_u.dtu_argv>: Remove.
+       * ctf-create.c (ctf_dtd_delete): No longer free it.
+       (ctf_add_function): Use the dtd_vlen, not dtu_argv.  Properly align.
+       * ctf-serialize.c (ctf_emit_type_sect): Just copy the dtd_vlen.
+       * ctf-types.c (ctf_func_type_info): Just use the vlen.
+       (ctf_func_type_args): Likewise.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_dtdef_t) <dtd_u.dtu_arr>: Remove.
+       * ctf-create.c (ctf_add_array): Use the dtd_vlen, not dtu_arr.
+       (ctf_set_array): Likewise.
+       * ctf-serialize.c (ctf_emit_type_sect): Just copy the dtd_vlen.
+       * ctf-types.c (ctf_array_info): Just use the vlen.
+
 2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
 
        * ctf-impl.h (ctf_dtdef_t) <dtd_u.dtu_enc>: Remove.
 
 For older changes see ChangeLog-2020
 \f
-Copyright (C) 2021 Free Software Foundation, Inc.
+Copyright (C) 2021-2022 Free Software Foundation, Inc.
 
 Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright