1 diff -Nru qt-everywhere-src-6.3.2.orig/qtbase/src/corelib/plugin/qplugin.h qt-everywhere-src-6.3.2/qtbase/src/corelib/plugin/qplugin.h
2 --- qt-everywhere-src-6.3.2.orig/qtbase/src/corelib/plugin/qplugin.h 2023-09-19 16:19:55.659890584 +0200
3 +++ qt-everywhere-src-6.3.2/qtbase/src/corelib/plugin/qplugin.h 2023-09-19 16:23:09.763222161 +0200
6 template <auto (&PluginMetaData)> class QPluginMetaDataV2
8 - struct ElfNotePayload : QPluginMetaData::ElfNoteHeader {
9 - static constexpr size_t HeaderOffset = offsetof(QPluginMetaData::ElfNoteHeader, header);
10 - quint8 payload[sizeof(PluginMetaData)] = {};
11 - constexpr ElfNotePayload() : ElfNoteHeader(sizeof(PluginMetaData))
12 - { QPluginMetaData::copy(payload, PluginMetaData); }
15 struct RegularPayload : QPluginMetaData::MagicHeader {
16 static constexpr size_t HeaderOffset = offsetof(QPluginMetaData::MagicHeader, header);
17 quint8 payload[sizeof(PluginMetaData)] = {};
19 #if defined(QT_STATICPLUGIN)
20 # define QT_PLUGIN_METADATAV2_SECTION
21 using Payload = StaticPayload;
22 -#elif defined(Q_OF_ELF)
24 -# define QT_PLUGIN_METADATAV2_SECTION \
25 - __attribute__((section(".note.qt.metadata"), used, aligned(alignof(void *)), \
26 - no_sanitize("address")))
28 -# define QT_PLUGIN_METADATAV2_SECTION \
29 - __attribute__((section(".note.qt.metadata"), used, aligned(alignof(void *))))
31 - using Payload = ElfNotePayload;
33 # define QT_PLUGIN_METADATAV2_SECTION QT_PLUGIN_METADATA_SECTION
34 using Payload = RegularPayload;