<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?] PROVIDE (in linker script) produces "Address 0xdeadbeef is out of bounds" in objdump output"
   href="https://bugs.llvm.org/show_bug.cgi?id=38725">38725</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ARM?] PROVIDE (in linker script) produces "Address 0xdeadbeef is out of bounds" in objdump output
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>ELF
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>japaricious@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20780" name="attach_20780" title="output of --reproduce">attachment 20780</a> <a href="attachment.cgi?id=20780&action=edit" title="output of --reproduce">[details]</a></span>
output of --reproduce

# LLD

LLD 8.0.0 (git://github.com/llvm-mirror/lld.git
2ceec34547eb3c8df4811897368826448451846e) (compatible with GNU linkers)

<a href="https://github.com/llvm-mirror/llvm/commit/a26aa426258a8bf1e8307b36514fa18f6bc4bb8f">https://github.com/llvm-mirror/llvm/commit/a26aa426258a8bf1e8307b36514fa18f6bc4bb8f</a>

```
$ lld -flavor gnu app.o -o app --gc-sections -T link.x --reproduce repro.tar

$ arm-none-eabi-objdump -Cd app
app:     file format elf32-littlearm

Disassembly of section .text:

08000040 <DefaultHandler>:
 8000040:       Address 0x0000000008000040 is out of bounds.


08000041 <BusFault>:
 8000041:       Address 0x0000000008000041 is out of bounds.


08000042 <Reset>:
 8000042:       be00            bkpt    0x0000
 8000044:       e7fe            b.n     8000044 <Reset+0x2>
```

# GNU LD

GNU ld (GNU Binutils) 2.31.1

```
$ arm-none-eabi-ld app.o -o app --gc-sections -T link.x

$ arm-none-eabi-objdump -Cd app

app:     file format elf32-littlearm

Disassembly of section .text:

08000040 <DefaultHandler>:
 8000040:       e7fe            b.n     8000040 <DefaultHandler>

08000042 <Reset>:
 8000042:       be00            bkpt    0x0000
 8000044:       e7fe            b.n     8000044 <Reset+0x2>
```</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>