Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100542

Q_GADGET staticMetaObject causes relocation, while Q_OBJECT one does not

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core: Object Model
    • Labels:
      None

      Description

      Can we do better? (QtCore.log is the output of the objdump script linked to in the epic)

      $ grep staticMetaObject ../qt5-build-2/QtCore.log
      0000000000000020 g     O .data.rel.ro.local     0000000000000038 Qt6::Qt::staticMetaObject
      0000000000000020 g     O .data.rel.ro.local     0000000000000038 Qt6::QStandardPaths::staticMetaObject
      0000000000000020 g     O .data.rel.ro.local     0000000000000038 Qt6::QEvent::staticMetaObject
      0000000000000080 g     O .data.rel.ro.local     0000000000000038 Qt6::QObject::staticMetaObject
      0000000000000080 g     O .data.rel.ro.local     0000000000000038 Qt6::QMimeType::staticMetaObject
      0000000000000020 g     O .data.rel.ro.local     0000000000000038 Qt6::QCborError::staticMetaObject
      0000000000000020 g     O .data.rel.ro.local     0000000000000038 Qt6::QCborStreamReader::staticMetaObject
      0000000000000020 g     O .data.rel.ro.local     0000000000000038 Qt6::QCborValue::staticMetaObject
      0000000000000020 g     O .data.rel.ro.local     0000000000000038 Qt6::QLocale::staticMetaObject
      0000000000000020 g     O .data.rel.ro.local     0000000000000038 Qt6::QCalendar::staticMetaObject
      0000000000000020 g     O .data.rel.ro.local     0000000000000038 Qt6::QCryptographicHash::staticMetaObject
      0000000000000020 g     O .data.rel.ro.local     0000000000000038 Qt6::QEasingCurve::staticMetaObject
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes