WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2017-Apr-14 04:17:44

between
Member
Registered: 2017-Apr-14
Posts: 2

gcc link section overflow when complie 80211 software project

When I compile the software project wlan_mac_high_ap(in 802.11 Reference Design for WARP v3),the following error occurred:

Code:

'Building target: wlan_mac_high_ap.elf'
'Invoking: MicroBlaze gcc linker'
mb-gcc -Wl,-Map=executable.map,--gc-sections -Wl,-T -Wl,../../svn_src/wlan_mac_high_ap/lscript.ld -L../../wlan_bsp_cpu_high/mb_high/lib -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mcpu=v8.40.b -mno-xl-soft-mul -Wl,--no-relax -Wl,--gc-sections -o "wlan_mac_high_ap.elf"  ./wlan_mac_high_framework/wlan_exp_common.o ./wlan_mac_high_framework/wlan_exp_node.o ./wlan_mac_high_framework/wlan_exp_transport.o ./wlan_mac_high_framework/wlan_exp_user.o ./wlan_mac_high_framework/wlan_mac_addr_filter.o ./wlan_mac_high_framework/wlan_mac_bss_info.o ./wlan_mac_high_framework/wlan_mac_entries.o ./wlan_mac_high_framework/wlan_mac_eth_util.o ./wlan_mac_high_framework/wlan_mac_event_log.o ./wlan_mac_high_framework/wlan_mac_high.o ./wlan_mac_high_framework/wlan_mac_ltg.o ./wlan_mac_high_framework/wlan_mac_packet_types.o ./wlan_mac_high_framework/wlan_mac_queue.o ./wlan_mac_high_framework/wlan_mac_scan.o ./wlan_mac_high_framework/wlan_mac_schedule.o ./wlan_mac_high_framework/wlan_mac_station_info.o  ./wlan_mac_common/wlan_mac_common.o ./wlan_mac_common/wlan_mac_dl_list.o ./wlan_mac_common/wlan_mac_mailbox_util.o ./wlan_mac_common/wlan_mac_pkt_buf_util.o ./wlan_mac_common/wlan_mac_sysmon_util.o ./wlan_mac_common/wlan_mac_time_util.o ./wlan_mac_common/wlan_mac_userio_util.o  ./src/wlan_exp_node_ap.o ./src/wlan_mac_ap.o ./src/wlan_mac_ap_uart_menu.o   -Wl,--start-group,-lxil,-lgcc,-lc,--end-group
c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/bin/ld.exe: wlan_mac_high_ap.elf section `.text' will not fit in region `mb_high_ilmb_bram_cntlr_0_mb_high_dlmb_bram_cntlr_0'
c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/bin/ld.exe: section .ctors loaded at [00020000,00020007] overlaps section .text loaded at [00000050,000272ab]
c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/bin/ld.exe: region `mb_high_ilmb_bram_cntlr_0_mb_high_dlmb_bram_cntlr_0' overflowed by 29448 bytes
collect2: ld returned 1 exit status
make: *** [wlan_mac_high_ap.elf] 错误 1

how to increase the value of `mb_high_ilmb_bram_cntlr_0_mb_high_dlmb_bram_cntlr_0'?

Offline

 

#2 2017-Apr-14 08:22:21

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: gcc link section overflow when complie 80211 software project

That error indicates the AP application binary was too large for the CPU High instruction memory. This should not occur with the reference code.

What version of the 802.11 Reference Design are you using? Have you modified the C code or application compiler settings? Did you import the C application projects into an SDK workspace per the user guide instructions?

Based on the log above you're using ISE/SDK 14.7. We strongly recommend version 14.4. There is at least one serious bug in the 14.7 SDK when compiling code for MicroBlaze CPUs, and 14.7 has no real improvements over 14.4 for Virtex-6 devices. You can download the 14.4 SDK from Xilinx's site (there's a smaller installer for just the SDK if you don't plan to modify the reference hardware design).

Offline

 

#3 2017-Apr-17 05:16:22

between
Member
Registered: 2017-Apr-14
Posts: 2

Re: gcc link section overflow when complie 80211 software project

Thanks for your reply! After switch to 14.4 ISE, this compilation error disappears.

Offline

 

Board footer