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:
parent
274407f347
commit
c8c8e1990c
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user