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

7.1i EDK - Error: "powerpc-eabi-ld: section .rodata.str overlaps section .data.str"

Description

Keywords: GNU, powerpc-eabi-gcc, powerpc-eabi-ld, rodata, data, linker, script

With the release of EDK 7.1i, the GNU compilers have been upgraded to 3.4.3. The latest compilers create several new read-only data sections that need to be added to existing linker scripts. The following errors are generated by the latest compilers:

XPS% powerpc-eabi-gcc -O2 code/system.c -o ppc405_i/code/executable.elf \ -Wl,-T -Wl,code/linker_script -I./ppc405_i/include/ -Ippc405_i/include/ -L./ppc405_i/lib/ -Lppc405_i/lib/ \ /proj/xbuilds/EDK/EDK_H.6/gnu/powerpc-eabi/lin/bin/../lib/gcc/powerpc-eabi/3.4.1 /../../../../powerpc-eabi/bin/ld: section .rodata.str1.4 [00000168 -> 00000195] overlaps section .data.rel.local [00000000 -> 000002ef] /proj/xbuilds/EDK/EDK_H.6/gnu/powerpc-eabi/lin/bin/../lib/gcc/powerpc-eabi/3.4.1 /../../../../powerpc-eabi/bin/ld: final link failed: File truncated collect2: ld returned 1 exit status gmake: *** [ppc405_i/code/executable.elf] Error 1 ERROR:MDT - Error while running "gmake -f system.make program" ERROR:MDT - ErrorXPS% No changes to be saved in MSS file Saved project XMP file

Solution

There are two possible resolutions, as follows:

- Regenerate the linker script using the Linker Script writer in XPS. In XPS, select Tools -> Generate Linker Script ....

- Verify that the linker script currently being used has the following sections:

.text : {
__text_start = .;
*(.text)
*(.text.*)
*(.gnu.linkonce.t*)

__text_end = .;
} > memory

.rodata : {
__rodata_start = .;
*(.rodata)
*(.rodata.*)
*(.gnu.linkonce.r*)

__rodata_end = .;
} > memory

.data : {
__data_start = .;
*(.data)
*(.data.*)
*(.gnu.linkonce.d*)

__data_end = .;
} > memory
AR# 20509
Date Created 12/14/2004
Last Updated 04/16/2007
Status Archive
Type General Article