diff options
author | Rui Ueyama <ruiu@google.com> | 2014-11-06 01:03:23 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-11-06 01:03:23 +0000 |
commit | 30804c42207801541c84346fcc8ec6e5333def34 (patch) | |
tree | 8fcdbd52837c249804e5572b3ecaf0694a059104 /llvm/lib/Support/SourceMgr.cpp | |
parent | aa0f6734136338b0ceb7e782acc289d529e66f23 (diff) | |
download | llvm-30804c42207801541c84346fcc8ec6e5333def34.zip llvm-30804c42207801541c84346fcc8ec6e5333def34.tar.gz llvm-30804c42207801541c84346fcc8ec6e5333def34.tar.bz2 |
[PECOFF] Fix SECREL relocations.
SECREL relocation's value is the offset to the beginning of the section.
Because of the off-by-one error, if a SECREL relocation target is at the
beginning of a section, it got wrong value.
Added a test that would have caught this.
llvm-svn: 221420
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions