aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-dedup.c
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2025-03-24 15:55:52 +0000
committerNick Alcock <nick.alcock@oracle.com>2025-03-24 15:55:52 +0000
commit7d40d0bec267bd127813c75587fd93be4a0a5ac1 (patch)
treeb3cb5a2337a13210d498fa62cc7c9a494fde5b78 /libctf/ctf-dedup.c
parent12e265f2c88d7d9967db8e39845001d8a748f698 (diff)
downloadbinutils-7d40d0bec267bd127813c75587fd93be4a0a5ac1.zip
binutils-7d40d0bec267bd127813c75587fd93be4a0a5ac1.tar.gz
binutils-7d40d0bec267bd127813c75587fd93be4a0a5ac1.tar.bz2
libctf: fix CTF_K_FUNC_LINKAGE
This has its linkage not in the vlen region, but *stuffed into the actual vlen in the info word* (why this is inconsistent with the way CTF_K_VAR works, I have no idea).
Diffstat (limited to 'libctf/ctf-dedup.c')
-rw-r--r--libctf/ctf-dedup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libctf/ctf-dedup.c b/libctf/ctf-dedup.c
index 60878d7..6ccf4ae 100644
--- a/libctf/ctf-dedup.c
+++ b/libctf/ctf-dedup.c
@@ -3357,6 +3357,8 @@ ctf_dedup_emit_type (const char *hval, ctf_dict_t *output, ctf_dict_t **inputs,
if ((linkage = ctf_type_linkage (input, type)) < 0)
goto err_input;
+ ctf_dprintf ("Linkage: %i\n", linkage);
+
if ((new_type = ctf_add_function_linkage (target, isroot, ref, name,
linkage)) == CTF_ERR)
goto err_target; /* errno is set for us. */