Build: Suppress armclang and IAR linker error

There are symbols in the bl1_1_shared_symbols.txt that are
only defined in some configuration. If other configurations are
used then armclang and IAR throw error for missing definitions.

This error is suppressed by this commit so the same shared symbol
file can be used for every configuration, without conditions.

Change-Id: I9e35ac1105a02d6b345b1e06f863ca4fc31e9f2e
Signed-off-by: Bence Balogh <bence.balogh@arm.com>
Signed-off-by: Dávid Házi david.hazi@arm.com
diff --git a/toolchain_ARMCLANG.cmake b/toolchain_ARMCLANG.cmake
index 9027e08..927ab67 100644
--- a/toolchain_ARMCLANG.cmake
+++ b/toolchain_ARMCLANG.cmake
@@ -422,6 +422,12 @@
     target_link_options(${target}
         PRIVATE
             ${KEEP_SYMBOL_LIST}
+            # This is needed because the symbol file can contain functions
+            # that are not defined in every build configuration.
+            # The L6474E is:
+            # "Symbol referenced by --undefined or --undefined_and_export
+            # switch could not be resolved by a static library."
+            --diag_warning 6474
     )
 
     # Ask armclang to produce a symdefs file that will