linker: Permit CTFv3 containers

Reviewed by:	Domagoj Stolfa
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34362
This commit is contained in:
Mark Johnston 2022-03-07 08:53:05 -05:00
parent d9175438c0
commit 8dbae4ce32
1 changed files with 4 additions and 4 deletions

View File

@ -182,10 +182,10 @@ link_elf_ctf_get(linker_file_t lf, linker_ctf_t *lc)
goto out; goto out;
} }
/* Check if version 2. */ if (cth.cth_version != CTF_VERSION_2 &&
if (cth.cth_version != CTF_VERSION_2) { cth.cth_version != CTF_VERSION_3) {
printf("%s(%d): module %s CTF format version is %d " printf(
"(2 expected)\n", "%s(%d): module %s CTF format has unsupported version %d\n",
__func__, __LINE__, lf->pathname, cth.cth_version); __func__, __LINE__, lf->pathname, cth.cth_version);
error = EFTYPE; error = EFTYPE;
goto out; goto out;