mirror of
https://github.com/rui314/mold.git
synced 2024-09-22 10:27:48 +03:00
temporary
This commit is contained in:
parent
baa133d021
commit
bbd3080338
7
mold.h
7
mold.h
@ -4,9 +4,6 @@
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include "llvm/Object/Archive.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/Support/Timer.h"
|
||||
#include "tbb/concurrent_hash_map.h"
|
||||
#include "tbb/global_control.h"
|
||||
@ -418,10 +415,6 @@ struct MemoryMappedFile {
|
||||
MemoryMappedFile(std::string name, u8 *data, u64 size)
|
||||
: name(name), data(data), size(size) {}
|
||||
|
||||
operator llvm::MemoryBufferRef() const {
|
||||
return {{(char *)data, size}, name};
|
||||
}
|
||||
|
||||
std::string name;
|
||||
u8 *data;
|
||||
u64 size;
|
||||
|
@ -621,8 +621,8 @@ ObjectFile *ObjectFile::create_internal_file() {
|
||||
if (!is_c_identifier(chunk->name))
|
||||
continue;
|
||||
|
||||
auto *start = new std::string(("__start_" + chunk->name).str());
|
||||
auto *stop = new std::string(("__stop_" + chunk->name).str());
|
||||
auto *start = new std::string("__start_" + std::string(chunk->name));
|
||||
auto *stop = new std::string("__stop_" + std::string(chunk->name));
|
||||
add(*start, STV_HIDDEN);
|
||||
add(*stop, STV_HIDDEN);
|
||||
}
|
||||
@ -639,7 +639,7 @@ std::string toString(InputFile *file) {
|
||||
ObjectFile *obj = (ObjectFile *)file;
|
||||
if (obj->archive_name == "")
|
||||
return obj->name;
|
||||
return (obj->archive_name + ":" + obj->name).str();
|
||||
return std::string(obj->archive_name) + ":" + std::string(obj->name);
|
||||
}
|
||||
|
||||
std::string_view SharedFile::get_soname(std::span<ElfShdr> elf_sections) {
|
||||
|
Loading…
Reference in New Issue
Block a user