From d1799fc6db692995281040245aefdd453572567b Mon Sep 17 00:00:00 2001 From: liqiang Date: Wed, 18 Jun 2025 09:43:32 +0000 Subject: [PATCH] =?UTF-8?q?update=20upatch-diff/elf-correlate.c.=20upatch-?= =?UTF-8?q?diff=E5=A4=84=E7=90=86section=E5=90=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E2=80=9C.unlikely.=E2=80=9D=E5=B7=AE=E5=BC=82=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=89=93=E8=A1=A5=E4=B8=81=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liqiang --- upatch-diff/elf-correlate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upatch-diff/elf-correlate.c b/upatch-diff/elf-correlate.c index 8e2f7659..5991c2cf 100644 --- a/upatch-diff/elf-correlate.c +++ b/upatch-diff/elf-correlate.c @@ -38,6 +38,10 @@ static void correlate_symbol(struct symbol *sym_orig, sym_patched->name, sym_orig->name); sym_patched->name = sym_orig->name; } + if (sym_patched->sec && sym_orig->sec) { + sym_patched->sec->twin = sym_orig->sec; + sym_orig->sec->twin = sym_patched->sec; + } } void upatch_correlate_symbols(struct upatch_elf *uelf_source, -- Gitee