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

Rafael Ávila de Espíndola <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Rafael Ávila de Espíndola <[email protected]> ---
It does look like a gold issue. It reproduces with no plugin at all:

$ cat test.s 
    .file    "test.bc"
    .text
    .globl    f
    .align    16, 0x90
    .type    f,@function
f:                                      # @f
    .cfi_startproc
# BB#0:
    pushq    %rax
.Ltmp1:
    .cfi_def_cfa_offset 16
    callq    _stdio_init
    popq    %rax
    ret
.Ltmp2:
    .size    f, .Ltmp2-f
    .cfi_endproc

    .hidden    _stdio_init
    .weak    _stdio_init

    .section    ".note.GNU-stack","",@progbits


Trying to link that into a shared library causes an error:

test.o: requires dynamic R_X86_64_PC32 reloc against '_stdio_init' which may
overflow at runtime; recompile with -fPIC
error: hidden symbol '_stdio_init' is not defined locally

The same link link line with the bfd linker works and produces a call to
address 0 since the weak symbol is undefined.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to