From 45b320300d0c1021e418755a0c88961c75c15818 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 7 Nov 2020 22:42:46 +0900 Subject: [PATCH] temporary --- object_file.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/object_file.cc b/object_file.cc index 8765ccf8..29c0f896 100644 --- a/object_file.cc +++ b/object_file.cc @@ -207,14 +207,6 @@ void ObjectFile::initialize_mergeable_sections() { isec->rel_pieces[i].piece = ref->piece; isec->rel_pieces[i].addend = offset - ref->input_offset; - -#if 0 - llvm::outs() << "rel_pieces: sym=" << sym.name - << " data=" << ref->piece->data - << " ref->input_offset=" << ref->input_offset - << " offset=" << offset - << "\n"; -#endif } } } @@ -236,7 +228,7 @@ void ObjectFile::initialize_mergeable_sections() { error(toString(this) + ": bad symbol value"); sym_pieces[i].piece = ref->piece; - sym_pieces[i].input_offset = ref->input_offset - esym.st_value; + sym_pieces[i].addend = esym.st_value - ref->input_offset; } for (int i = 0; i < sections.size(); i++) {