<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [arm] After 2bfee35cb86, "unsupported relocation on symbol""
   href="https://bugs.llvm.org/show_bug.cgi?id=44929">44929</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[arm] After 2bfee35cb86, "unsupported relocation on symbol"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows 2000
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dimitry@andric.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>After
<a href="https://github.com/llvm/llvm-project/commit/2bfee35cb860859b436de0b780fbd00d68e198a4">https://github.com/llvm/llvm-project/commit/2bfee35cb860859b436de0b780fbd00d68e198a4</a>
("[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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>