[PATCH] D39765: [coff] use relative instead of absolute __safe_se_handler_base when present

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 15:11:06 PST 2017


inglorion created this revision.

__safe_se_handler_base should be either absolute 0 (when no SafeSEH
table is present), or relative to the image base (when the table is
present). An earlier change inadvertedly made the symbol absolute in
both cases, leading to the SafeSEH table not being locatble at run
time. This change fixes that and updates the safeseh test to check for
the presence of the relocation.


https://reviews.llvm.org/D39765

Files:
  lld/COFF/Writer.cpp
  lld/test/COFF/safeseh.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39765.121995.patch
Type: text/x-patch
Size: 3649 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171107/a0011e52/attachment.bin>


More information about the llvm-commits mailing list