qt5base-lts/tests/auto/corelib/plugin/qpluginloader
Thiago Macieira 62d636a666 Add a Mach-O decoder to the QPluginLoader
We already had an ELF decoder, which helped us greatly to find the
metadata and that catches most Unix systems (Solaris, QNX, HP-UXi, and
all of the free Unixes). On other Unix systems, aside from Mac OS X,
we simply scanned the entire file for the signature. On Windows, even
without a COFF-PE decoder, we use a LoadLibrary trick to load the
plugin without loading the dependent libraries. In most cases, that
works.

Unfortunately, on Mac OS X we didn't have a decoder and nor could we
do the file scan: because Mac OS X binaries could be fat binaries, we
wouldn't know which architecture's signature we had found.

No more. This adds a full Mach-O decoder to QtCore. It is also capable
of finding the boundaries of the architecture's binary, but that
functionality is disabled since all Qt 5 plugins have plugin metadata
sections.

Change-Id: I2d5c04c5ecf024864b8a43f31ab6b7e6c5eae9ce
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-07-20 02:09:26 +02:00
..
almostplugin Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
elftest Moving relevant tests to corelib/plugin 2011-09-01 12:42:51 +02:00
lib Make sure that the reference count for plugins is kept correctly 2013-02-27 07:09:18 +01:00
machtest Add a Mach-O decoder to the QPluginLoader 2013-07-20 02:09:26 +02:00
theplugin Make sure that the reference count for plugins is kept correctly 2013-02-27 07:09:18 +01:00
tst Add a Mach-O decoder to the QPluginLoader 2013-07-20 02:09:26 +02:00
.gitignore Moving relevant tests to corelib/plugin 2011-09-01 12:42:51 +02:00
empty.json Use new plugin system in plugin autotest. 2012-02-23 16:38:45 +01:00
fakeplugin.cpp Add a Mach-O decoder to the QPluginLoader 2013-07-20 02:09:26 +02:00
qpluginloader.pro Add a Mach-O decoder to the QPluginLoader 2013-07-20 02:09:26 +02:00
tst_qpluginloader.cpp Add a Mach-O decoder to the QPluginLoader 2013-07-20 02:09:26 +02:00