Details
Diff Detail
Event Timeline
Address review comments.
ELF/Writer.cpp | ||
---|---|---|
675 | .tbss is not the only possible section name. And this variable exists because of that. It handles the case of multiple SHF_ALLOC | SHF_WRITE | SHF_TLS, SHT_NOBITS output sections. |
ELF/Writer.cpp | ||
---|---|---|
674 | Do we need this? Isn't an Elf_Phdr zero-initialized? |
ELF/Writer.cpp | ||
---|---|---|
674 | There's no explicit zero init, and I'm pretty sure default-initialization here does nothing. |
ELF/Writer.cpp | ||
---|---|---|
674 | What about next ? Elf_Phdr TlsPhdr = {}; |
ELF/Writer.cpp | ||
---|---|---|
674 | Seems like a good idea. I was not completely sure if the empty initializer is allowed to initialize a struct, but it seems to be accepted. |
Do we need this? Isn't an Elf_Phdr zero-initialized?