[PATCH] D14090: [ELF2] R_X86_64_COPY relocation implemented
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 27 09:07:27 PDT 2015
grimar added a comment.
About https://llvm.org/bugs/show_bug.cgi?id=25175:
I found that this patch fixes it for -O3/O2/O1, so both ld and lld produces R_X86_64_COPY _ZSt4cout and executable works fine.
But when I compile with -O0:
#include <iostream>
int main() { std::cout << "hello\n"; }
~/LLVM/build/bin/clang++ -fuse-ld=lld2 -o out -O0 main.c
~/LLVM/build/bin/clang++ -o out-ld -O0 main.c
then out contains R_X86_64_64 _ZSt4cout, but out-ld still has R_X86_64_COPY _ZSt4cout. Is it clang issue of lld one ?
Anyways I think that fix is for another patch.
http://reviews.llvm.org/D14090
More information about the llvm-commits
mailing list