[llvm-bugs] [Bug 44929] New: [arm] After 2bfee35cb86, "unsupported relocation on symbol"

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 15 13:01:32 PST 2020


            Bug ID: 44929
           Summary: [arm] After 2bfee35cb86, "unsupported relocation on
           Product: new-bugs
           Version: 10.0
          Hardware: PC
                OS: Windows 2000
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

("[MC][ELF] Emit a relocation if target is defined in the same section and is
non-local"), the following assembly for arm no longer compiles:

# clang -target armv6-gnueabihf -c adr-reloc.s
adr r0, foo
.global foo


$ clang-llvmorg-10-init-17163-g241f330d6ba -target armv6-gnueabihf-freebsd13.0
-c adr-reloc.s

$ llvm-objdump -d adr-reloc.o

adr-reloc.o:    file format ELF32-arm-little

Disassembly of section .text:

00000000 $a.0:
       0: 04 00 4f e2                   sub     r0, pc, #4


$ clang-llvmorg-10-init-17164-g2bfee35cb86 -target armv6-gnueabihf -c
adr-reloc.s:2:1: error: unsupported relocation on symbol
adr r0, foo

This is a regression.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200215/26af90f2/attachment.html>

More information about the llvm-bugs mailing list