This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG95d609b549bb: [HWASan] Add __hwasan_init to .preinit_array.
(authored by morehouse).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTIO
pcc accepted this revision.
pcc added a comment.
This revision is now accepted and ready to land.
LGTM
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118171/new/
https://reviews.llvm.org/D118171
___
cfe-c
fmayer added inline comments.
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:842
+ if (!Args.hasArg(options::OPT_shared))
+SharedRuntimes.push_back("hwasan-preinit");
}
pcc wrote:
> morehouse wrote:
> > eugenis wrote:
> > > pcc wrote:
>
pcc added inline comments.
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:842
+ if (!Args.hasArg(options::OPT_shared))
+SharedRuntimes.push_back("hwasan-preinit");
}
morehouse wrote:
> eugenis wrote:
> > pcc wrote:
> > > Shouldn't it be
morehouse added inline comments.
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:842
+ if (!Args.hasArg(options::OPT_shared))
+SharedRuntimes.push_back("hwasan-preinit");
}
eugenis wrote:
> pcc wrote:
> > Shouldn't it be added to `HelperS
morehouse updated this revision to Diff 405435.
morehouse marked 3 inline comments as done.
morehouse added a comment.
- Make __local_hwasan_preinit static.
- Use HelperStaticRuntimes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118171/new/
https
eugenis added a comment.
The driver seems to always add sanitizer runtimes first on the linker command
line.
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:842
+ if (!Args.hasArg(options::OPT_shared))
+SharedRuntimes.push_back("hwasan-preinit");
}
---
pcc added a comment.
What guarantee do we have that the `__hwasan_init` .preinit_array entry will be
placed before the user's .preinit_array entries?
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:842
+ if (!Args.hasArg(options::OPT_shared))
+SharedRuntime
eugenis added a subscriber: pcc.
eugenis added a comment.
LGTM, but I'd like @pcc to take a look.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118171/new/
https://reviews.llvm.org/D118171
___
cfe-commit
morehouse updated this revision to Diff 405283.
morehouse added a comment.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
- In shared library mode, link preinit stub with every DSO.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.or
10 matches
Mail list logo