1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 10:27:48 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-28 16:32:33 +09:00
parent 84eb3f1257
commit e5409e48f4
3 changed files with 3 additions and 3 deletions

View File

@ -386,7 +386,7 @@ private:
};
int main(int argc, char **argv) {
tbb::global_control tbb_cont(tbb::global_control::max_allowed_parallelism, 64);
// tbb::global_control tbb_cont(tbb::global_control::max_allowed_parallelism, 64);
// Parse command line options
MyOptTable opt_table;

2
mold.h
View File

@ -217,7 +217,7 @@ public:
virtual void copy_to(uint8_t *buf) = 0;
virtual void relocate(uint8_t *buf) {}
bool is_bss() const { return shdr.sh_type & llvm::ELF::SHT_NOBITS; }
bool is_bss() const { return shdr.sh_type == llvm::ELF::SHT_NOBITS; }
virtual uint64_t get_size() const = 0;

View File

@ -71,7 +71,7 @@ void OutputPhdr::construct(std::vector<OutputChunk *> &chunks) {
break;
uint32_t flags = to_phdr_flags(chunk->shdr.sh_flags);
bool this_is_bss = chunk->shdr.sh_type & SHT_NOBITS;
bool this_is_bss = (chunk->shdr.sh_type == SHT_NOBITS);
if (first) {
add(PT_LOAD, flags, {chunk});