mirror of
https://github.com/rui314/mold.git
synced 2024-12-28 02:44:48 +03:00
temporary
This commit is contained in:
parent
84eb3f1257
commit
e5409e48f4
2
main.cc
2
main.cc
@ -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
2
mold.h
@ -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;
|
||||
|
||||
|
@ -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});
|
||||
|
Loading…
Reference in New Issue
Block a user