^

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

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?

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).
AR# 37426
Date Created 08/13/2010
Last Updated 08/16/2010
Status Active
Type
Feed Back