^

AR# 30271 10.1 EDK, GCC Error: "/cygdrive/c/Temp/ccIhdfRf.s:20: Error: Variable is accessed using small data read write anchor, but..."

Keywords: GCC, GNU, C, compiler, small, variable, mxl-gp-opt

When I select the Use Global Pointer Optimization in the Debug and Optimization tab for the Compiler options, I receive the following error:

"/cygdrive/c/Temp/ccIhdfRf.s:20: Error: Variable is accessed using small data read write anchor, but it is not in the small data read write section"

Problems with the small data global pointer optimization can occur when global variables are initialized to 0.

To work around this issue, do not use global variables initialized to 0.

This problem has been fixed in the latest EDK 10.1 Service Pack, available at:
http://www.xilinx.com/xlnx/xil_sw_updates_home.jsp
The first service pack containing the fix is EDK 10.1 Service Pack 1.
AR# 30271
Date Created 02/11/2008
Last Updated 04/15/2008
Status Active
Type
Feed Back