This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/23747] Unknown section .note.Linux in kernel module cause tests with --all-modules to fail to compile


https://sourceware.org/bugzilla/show_bug.cgi?id=23747

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
This comes from dump_symbol_tables () in translate.cxx.

Under:

  // We are only interested in "real" symbols.
  // We omit symbols that have suspicious addresses
  // (before base, or after end).

[...]

                {
                  assert (secname != NULL);
                  // secname adequately set

                  // NB: it may be an empty string for ET_DYN objects
                  // like shared libraries, as their relocation base
                  // is implicit.
                  if (secname[0] == '\0')
                    secname = ".dynamic";
                  else
                    {
                      // Compute our section number
                      for (secidx = 0; secidx < c->seclist.size(); secidx++)
                        if (c->seclist[secidx].first==secname)
                          break;

                      if (secidx == c->seclist.size()) // whoa! We messed up...
                        {
                          string m = _F("%s has unknown section %s for sym %s",
                                        modname, secname, name);
                          throw runtime_error(m);
                        }
                    }
                }

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]