diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-29 23:36:39 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-29 23:36:39 +0000 |
commit | fdc2f80f7e588de8b20a789b1c72120983658382 (patch) | |
tree | 0a304ff6c3b2ff6283b1cd31add6a5becfa51790 /gold | |
parent | 4534d6ccfcf574f3b45e99bd0678b738d671d6af (diff) | |
download | gdb-fdc2f80f7e588de8b20a789b1c72120983658382.zip gdb-fdc2f80f7e588de8b20a789b1c72120983658382.tar.gz gdb-fdc2f80f7e588de8b20a789b1c72120983658382.tar.bz2 |
From Craig Silverstein: Clean up some unnecessary TODO markers.
Diffstat (limited to 'gold')
-rw-r--r-- | gold/x86_64.cc | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gold/x86_64.cc b/gold/x86_64.cc index 84c717d..3f25bbf 100644 --- a/gold/x86_64.cc +++ b/gold/x86_64.cc @@ -737,10 +737,10 @@ Target_x86_64::Scan::local(const General_options&, // PC32 reloc. break; - case elfcpp::R_X86_64_GOTPC32: // TODO(csilvers): correct? + case elfcpp::R_X86_64_GOTPC32: case elfcpp::R_X86_64_GOTOFF64: - case elfcpp::R_X86_64_GOTPC64: // TODO(csilvers): correct? - case elfcpp::R_X86_64_PLTOFF64: // TODO(csilvers): correct? + case elfcpp::R_X86_64_GOTPC64: + case elfcpp::R_X86_64_PLTOFF64: // We need a GOT section. target->got_section(symtab, layout); break; @@ -832,8 +832,8 @@ Target_x86_64::Scan::local(const General_options&, break; case elfcpp::R_X86_64_GOTPLT64: - case elfcpp::R_X86_64_SIZE32: // TODO(csilvers): correct? - case elfcpp::R_X86_64_SIZE64: // TODO(csilvers): correct? + case elfcpp::R_X86_64_SIZE32: + case elfcpp::R_X86_64_SIZE64: default: gold_error(_("%s: unsupported reloc %u against local symbol"), object->name().c_str(), r_type); @@ -944,10 +944,10 @@ Target_x86_64::Scan::global(const General_options& options, target->make_plt_entry(symtab, layout, gsym); break; - case elfcpp::R_X86_64_GOTPC32: // TODO(csilvers): correct? + case elfcpp::R_X86_64_GOTPC32: case elfcpp::R_X86_64_GOTOFF64: - case elfcpp::R_X86_64_GOTPC64: // TODO(csilvers): correct? - case elfcpp::R_X86_64_PLTOFF64: // TODO(csilvers): correct? + case elfcpp::R_X86_64_GOTPC64: + case elfcpp::R_X86_64_PLTOFF64: // We need a GOT section. target->got_section(symtab, layout); break; @@ -1015,8 +1015,9 @@ Target_x86_64::Scan::global(const General_options& options, } } break; - case elfcpp::R_X86_64_SIZE32: // TODO(csilvers): correct? - case elfcpp::R_X86_64_SIZE64: // TODO(csilvers): correct? + + case elfcpp::R_X86_64_SIZE32: + case elfcpp::R_X86_64_SIZE64: default: gold_error(_("%s: unsupported reloc %u against global symbol %s"), object->name().c_str(), r_type, gsym->name()); @@ -1259,7 +1260,7 @@ Target_x86_64::Relocate::relocate(const Relocate_info<64, false>* relinfo, case elfcpp::R_X86_64_GOT64: // The ABI doc says "Like GOT64, but indicates a PLT entry is needed." // Since we always add a PLT entry, this is equivalent. - case elfcpp::R_X86_64_GOTPLT64: // TODO(csilvers): correct? + case elfcpp::R_X86_64_GOTPLT64: gold_assert(have_got_offset); Relocate_functions<64, false>::rela64(view, got_offset, addend); break; @@ -1326,9 +1327,9 @@ Target_x86_64::Relocate::relocate(const Relocate_info<64, false>* relinfo, address, view_size); break; - case elfcpp::R_X86_64_SIZE32: // TODO(csilvers): correct? - case elfcpp::R_X86_64_SIZE64: // TODO(csilvers): correct? - case elfcpp::R_X86_64_PLTOFF64: // TODO(csilvers): implement me! + case elfcpp::R_X86_64_SIZE32: + case elfcpp::R_X86_64_SIZE64: + case elfcpp::R_X86_64_PLTOFF64: // FIXME: implement me! default: gold_error_at_location(relinfo, relnum, rela.get_r_offset(), _("unsupported reloc %u"), |