[PATCH] D46442: Do not call exit() directly from lld.

Rumeet Dhindsa via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 4 14:03:54 PDT 2018


rdhindsa added a comment.

If we use return (instead of exit) as in this patch, the final params file( Config->ThinLTOIndexOnlyObjectsFile) is not fully generated and few of the last entries are not written(even though respective files are generated) . Here _exit() is called eventually from exitLld function call in elf::link . However, if we replace that with exit(), the file is generated properly. >From here, it seems that _exit() is not able to close the file properly.


https://reviews.llvm.org/D46442





More information about the llvm-commits mailing list