[llvm] [AVR] Emit relocation record for local branch (PR #145291)

Tom Vijlbrief via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 23 01:42:40 PDT 2025


https://github.com/tomtor created https://github.com/llvm/llvm-project/pull/145291

Fix https://github.com/llvm/llvm-project/issues/133579 -mrelax issue

>From ee2d77d2a94302c7650f4f26173f15d581fabf43 Mon Sep 17 00:00:00 2001
From: Tom Vijlbrief <tvijlbrief at gmail.com>
Date: Mon, 23 Jun 2025 10:41:09 +0200
Subject: [PATCH] [AVR] Emit relocation record for local branch

Fix https://github.com/llvm/llvm-project/issues/133579
-mrelax issue
---
 llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
index 41341387b42c2..50529e83512d2 100644
--- a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
+++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
@@ -439,8 +439,8 @@ MCFixupKindInfo AVRAsmBackend::getFixupKindInfo(MCFixupKind Kind) const {
       // name                    offset  bits  flags
       {"fixup_32", 0, 32, 0},
 
-      {"fixup_7_pcrel", 3, 7, MCFixupKindInfo::FKF_IsPCRel},
-      {"fixup_13_pcrel", 0, 12, MCFixupKindInfo::FKF_IsPCRel},
+      {"fixup_7_pcrel", 3, 7, 0},
+      {"fixup_13_pcrel", 0, 12, 0},
 
       {"fixup_16", 0, 16, 0},
       {"fixup_16_pm", 0, 16, 0},



More information about the llvm-commits mailing list