BlackBerry mkspecs: optimize linker flags

* relro makes some sections read-only before giving control to the
program;
* now resolves all symbols when the program is started and allows for
 the GOT being marked read-only to prevent it from being overwritten.

These settings have been used internally for device builds already.

Change-Id: I9f62fffe618c75748e2357d1686289c23c5dbee5
Reviewed-by: Greg Bentz <gbentz@rim.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
Peter Hartmann 2012-11-23 17:32:50 +01:00 committed by The Qt Project
parent 274407f347
commit c8c8e1990c
2 changed files with 4 additions and 0 deletions

View File

@ -17,4 +17,6 @@ contains(QT_CONFIG, stack-protector-strong) {
QMAKE_CFLAGS += -mcpu=cortex-a9
QMAKE_LFLAGS_SHLIB += -Wl,-z,relro -Wl,-z,now
include(../common/qcc-base-qnx-armv7le.conf)

View File

@ -15,4 +15,6 @@ contains(QT_CONFIG, stack-protector-strong) {
QMAKE_CFLAGS += -fstack-protector -fstack-protector-all
}
QMAKE_LFLAGS_SHLIB += -Wl,-z,relro -Wl,-z,now
include(../common/qcc-base-qnx-x86.conf)