AR# 30590


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


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)"


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

AR# 30590
日期 12/15/2012
状态 Active
Type 综合文章
People Also Viewed