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

            Bug ID: 31252
           Summary: relocations to local symbols not handled with -r
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: rafael.espind...@gmail.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Given an input with

----------------------

    leaq    .Lstr(%rip), %rdi

    .section    .rodata.str1.1,"aMS",@progbits,1
    .Lstr:
    .asciz "abc\n"
---------------------


lld -r will produce

000000000003  000000000002 R_X86_64_PC32                        -4

while bfd produces

000000000003  000400000002 R_X86_64_PC32     0000000000000000 .Lstr - 4

note that lld lost the symbol.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to