mirror of
https://github.com/rui314/mold.git
synced 2024-12-25 17:34:02 +03:00
temporary
This commit is contained in:
parent
078c694006
commit
671aa31211
10
mold.h
10
mold.h
@ -676,12 +676,12 @@ struct ComdatGroup {
|
||||
|
||||
class InputFile {
|
||||
public:
|
||||
InputFile(MemoryBufferRef mb)
|
||||
: mb(mb), name(mb.getBufferIdentifier()),
|
||||
InputFile(MemoryBufferRef mb, bool is_dso)
|
||||
: mb(mb), name(mb.getBufferIdentifier()), is_dso(is_dso),
|
||||
obj(check(ELFFile<ELF64LE>::create(mb.getBuffer()))) {}
|
||||
|
||||
std::string name;
|
||||
bool is_dso = false;
|
||||
bool is_dso;
|
||||
u32 priority;
|
||||
MemoryBufferRef mb;
|
||||
ELFFile<ELF64LE> obj;
|
||||
@ -743,9 +743,7 @@ private:
|
||||
|
||||
class SharedFile : public InputFile {
|
||||
public:
|
||||
SharedFile(MemoryBufferRef mb) : InputFile(mb) {
|
||||
is_dso = true;
|
||||
}
|
||||
SharedFile(MemoryBufferRef mb) : InputFile(mb, true) {}
|
||||
|
||||
void parse();
|
||||
void resolve_symbols();
|
||||
|
@ -12,7 +12,7 @@ using namespace llvm;
|
||||
using namespace llvm::ELF;
|
||||
|
||||
ObjectFile::ObjectFile(MemoryBufferRef mb, StringRef archive_name)
|
||||
: InputFile(mb), archive_name(archive_name),
|
||||
: InputFile(mb, false), archive_name(archive_name),
|
||||
is_in_archive(archive_name != "") {
|
||||
is_alive = (archive_name == "");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user