[llvm-bugs] [Bug 38725] New: [ARM?] PROVIDE (in linker script) produces "Address 0xdeadbeef is out of bounds" in objdump output

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 27 10:49:03 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38725

            Bug ID: 38725
           Summary: [ARM?] PROVIDE (in linker script) produces "Address
                    0xdeadbeef is out of bounds" in objdump output
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: japaricious at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20780
  --> https://bugs.llvm.org/attachment.cgi?id=20780&action=edit
output of --reproduce

# LLD

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

https://github.com/llvm-mirror/llvm/commit/a26aa426258a8bf1e8307b36514fa18f6bc4bb8f

```
$ 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>
```

-- 
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/20180827/d5238727/attachment.html>


More information about the llvm-bugs mailing list