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

Search Answers Database


 

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

AR# 30271
Part EDK-GNU
Last Modified 2008-04-15 00:00:00.0
Status Active
Keywords GCC, GNU, C, compiler, small, variable, mxl-gp-opt

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.
 
 
Jobs Events Webcasts News Investors Feedback Legal Privacy Trademarks Sitemap
©  1994-2008 Xilinx, Inc. All Rights Reserved.