bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/29349] ADR instructions generate wrong offsets in Thumb code fo


From: Mr.Bossman075 at gmail dot com
Subject: [Bug gas/29349] ADR instructions generate wrong offsets in Thumb code for armv7-m
Date: Mon, 11 Jul 2022 19:27:07 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29349

--- Comment #4 from Jesse Taube <Mr.Bossman075 at gmail dot com> ---
I'm sure when I tested it, that commit broke u-boot. It seems like there are
two bugs causing the same problem. The way U-boot has it written is like bugB
notice the `type` is after. Which does seem to change after d3e52e120. Which I
noticed a while ago but didn't look into it. If it was written as you wrote it,
the bug would have appeared at 52a86f843b6. To be fair I'm not very familiar
with Assembly, I just know it's broken if you would like to see U-Boots side.
https://lore.kernel.org/all/20220710070953.933688-1-Mr.Bossman075@gmail.com/t/

Thanks for looking into this much appreciated.

.syntax unified
.global bugA;
.type bugA, %function
.align 4
bugA:
         adr     r3, bugA
.size bugA, .-bugA

.global bugB;
.align 4
bugB:
         adr     r3, bugB
.size bugB, .-bugB
.type bugB, %function

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]