Restore QtCore ABI compatibility with binaries built with g++ 4.3 on armel Once Qt...
authorModestas Vainius <modax@debian.org>
Tue, 15 May 2018 16:24:10 +0000 (17:24 +0100)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Tue, 15 May 2018 16:24:10 +0000 (17:24 +0100)
commit199a8be12b40744e5926a0a8bf608058e3c95574
treecffd60f3eba69736ec319e9b2ef181afc323fa29
parent30c4500e869e9f9171197dd507b363d08a6f8cc2
Restore QtCore ABI compatibility with binaries built with g++ 4.3 on armel Once Qt is rebuilt with g++ 4.4, it becomes ABI incompatible with binaries built with g++ 4.3 on armel. That's because g++ 4.4 mangles va_list differently on armel. As a result, affected symbols are those which have va_list type in their argument list. Qt exports 2 such symbols: . qvsnprintf(char *str, size_t n, const char *fmt, va_list ap); QString &QString::vsprintf(const char* cformat, va_list ap); . The patch uses .symver assembler directive to add aliases for the symbols above. Those aliases are mangled in the same way as g++ 4.3 would mangle original symbols.

Gbp-Pq: Name 92_armel_gcc43_valist_compat.diff
src/corelib/tools/qstring.cpp
src/corelib/tools/qvsnprintf.cpp