ELF object files can contain .ctors and .dtors sections that also
participate as initializers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Mostly looks good, but should .dtors be included as an init section? I don't think ELFNixPlatform has any special case logic for .dtors yet, which might lead to functions in .dtors being run immediately upon load.
It may take some changes on the ELFNixPlatform side to make .dtors work.
Comment Actions
I don't think ELFNixPlatform has any special case logic for .dtors yet, which might lead to functions in .dtors being run immediately upon load.
You are right. I double-checked this and it is causing the dtors to run upon load. I'll comment dtors out and file an issue to fix this in ELFNixPlatform. Thanks for taking a look!