feat(build): add support for new binutils versions

Users of GNU ld (BFD) from binutils 2.39+ will observe multiple instaces
of a new warning when linking the tftf.elf in the form:

ld.bfd: warning: tftf.elf has a LOAD segment with RWX permissions

These new warnings are enbaled by default to secure elf binaries:
 - https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107
 - https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=0d38576a34ec64a1b4500c9277a8e9d0f07e6774

Linux kernel fixed it as listed here:
https://lore.kernel.org/all/20220810222442.2296651-1-ndesaulniers@google.com/

Following this, we have resolved the same in TF-A as well:
https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/19401

Replicating the same for TFTF as well, by adding
--no-warn-rwx-segments since this a ld.bfd related.

Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
Change-Id: I191e6c62ca6e437ea8c696d823b44d6c6da48ab6
diff --git a/Makefile b/Makefile
index 5c9645b..e4b9066 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2018-2022, Arm Limited. All rights reserved.
+# Copyright (c) 2018-2023, Arm Limited. All rights reserved.
 #
 # SPDX-License-Identifier: BSD-3-Clause
 #
@@ -229,6 +229,10 @@
 
 COMMON_LDFLAGS		+=	--fatal-warnings -O1 --gc-sections --build-id=none
 
+# With ld.bfd version 2.39 and newer new warnings are added. Skip those since we
+# are not loaded by a elf loader.
+COMMON_LDFLAGS		+=	--no-warn-rwx-segments
+
 CC			:=	${CROSS_COMPILE}gcc
 CPP			:=	${CROSS_COMPILE}cpp
 AS			:=	${CROSS_COMPILE}gcc