mirror of
https://github.com/rui314/mold.git
synced 2024-12-25 17:34:02 +03:00
temporary
This commit is contained in:
parent
325513be28
commit
d957a226ad
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user