diff options
author | Peter Smith <peter.smith@linaro.org> | 2017-02-09 10:27:57 +0000 |
---|---|---|
committer | Peter Smith <peter.smith@linaro.org> | 2017-02-09 10:27:57 +0000 |
commit | ebfe99414205873984f59772e39940a3c6620bd3 (patch) | |
tree | 5e563b799cdbaaeadc90ac036721764d9c380c68 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | be372d5a0439c0b2bbde8f7beafa9102740ec3fb (diff) | |
download | llvm-ebfe99414205873984f59772e39940a3c6620bd3.zip llvm-ebfe99414205873984f59772e39940a3c6620bd3.tar.gz llvm-ebfe99414205873984f59772e39940a3c6620bd3.tar.bz2 |
[ELF] Use synthetic section to hold copy relocation
When we need a copy relocation we create a synthetic SHT_NOBITS
section that contains the right amount of ZI and assign it to either
.bss or .rel.ro.bss as appropriate. This allows the dynamic relocation
to be placed on the InputSection, removing the last case where a
dynamic relocation is stored as an offset from the OutputSection. This
has the side effect that we can run assignOffsets() after scanRelocs()
without losing the additional ZI needed for the copy relocations.
Differential Revision: https://reviews.llvm.org/D29637
llvm-svn: 294577
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions