Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4313

Make sure that all binaries we produce contain a .note.gnu.build-id section

    XMLWordPrintableJSON

Details

    Description

      Breakpad uses .note.gnu.build-id to identify binaries and falls back to hashing the first page of the text section.

      src/common/linux/file_id.cc#148

      bool FileID::ElfFileIdentifierFromMappedFile(const void* base,
                                                   wasteful_vector<uint8_t>& identifier) {
        // Look for a build id note first.
        if (FindElfBuildIDNote(base, identifier))
          return true;
        // Fall back on hashing the first page of the text section.
        return HashElfTextSection(base, identifier);
      }
      

      The latter can lead to collisions on large binaries like impalad. Therefore we should make sure we have .note.gnu.build-id in all binaries. More information can be found here: https://fedoraproject.org/wiki/Releases/FeatureBuildId

      Attachments

        Activity

          People

            Unassigned Unassigned
            lv Lars Volker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: