security - Hardening Flags for iOS Apps -
in regular c++ app, there hardening flags can set, have position independent executables, read-only relocations, stack protection etc.
usually, i'd use
cflags='-wl,-z,relro,-z,now -pie -fpie -fstack-protector-all -d_fortify_source=2 -o1'
-fstack-protector-all -d_fortify_source=2
work in xcode (using llvm). there equivalent remaining flags? set them , got warning:
clang: warning: argument unused during compilation: '-pie' [-wunused- command-line-argument] clang: warning: argument unused during compilation: '-pie' [-wunused-command-line-argument] warning: unknown warning option '-w1,-z,relro,-z,now' [-wunknown-warning-option]
especially pie , relro nice have.
in case there no equivalents - how come?
Comments
Post a Comment