diff --git a/tools/cmake/scripts/data_file_embed_asm.cmake b/tools/cmake/scripts/data_file_embed_asm.cmake index 5a86d70335..1cbdb66129 100644 --- a/tools/cmake/scripts/data_file_embed_asm.cmake +++ b/tools/cmake/scripts/data_file_embed_asm.cmake @@ -71,7 +71,9 @@ endif() append_line(" */") append_line(".data") +append_line("#if !defined (__APPLE__) && !defined (__linux__)") append_line(".section .rodata.embedded") +append_line("#endif") make_and_append_identifier("${varname}") make_and_append_identifier("_binary_${varname}_start" "for objcopy compatibility") append("${data}")