[PATCH] D38588: Clear LastMappingSymbols and LastEMS(Info) when resetting the ARM(AArch64)ELFStreamer

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 6 04:27:49 PDT 2017


peter.smith added a comment.

After some research I don't think that it will be possible to generate a test case that fails using the standard llvm tools.

- llvm-mc or clang calling the integrated assembly doesn't even call reset on the streamer.
- clang using inline assembly embedded in a .c file will create an ARMElfStreamer Object for each module.
- lto merges the bitcode files before creating only one ARMElfStreamer Object for the output.

So I think the only way to trigger the problem will be something like a Jit that is reusing the same ARMElfStreamer Object with reset() being called.


https://reviews.llvm.org/D38588





More information about the llvm-commits mailing list