From 92d344dffe9100be71e2af3c3fcd9aaea3919bf1 Mon Sep 17 00:00:00 2001
From: renoseven <dev@renoseven.net>
Date: Mon, 28 Apr 2025 15:28:45 +0800
Subject: [PATCH] upatch-diff: allow tls variable changes

Signed-off-by: renoseven <dev@renoseven.net>
---
 upatch-diff/create-diff-object.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/upatch-diff/create-diff-object.c b/upatch-diff/create-diff-object.c
index 9c3bc7e..371bb81 100644
--- a/upatch-diff/create-diff-object.c
+++ b/upatch-diff/create-diff-object.c
@@ -837,11 +837,6 @@ static int verify_symbol_patchability(struct upatch_elf *uelf)
         if (sym->include == 0) {
             continue;
         }
-        if (sym->type == STT_TLS) {
-            log_warn("Symbol '%s' is included, but TLS is not supported\n",
-                sym->name);
-            err_count++;
-        }
         if (sym->type == STT_GNU_IFUNC) {
             log_warn("Symbol '%s' is included, but IFUNC is not supported\n",
                 sym->name);
-- 
2.43.0