Bug 33488 - section [18] '.note.qt.metadata': unknown object file note type 1951465473 with owner name 'qt-project!' at offset 9336
Summary: section [18] '.note.qt.metadata': unknown object file note type 1951465473 wi...
Status: RESOLVED FIXED
Alias: None
Product: elfutils
Classification: Unclassified
Component: tools (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-25 23:14 UTC by Vitaly Chikunov
Modified: 2025-10-23 10:36 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Chikunov 2025-09-25 23:14:51 UTC
eu-elflint fails on Qt plugins:

$ eu-elflint /usr/lib64/qt6/plugins/pim6/korganizer/datenums.so
phdr[5]: unknown object file note type 1951465473 with owner name 'qt-project!' at offset 9384
section [18] '.note.qt.metadata': unknown object file note type 1951465473 with owner name 'qt-project!' at offset 9336

Can someone fix this?

Perhaps, this note info
https://codebrowser.dev/qt6/qtbase/src/corelib/plugin/qplugin.h.html
        static constexpr quint32 NoteType = 0x74510001;
        static constexpr char NoteName[] = "qt-project!";

ps. I cannot bug report to Qt bugzilla due to account registration failures "Account for this email domain or IP address is not allowed." so at least I report here and hope someone from Qt notices too.
Comment 1 Aaron Merey 2025-09-26 10:32:22 UTC
eu-elflint reports an error since it does not recognize note type 1951465473. You're right that this should not raise an error. An unrecognized note type is not necessarily an ABI compliance problem assuming the note is otherwise well formed.
Comment 2 Aaron Merey 2025-10-09 21:12:35 UTC
patch posted: https://sourceware.org/pipermail/elfutils-devel/2025q4/008630.html
Comment 3 Aaron Merey 2025-10-23 00:10:06 UTC
Fixed in the following commit:

commit b327696955e5e9ae6e26275d9459e9ddcb86229f
Author: Aaron Merey <amerey@redhat.com>
Date:   Thu Oct 9 17:08:30 2025 -0400

    elflint: Do not raise an error when note type is unrecognized
    
    check_note_data compares the type of a given ELF note to a list of known
    types.  If the type is not recognized then an "unknown note" error is
    raised.
    
    Unknown note types do not necessarily indicate a gABI/psABI compliance
    issue so an error should not be raised for this reason alone.
    Additionally some common note types are missing from the list of known
    types (NT_FILE for example).
    
    Fix this by removing the "unknown note" error from check_note_data.
    
    This patch preserves existing type-specific format checks and adds a
    check for the presence of the null terminator in the note name, if
    applicable.  If one of these checks fails, a "malformed note" or
    "missing null terminator" error is raised.
    
    Since there are currently no type-specific checks for any ET_CORE
    notes, these checks are only performed when the given binary does not
    have e_type ET_CORE.
    
    https://sourceware.org/bugzilla/show_bug.cgi?id=33488
    
    Signed-off-by: Aaron Merey <amerey@redhat.com>
Comment 4 Vitaly Chikunov 2025-10-23 10:36:37 UTC
Thanks much!