From ec075ebf60a787fc0df0d863e5aa49bbcb677481 Mon Sep 17 00:00:00 2001 From: Evgeniy Paltsev Date: Wed, 13 Jul 2022 16:38:26 +0400 Subject: [PATCH] ARC: MWDT: add missing options to generate symbol file Fix for #47353 where we add and enable symbol generation, but miss to add proper options for ARCMWDT toolchain. Signed-off-by: Evgeniy Paltsev Signed-off-by: Eugeniy Paltsev --- cmake/bintools/arcmwdt/target_bintools.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/bintools/arcmwdt/target_bintools.cmake b/cmake/bintools/arcmwdt/target_bintools.cmake index 9320bb1fc5d..577bfacc4f6 100644 --- a/cmake/bintools/arcmwdt/target_bintools.cmake +++ b/cmake/bintools/arcmwdt/target_bintools.cmake @@ -101,3 +101,11 @@ set_property(TARGET bintools PROPERTY strip_flag_debug -ql) set_property(TARGET bintools PROPERTY strip_flag_infile "") set_property(TARGET bintools PROPERTY strip_flag_outfile -o ) + +# list symbols in a binary +set_property(TARGET bintools PROPERTY symbols_command ${CMAKE_NM}) +# flags are set to be as close to gnu nm format as possible +set_property(TARGET bintools PROPERTY symbols_flag "-xhpqgn") +set_property(TARGET bintools PROPERTY symbols_final "") +set_property(TARGET bintools PROPERTY symbols_infile "") +set_property(TARGET bintools PROPERTY symbols_outfile ">;" )