[PATCH] D44214: Improve --warn-symbol-ordering.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 28 14:27:56 PDT 2018
ruiu added inline comments.
================
Comment at: lld/ELF/Writer.cpp:1063
+ auto *Sec = dyn_cast_or_null<InputSectionBase>(cast<Defined>(Sym)->Section);
+ if (!Sec) {
+ Warning("unable to order absolute symbol");
----------------
jhenderson wrote:
> espindola wrote:
> > This will now fire on symbols the linker defines relative to an output section, no?
> >
> That would be a good thing, right? Attempting to order a symbol not associated with an OutputSection (whether linker-defined or not) would be impossible.
Yeah, I think this is a desired behavior.
https://reviews.llvm.org/D44214
More information about the llvm-commits
mailing list