binutils-gdb/libctf
Nick Alcock 6bbf9da892 libctf: create: don't add forwards if the type added already exists
This is what ctf_add_forward is documented to do, but it's not what it
actually does: the code is quite happy to add forwards that duplicate
existing structs, etc.

This is obviously wrong and breaks both the nondeduplicating linker
and the upcoming deduplicator, as well as allowing ordinary callers of
ctf_add_type to corrupt the dictionary by just adding the same root-
visible forward more than once.

libctf/
	* ctf-create.c (ctf_add_forward): Don't add forwards to
	types that already exist.
2020-06-26 15:56:39 +01:00
..
aclocal.m4 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ChangeLog libctf: create: don't add forwards if the type added already exists 2020-06-26 15:56:39 +01:00
config.h.in libctf: Add configure check for asprintf (for MinGW) 2020-01-05 09:50:27 +04:00
configure libctf: Add configure check for asprintf (for MinGW) 2020-01-05 09:50:27 +04:00
configure.ac libctf: Add configure check for asprintf (for MinGW) 2020-01-05 09:50:27 +04:00
ctf-archive.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-create.c libctf: create: don't add forwards if the type added already exists 2020-06-26 15:56:39 +01:00
ctf-decl.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-decls.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-dump.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-endian.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-error.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-hash.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-impl.h libctf: create: non-root-visible types should not appear in name tables 2020-06-26 15:56:39 +01:00
ctf-labels.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-link.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-lookup.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-open-bfd.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-open.c libctf: create: non-root-visible types should not appear in name tables 2020-06-26 15:56:39 +01:00
ctf-qsort_r.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-string.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-subr.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-types.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ctf-util.c Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
elf.h Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
libctf.ver Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
Makefile.am Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
Makefile.in Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
swap.h libctf: Mark bswap_identity_64 inline function as static. 2020-03-11 17:48:49 +10:30