]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix PIE build flags
authorMathias Krause <Mathias.Krause@secunet.com>
Wed, 20 Jan 2010 14:39:13 +0000 (17:39 +0300)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 20 Jan 2010 14:39:13 +0000 (17:39 +0300)
commit3f3dc2bd5f8cbde24cb581ed0aed0e372bfd556c
tree7754c556419e6315fed189a4d7a88f33a3558852
parent65957886bfd0dd9d95360d8b015781fc82cc09be
lib: fix PIE build flags

Because the final executables are built as position independent
executables (PIE) -- when configure has detected compiler supported for
PIE -- the objects in the library archive must be built in that way,
too. Otherwise the runtime linker has to do unneccesary relocation for
each start of the program. Even worse, the programs won't even be able
to start on a (hardened) kernel that doesn't allow those relocations to
happen by preventing making the .text segment writable (PaX's MPROTECT
feature comes to mind). The attached patch fixes this issue by adding
the appropriate flags to the Makefile.am.
lib/Makefile.am