Makefile: Add security compiling flags (RELRO) 40/301940/1
authorUnsung Lee <unsung.lee@samsung.com>
Fri, 24 Nov 2023 12:41:42 +0000 (21:41 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Tue, 28 Nov 2023 04:11:18 +0000 (13:11 +0900)
commit5b607192609fd88469189dbd9fd40f9a8a6978a3
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