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

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 22 22:03:00 PDT 2020


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

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
                 CC|                            |i at maskray.me

--- Comment #2 from Fangrui Song <i at maskray.me> ---
Tested with lld built at HEAD today. The section contents match GNU ld. I
confirm that GNU objdump may have a disassembly problem.

% arm-linux-gnueabi-objdump -d 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>



% llvm-objdump -dr app 

app:    file format elf32-littlearm


Disassembly of section .text:

08000040 <DefaultHandler>:
 8000040: fe e7 00 be                   mcrlt   p7, #0, lr, c0, c14, #7

08000041 <UsageFault>:
 8000041: e7 00 be fe                   cdp2    p0, #11, c0, c14, c7, #7

08000042 <Reset>:
 8000042: 00 be fe e7                   ldrb    r11, [lr, r0, lsl #28]!

-- 
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/20200323/87304425/attachment.html>


More information about the llvm-bugs mailing list