diff options
author | George Rimar <grimar@accesssoftek.com> | 2017-06-01 07:53:58 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2017-06-01 07:53:58 +0000 |
commit | d602987271add15aac3d6d3c751a219f7b30e067 (patch) | |
tree | ae18bede6b1bac19c52c4a839b107c6797cdd92c /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | b940f65cd21da6c3a686c432b070989e11ef1ea6 (diff) | |
download | bcm5719-llvm-d602987271add15aac3d6d3c751a219f7b30e067.tar.gz bcm5719-llvm-d602987271add15aac3d6d3c751a219f7b30e067.zip |
[ELF] - Properly handle R_386_GOTPC relocation.
This is PR33243. R_GOTONLY_PC_FROM_END was not in a list of link time constant
expressions and that was a result of confusiing messages like PR shows:
/usr/bin/ld.lld: error: /usr/lib/go/src/runtime/alg.go:47:
can't create dynamic relocation R_386_GOTPC against local symbol in readonly segment defined in /tmp/nice/go-link-597453838/go.o
Though in reality we just should not have try to create a dynamic relocation for this case at all.
Patch fixes the issue.
Differential revision: https://reviews.llvm.org/D33717
llvm-svn: 304393
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions