Test suite cleanup.
[deliverable/binutils-gdb.git] / gold / gc.h
index 6930aced43178f397b2bd11aa1bcb8dc20daa4e7..2f79a240cfede9796a4ecf6ea65c98c655c6346f 100644 (file)
--- a/gold/gc.h
+++ b/gold/gc.h
@@ -1,6 +1,6 @@
 // gc.h -- garbage collection of unused sections
 
-// Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+// Copyright (C) 2009-2014 Free Software Foundation, Inc.
 // Written by Sriraman Tallam <tmsriram@google.com>.
 
 // This file is part of gold.
@@ -253,21 +253,7 @@ gc_process_relocs(
             {
              Address symvalue = dst_off - addend;
              if (is_ordinary) 
-               {
-                 Symbol_location loc;
-                 loc.object = dst_obj;
-                 loc.shndx = dst_indx;
-                 loc.offset = convert_types<off_t, Address>(dst_off);
-                 // Look through function descriptors.
-                 parameters->target().function_location(&loc);
-                 if (loc.shndx != dst_indx)
-                   {
-                     // Modify symvalue/addend to the code entry.
-                     symvalue = loc.offset;
-                     addend = 0;
-                   }
-                 (*secvec).push_back(Section_id(loc.object, loc.shndx));
-               }
+               (*secvec).push_back(Section_id(dst_obj, dst_indx));
              else
                 (*secvec).push_back(Section_id(NULL, 0));
               (*symvec).push_back(NULL);
@@ -343,21 +329,7 @@ gc_process_relocs(
             {
              Address symvalue = dst_off - addend;
               if (is_ordinary && gsym->source() == Symbol::FROM_OBJECT)
-               {
-                 Symbol_location loc;
-                 loc.object = dst_obj;
-                 loc.shndx = dst_indx;
-                 loc.offset = convert_types<off_t, Address>(dst_off);
-                 // Look through function descriptors.
-                 parameters->target().function_location(&loc);
-                 if (loc.shndx != dst_indx)
-                   {
-                     // Modify symvalue/addend to the code entry.
-                     symvalue = loc.offset;
-                     addend = 0;
-                   }
-                 (*secvec).push_back(Section_id(loc.object, loc.shndx));
-               }
+               (*secvec).push_back(Section_id(dst_obj, dst_indx));
              else
                 (*secvec).push_back(Section_id(NULL, 0));
               (*symvec).push_back(gsym);
This page took 0.02501 seconds and 4 git commands to generate.