[Synopsys]
Using function elf::link(...) leads to segmentation fault on its second call. First call finishes correctly.
[Solution]
Clear the rest of globals.
Differential D38131
[ELF] [fix] Using statically linked lld leads to segmentation fault on linking ELF emankov on Sep 21 2017, 5:24 AM. Authored by
Details
[Synopsys] [Solution]
Diff Detail Event Timeline
|
It probably will not be enough.
For example we have synthetic sections which are statics now, like `InX::DynSymTab'.
Doesn't seem them are cleared properly. If first call uses it and second - don't, it seems
to me it will fail.
So I want to say this change looks fine for me, but problem will not be solved completely anyways I think,