binutils-gdb/libctf
Nick Alcock eb5323fdf8 libctf, ld: handle nonrepresentable types better
ctf_type_visit (used, among other things, by the type dumping code) was
aborting when it saw a nonrepresentable type anywhere: even a single
structure member with a nonrepresentable type caused an abort with
ECTF_NONREPRESENTABLE.  This is not useful behaviour, given that the
abort comes from a type-resolution we are only doing in order to
determine whether the type is a structure or union.  We know
nonrepresentable types can't be either, so handle that case and
pass the nonrepresentable type down.

(The added test verifies that the dumper now handles this case and
prints nonrepresentable structure members as it already does
nonrepresentable top-level types, rather than skipping the whole
structure -- or, without the previous commit, skipping the whole types
section.)

ld/ChangeLog
2021-10-25  Nick Alcock  <nick.alcock@oracle.com>

	* testsuite/ld-ctf/nonrepresentable-member.*: New test.

libctf/ChangeLog
2021-10-25  Nick Alcock  <nick.alcock@oracle.com>

	* ctf-types.c (ctf_type_rvisit): Handle nonrepresentable types.
2021-10-25 11:17:05 +01:00
..
testsuite libctf, lookup: fix bounds of pptrtab lookup 2021-09-27 20:31:26 +01:00
.gitignore
aclocal.m4
ChangeLog libctf, ld: handle nonrepresentable types better 2021-10-25 11:17:05 +01:00
ChangeLog-2020
config.h.in
configure configure: regenerate in all projects that use libtool.m4 2021-09-27 20:31:24 +01:00
configure.ac libctf: try several possibilities for linker versioning flags 2021-09-27 20:31:24 +01:00
ctf-archive.c
ctf-create.c
ctf-decl.c
ctf-decls.h
ctf-dedup.c Use htab_eq_string in libctf 2021-05-09 12:28:32 +09:30
ctf-dump.c libctf: dump: do not stop dumping types on error 2021-10-25 11:17:04 +01:00
ctf-endian.h
ctf-error.c
ctf-hash.c Use htab_eq_string in libctf 2021-05-09 12:28:32 +09:30
ctf-impl.h Use htab_eq_string in libctf 2021-05-09 12:28:32 +09:30
ctf-inlines.h
ctf-intl.h
ctf-labels.c
ctf-link.c
ctf-lookup.c libctf, lookup: fix bounds of pptrtab lookup 2021-09-27 20:31:26 +01:00
ctf-open-bfd.c
ctf-open.c libctf: fix handling of CTF symtypetab sections emitted by older GCC 2021-09-27 20:31:25 +01:00
ctf-qsort_r.c
ctf-serialize.c
ctf-sha1.c
ctf-sha1.h
ctf-string.c
ctf-subr.c
ctf-types.c libctf, ld: handle nonrepresentable types better 2021-10-25 11:17:05 +01:00
ctf-util.c
elf.h
libctf.ver libctf: try several possibilities for linker versioning flags 2021-09-27 20:31:24 +01:00
Makefile.am libctf: try several possibilities for linker versioning flags 2021-09-27 20:31:24 +01:00
Makefile.in configure: regenerate in all projects that use libtool.m4 2021-09-27 20:31:24 +01:00
NEWS
swap.h