[LLVMbugs] [Bug 21059] New: llvm-objdump -r reports relocation against symbol `Unknown' on x86

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 24 14:26:00 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=21059

            Bug ID: 21059
           Summary: llvm-objdump -r reports relocation against symbol
                    `Unknown' on x86
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hjl.tools at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

On Fedora 20/x86-64, I got

[hjl at gnu-6 X86]$ /opt/llvm/master/bin/llvm-objdump -r /lib/crti.o  

/lib/crti.o:    file format ELF32-i386

RELOCATION RECORDS FOR [.rel.init]:
5 R_386_PC32 Unknown
11 R_386_GOTPC Unknown
17 R_386_GOT32 Unknown
26 R_386_PLT32 Unknown

RELOCATION RECORDS FOR [.rel.fini]:
5 R_386_PC32 Unknown
11 R_386_GOTPC Unknown

[hjl at gnu-6 X86]$ /opt/llvm/master/bin/llvm-objdump -r /lib64/crti.o  

/lib64/crti.o:    file format ELF64-x86-64

RELOCATION RECORDS FOR [.rela.init]:
7 R_X86_64_GOTPCREL Unknown
17 R_X86_64_PLT32 Unknown

[hjl at gnu-6 X86]$ objdump -r /lib/crti.o  

/lib/crti.o:     file format elf32-i386

RELOCATION RECORDS FOR [.init]:
OFFSET   TYPE              VALUE 
00000005 R_386_PC32        __x86.get_pc_thunk.bx
0000000b R_386_GOTPC       _GLOBAL_OFFSET_TABLE_
00000011 R_386_GOT32       __gmon_start__
0000001a R_386_PLT32       __gmon_start__


RELOCATION RECORDS FOR [.fini]:
OFFSET   TYPE              VALUE 
00000005 R_386_PC32        __x86.get_pc_thunk.bx
0000000b R_386_GOTPC       _GLOBAL_OFFSET_TABLE_


[hjl at gnu-6 X86]$ objdump -r /lib64/crti.o  

/lib64/crti.o:     file format elf64-x86-64

RELOCATION RECORDS FOR [.init]:
OFFSET           TYPE              VALUE 
0000000000000007 R_X86_64_GOTPCREL  __gmon_start__-0x0000000000000004
0000000000000011 R_X86_64_PLT32    __gmon_start__-0x0000000000000004


[hjl at gnu-6 X86]$

-- 
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/20140924/fd16359c/attachment.html>


More information about the llvm-bugs mailing list