[U-Boot-Users] u-boot (sc520_cdp) compile problem!

I want to port U-boot to my custom Pentium 2 board, so I do a test compile of sc520_cdp config first, but can not pass when linking.
OS: Redhat 7.3 on X86 gcc: 2.96-110 binutils: 2.11.93
step: make distclean make sc520_cdp_config make ERROR: ld: section .data [387f6e00 -> 387f7fa3] overlaps section .rodata.str1.1 [387f6e00 -> 387f868d] ld: section .realmode [387f7fa4 -> 387f8109] overlaps section .rodata.str1.1 [387f6e00 -> 387f868d] ld: section .bios [387f810a -> 387f831b] overlaps section .rodata.str1.1 [387f6e00 -> 387f868d] make: *** [u-boot] Error 1
why? how to correct this problem?? thanks a lot!!!!
_________________________________________________________ Do You Yahoo!? 雅虎通网络KTV, 随时随地免费卡拉OK~~ http://rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com//chat/index.h...

On 2003.04.10 03:30 佐亮 朱 wrote:
I want to port U-boot to my custom Pentium 2 board, so I do a test compile of sc520_cdp config first, but can not pass when linking.
Wellcome, 佐亮 朱, you are the first user of the i386 port, besides myself, that I have heard of.
OS: Redhat 7.3 on X86 gcc: 2.96-110 binutils: 2.11.93
I use the following (which is close to what you're using, but you could try to ditch the RH gcc 2.96 compiler I think it is known to be no good.)
gcc version 2.95.4 20011002 (Debian prerelease) GNU ld version 2.12.90.0.1 20020307 Debian/GNU Linux
step: make distclean make sc520_cdp_config make ERROR: ld: section .data [387f6e00 -> 387f7fa3] overlaps section .rodata.str1.1 [387f6e00 -> 387f868d] ld: section .realmode [387f7fa4 -> 387f8109] overlaps section .rodata.str1.1 [387f6e00 -> 387f868d] ld: section .bios [387f810a -> 387f831b] overlaps section .rodata.str1.1 [387f6e00 -> 387f868d] make: *** [u-boot] Error 1
why? how to correct this problem?? thanks a lot!!!!
What is the .rodata.str1.1 section for?
I think you'll need to modify board/sc520_cdp/u-boot.lds to take this section in account.
If you're serius about using the i386 port you'll want to get another patch from me which fixes a few problem I have found. Un-fortunatly we have a deadline before Easter so I dont think that I'll be able to provide this patch before we have deliverted.
Drop me an email after the Easter holidays and I'll try to produce the patch for you.
/Daniel

In message 20030410140411.V10471@jupiter.omicron.se you wrote:
Drop me an email after the Easter holidays and I'll try to produce the=20 patch for you.
Please include me and/or the mailing list in the Cc:
Best regards,
Wolfgang Denk
participants (3)
-
Daniel Engstr�m
-
Wolfgang Denk
-
佐亮 朱