[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
https://bugs.llvm.org/show_bug.cgi?id=44929
Bug ID: 44929
Summary: [arm] After 2bfee35cb86, "unsupported relocation on
symbol"
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
After
https://github.com/llvm/llvm-project/commit/2bfee35cb860859b436de0b780fbd00d68e198a4
("[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
foo:
Before:
$ 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
After:
$ clang-llvmorg-10-init-17164-g2bfee35cb86 -target armv6-gnueabihf -c
adr-reloc.s
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