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# 30590

11.1 EDK - mb-gcc errors out when used with -G16

Description

When I try to use the -G16 switch to put arrays into the .sdata section, the following error occurs:

"/cygdrive/d/EDK92/gnu/microblaze/nt/bin/../lib/gcc/microblaze-Xilinx-elf/4.1.1/../../../../microblaze-Xilinx-elf/bin/ld.real: /cygdrive/c/DOCUME~1/mafl/LOCALS~1/Temp/cc8SPlV5.o: The target (GpioInput) of an R_MICROBLAZE_SRW32 relocation is in the wrong section (COMMON)"

Solution

The problem is with the structure variable in the driver code. Unfortunately, only the default value of -G8 will work.

AR# 30590
Date Created 04/16/2008
Last Updated 12/15/2012
Status Active
Type General Article