UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 30271

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

Description

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"

Solution

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 General Article