Makefile: Add security compiling flags (RELRO) 64/301864/1
authorUnsung Lee <unsung.lee@samsung.com>
Fri, 24 Nov 2023 12:41:42 +0000 (21:41 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Fri, 24 Nov 2023 12:52:58 +0000 (21:52 +0900)
commit882cac98d6224369edb15e90d6b35a7a95663daf
tree542d7155e1cf7e19fa5a0d51fcb4ea376157081f
parent229b4109087784e2084d9eb59fe1726de74c4246
Makefile: Add security compiling flags (RELRO)

Add "-Wl,-z,relro" (Partial RELRO) in COMMON_FLAGS and LDFLAGS
to support RELRO (RELocation Read-Only).
It is used to defend against GOT-Overwrite attack by removeing write permission.

Change-Id: If15e159d5b2e5ad1a07e54098ac9051581881abe
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
Makefile