~ubuntu-branches/debian/squeeze/binutils/squeeze

« back to all changes in this revision

Viewing changes to gold/resolve.cc

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-09-10 17:05:30 UTC
  • mfrom: (1.4.5 upstream) (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090910170530-wa6gpju9pq5c56on
Tags: 2.19.91.20090910-1
* Snapshot, taken from the 2.20 release branch 20090910, corresponding
  to the 2.19.90 upstream snapshot.
* Fix Thumb-2 shared libraries (Daniel Jacobowitz), patch taken
  from the trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
257
257
      // Record that we've seen this symbol in a regular object.
258
258
      to->set_in_reg();
259
259
    }
 
260
  else if (st_shndx == elfcpp::SHN_UNDEF
 
261
           && (to->visibility() == elfcpp::STV_HIDDEN
 
262
               || to->visibility() == elfcpp::STV_INTERNAL))
 
263
    {
 
264
      // A dynamic object cannot reference a hidden or internal symbol
 
265
      // defined in another object.
 
266
      gold_warning(_("%s symbol '%s' in %s is referenced by DSO %s"),
 
267
                   (to->visibility() == elfcpp::STV_HIDDEN
 
268
                    ? "hidden"
 
269
                    : "internal"),
 
270
                   to->demangled_name().c_str(),
 
271
                   to->object()->name().c_str(),
 
272
                   object->name().c_str());
 
273
      return;
 
274
    }
260
275
  else
261
276
    {
262
277
      // Record that we've seen this symbol in a dynamic object.