comparison configure @ 30283:11cf732119e4

Manually add --nxcompat --no-seh --dynamicbase to linker flags if available, works around binutils' policy of making exploits as easy as possible by default.
author reimar
date Sat, 16 Jan 2010 16:39:46 +0000
parents 94876ebd061d
children 111076138c5e
comparison
equal deleted inserted replaced
30282:94876ebd061d 30283:11cf732119e4
8187 echores "yes" 8187 echores "yes"
8188 else 8188 else
8189 echores "no" 8189 echores "no"
8190 fi 8190 fi
8191 8191
8192 echocheck "linker support for --nxcompat --no-seh --dynamicbase"
8193 if cc_check "-Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase" ; then
8194 extra_ldflags="-Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase $extra_ldflags"
8195 echores "yes"
8196 else
8197 echores "no"
8198 fi
8199
8192 8200
8193 # Dynamic linking flags 8201 # Dynamic linking flags
8194 # (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly) 8202 # (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly)
8195 _ld_dl_dynamic='' 8203 _ld_dl_dynamic=''
8196 freebsd || netbsd || openbsd || dragonfly || bsdos && _ld_dl_dynamic='-rdynamic' 8204 freebsd || netbsd || openbsd || dragonfly || bsdos && _ld_dl_dynamic='-rdynamic'