summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-02-16 01:10:51 +0000
committerRui Ueyama <ruiu@google.com>2018-02-16 01:10:51 +0000
commit65b620be8a63c8dee5225562a43c6dfc827394a7 (patch)
tree94a131817f542bc3ec34f96ad6d452daf92046e7 /llvm/test
parentda9c122203ee41d66979e906cea81c9ddbd1cfdc (diff)
downloadbcm5719-llvm-65b620be8a63c8dee5225562a43c6dfc827394a7.tar.gz
bcm5719-llvm-65b620be8a63c8dee5225562a43c6dfc827394a7.zip
Relax relocation type checking in a non-ALLOC section.
Even though it doesn't make sense, there seems to be multiple programs in the wild that create PC-relative relocations in non-ALLOC sections. I believe this is caused by the negligence of GNU linkers to not report any errors for such relocations. Currently, lld emits warnings against such relocations and exits. So, you cannot link any program that contains wrong relocations until you fix an issue in a program that generates wrong ELF files. It's often impractical to fix a program because it's not always easy. This patch relaxes the error checking and emit a warning instead. Differential Revision: https://reviews.llvm.org/D43351 llvm-svn: 325307
Diffstat (limited to 'llvm/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud