From ce2f49b9a3c07fbe2f6a096a10f10f205657a92b Mon Sep 17 00:00:00 2001 From: schulz Date: Sun, 14 Apr 2019 06:47:31 +0000 Subject: [PATCH] bit shift was left, of course, write in comment what code really does! git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@56242 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/arm-raspi/boot/elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm-raspi/boot/elf.c b/arch/arm-raspi/boot/elf.c index 028c9af253..576dcdab70 100644 --- a/arch/arm-raspi/boot/elf.c +++ b/arch/arm-raspi/boot/elf.c @@ -350,7 +350,7 @@ static int relocate(struct elfheader *eh, struct sheader *sh, long shrel_idx, offset = ((offset & 0xf0000) >> 4) | (offset & 0xfff); offset = (offset ^ 0x8000) - 0x8000; - /* If MOVT relocation shift the offset 16 bits right */ + /* If MOVT relocation shift the offset 16 bits left */ if (ELF_R_TYPE(rel->info) == R_ARM_MOVT_ABS) offset <<= 16; -- 2.11.4.GIT