1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-14 07:18:42 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-28 19:38:31 +09:00
parent beabeb17a5
commit a6f24a830a
2 changed files with 5 additions and 1 deletions

View File

@ -212,6 +212,7 @@ private:
std::atomic_flag &lock;
};
std::atomic_int do_not_skip;
std::atomic_int skip;
void ObjectFile::register_defined_symbols() {
@ -234,6 +235,7 @@ void ObjectFile::register_defined_symbols() {
if (!sym.file || this->priority < sym.file->priority ||
(sym.is_weak && !is_weak)) {
do_not_skip++;
sym.file = this;
sym.input_section = isec;
sym.value = esym.st_value;

View File

@ -436,8 +436,10 @@ int main(int argc, char **argv) {
}
{
extern std::atomic_int do_not_skip;
extern std::atomic_int skip;
llvm::outs() << "skip=" << skip << "\n";
llvm::outs() << "do_not_skip=" << do_not_skip
<< " skip=" << skip << "\n";
}
// Eliminate unused archive members.