As per documentation the linker option --xref would prints the external references to stdout. Couldn't find any reference to malloc in the output log file(OUTPUTFILE.TXT) generated.
Following command is used for building.. Have enabled the xref in GUI. Where could we get this prints.. The intention is to parse the print so that external references like malloc, float etc is not there in the code being compiled
UV4 -b examples/projects/keil/STM32F413ZH/example.uvprojx -t "RELEASE" -o "OUTPUTFILE.TXT"
You don't need --xref just to see if the code includes malloc. Just inspecting the normal .map file should be entirely sufficient.
Nor would that output land in the file you point the -o output of uV4 to. It'll end up in the map file instead,as configured in the project.