1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-26 01:44:29 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-12-12 12:54:13 +09:00
parent 325513be28
commit d957a226ad

View File

@ -4,8 +4,7 @@
#include <regex>
InputFile::InputFile(MemoryMappedFile mb)
: mb(mb), name(mb.name), ehdr(*(ElfEhdr *)mb.data),
is_dso(ehdr.e_type == ET_DYN) {
: mb(mb), name(mb.name), ehdr(*(ElfEhdr *)mb.data), is_dso(ehdr.e_type == ET_DYN) {
if (mb.size < sizeof(ElfEhdr))
error(mb.name + ": file too small");
if (memcmp(mb.data, "\177ELF", 4))