Main

12.1 EDK - The MicroBlaze project does not properly return from a xil_printf call when function-sections and gc-sections switches are used

AR# 37426

Search For Another Answer

Topic EDK Software
Last Updated 08/16/2010
Status Active
Description

The MicroBlaze project does not properly return from a xil_printf call when function-sections and gc-sections switches are used. 

What could be the problem?

Solution

The function-sections and gc-sections allow for a more compact binary file. Unfortunately, the gc-sections switch causes the linker to erroneously remove the return function that xil_printf uses. 

The only way to work around this issue is to not use the -ffunction-sections and --gc-sections switches.  For more explanation on these switches, please refer to (Xilinx Answer 21533).
 
 
/csi/footer.htm