* [U-Boot] Fix for overlapping sections?
@ 2011-04-18 23:20 Ciummo, Larry
2011-04-20 6:42 ` Wolfgang Denk
2011-04-20 19:03 ` Charles Manning
0 siblings, 2 replies; 5+ messages in thread
From: Ciummo, Larry @ 2011-04-18 23:20 UTC (permalink / raw)
To: u-boot
Designation: Non-SSA/Finmeccanica
A while back there was a fix for the overlapping section link problem
(see below) involving changing some sort of global. Does anyone have a
pointer to the change. I'm using a fairly old uboot for AMCC
Canyonlands/460Ex and can't easily upgrade to a newer uboot build.
Thanks
Larry
eldk/usr/bin/../lib/gcc/powerpc-linux/4.2.2/pic -lgcc -Map u-boot.map -o
u-boot
/opt/eldk/usr/bin/ppc_4xx-ld: section .bootpg [fffff000 -> fffff303]
overlaps section .data.rel.local [ffffe1d8 -> fffffebb]
/opt/eldk/usr/bin/ppc_4xx-ld: u-boot: section .bootpg lma 0xfffff000
overlaps previous sections
/opt/eldk/usr/bin/ppc_4xx-ld: u-boot: section .u_boot_cmd lma 0xfffffebc
overlaps previous sections
make: *** [u-boot] Error 1
3.1.0805
3.1.0805
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] Fix for overlapping sections?
2011-04-18 23:20 [U-Boot] Fix for overlapping sections? Ciummo, Larry
@ 2011-04-20 6:42 ` Wolfgang Denk
[not found] ` <F4BA0E7CACFBAC4384DC92F2D5AAB507B1165B@DSGBURGMAIL001.gburg.drs-ds.master>
2011-04-20 19:03 ` Charles Manning
1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2011-04-20 6:42 UTC (permalink / raw)
To: u-boot
Dear "Larry",
In message <F4BA0E7CACFBAC4384DC92F2D5AAB507AB43EA@DSGBURGMAIL001.gburg.drs-ds.master> you wrote:
>
> A while back there was a fix for the overlapping section link problem
> (see below) involving changing some sort of global. Does anyone have a
> pointer to the change. I'm using a fairly old uboot for AMCC
> Canyonlands/460Ex and can't easily upgrade to a newer uboot build.
I don't understand what you mean. Why exactly can you not upgrade to
a recent version of U-Boot? All it takes to get a current version of
U-Boot for the Canyonlands board is to type "./MAKEALL canyonlands".
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A fail-safe circuit will destroy others. -- Klipstein
^ permalink raw reply [flat|nested] 5+ messages in thread* [U-Boot] Fix for overlapping sections?
2011-04-18 23:20 [U-Boot] Fix for overlapping sections? Ciummo, Larry
2011-04-20 6:42 ` Wolfgang Denk
@ 2011-04-20 19:03 ` Charles Manning
2011-04-20 19:31 ` Albert ARIBAUD
1 sibling, 1 reply; 5+ messages in thread
From: Charles Manning @ 2011-04-20 19:03 UTC (permalink / raw)
To: u-boot
On Tuesday 19 April 2011 11:20:47 Ciummo, Larry (DS-1) wrote:
> Designation: Non-SSA/Finmeccanica
>
> A while back there was a fix for the overlapping section link problem
> (see below) involving changing some sort of global. Does anyone have a
> pointer to the change. I'm using a fairly old uboot for AMCC
> Canyonlands/460Ex and can't easily upgrade to a newer uboot build.
>
> Thanks
> Larry
>
> eldk/usr/bin/../lib/gcc/powerpc-linux/4.2.2/pic -lgcc -Map u-boot.map -o
> u-boot
> /opt/eldk/usr/bin/ppc_4xx-ld: section .bootpg [fffff000 -> fffff303]
> overlaps section .data.rel.local [ffffe1d8 -> fffffebb]
> /opt/eldk/usr/bin/ppc_4xx-ld: u-boot: section .bootpg lma 0xfffff000
> overlaps previous sections
> /opt/eldk/usr/bin/ppc_4xx-ld: u-boot: section .u_boot_cmd lma 0xfffffebc
> overlaps previous sections
> make: *** [u-boot] Error 1
Overlapping sections are commonly caused by one of two problems:
1) You have set up the memory map in a way that does not give enough space so
the sections do indeed overlap.
2) Your ld script is not handling all the sections being fed to it. This is
likely if you have switched to using -ffunction-sections etc.
In the case of (2) you will need to modify your ld script with something like:
@@ -34,8 +34,8 @@ SECTIONS
. = ALIGN(4);
.text :
{
- arch/arm/cpu/armv7/start.o (.text)
- *(.text)
+ KEEP(arch/arm/cpu/armv7/start.o (.text*))
+ *(.text*)
}
. = ALIGN(4);
@@ -70,7 +70,7 @@ SECTIONS
.bss __rel_dyn_start (OVERLAY) : {
__bss_start = .;
- *(.bss)
+ *(.bss*)
. = ALIGN(4);
__bss_end__ = .;
}
^ permalink raw reply [flat|nested] 5+ messages in thread* [U-Boot] Fix for overlapping sections?
2011-04-20 19:03 ` Charles Manning
@ 2011-04-20 19:31 ` Albert ARIBAUD
0 siblings, 0 replies; 5+ messages in thread
From: Albert ARIBAUD @ 2011-04-20 19:31 UTC (permalink / raw)
To: u-boot
Le 20/04/2011 21:03, Charles Manning a ?crit :
> On Tuesday 19 April 2011 11:20:47 Ciummo, Larry (DS-1) wrote:
>> Designation: Non-SSA/Finmeccanica
>>
>> A while back there was a fix for the overlapping section link problem
>> (see below) involving changing some sort of global. Does anyone have a
>> pointer to the change. I'm using a fairly old uboot for AMCC
>> Canyonlands/460Ex and can't easily upgrade to a newer uboot build.
>>
>> Thanks
>> Larry
>>
>> eldk/usr/bin/../lib/gcc/powerpc-linux/4.2.2/pic -lgcc -Map u-boot.map -o
>> u-boot
>> /opt/eldk/usr/bin/ppc_4xx-ld: section .bootpg [fffff000 -> fffff303]
>> overlaps section .data.rel.local [ffffe1d8 -> fffffebb]
>> /opt/eldk/usr/bin/ppc_4xx-ld: u-boot: section .bootpg lma 0xfffff000
>> overlaps previous sections
>> /opt/eldk/usr/bin/ppc_4xx-ld: u-boot: section .u_boot_cmd lma 0xfffffebc
>> overlaps previous sections
>> make: *** [u-boot] Error 1
>
> Overlapping sections are commonly caused by one of two problems:
> 1) You have set up the memory map in a way that does not give enough space so
> the sections do indeed overlap.
> 2) Your ld script is not handling all the sections being fed to it. This is
> likely if you have switched to using -ffunction-sections etc.
>
> In the case of (2) you will need to modify your ld script with something like:
> @@ -34,8 +34,8 @@ SECTIONS
> . = ALIGN(4);
> .text :
> {
> - arch/arm/cpu/armv7/start.o (.text)
> - *(.text)
> + KEEP(arch/arm/cpu/armv7/start.o (.text*))
> + *(.text*)
> }
>
> . = ALIGN(4);
> @@ -70,7 +70,7 @@ SECTIONS
>
> .bss __rel_dyn_start (OVERLAY) : {
> __bss_start = .;
> - *(.bss)
> + *(.bss*)
> . = ALIGN(4);
> __bss_end__ = .;
> }
Watch out: these are ARM excerpts. The original problem is on PPC, to
which these might possibly not apply.
Aside: I understand the stars added because of the -ffunction-section in
your example, but why the KEEP(), or more specifically, what makes it
required with -ffunction-section? Unless you assume --gc-sections also?
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-04-25 17:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-18 23:20 [U-Boot] Fix for overlapping sections? Ciummo, Larry
2011-04-20 6:42 ` Wolfgang Denk
[not found] ` <F4BA0E7CACFBAC4384DC92F2D5AAB507B1165B@DSGBURGMAIL001.gburg.drs-ds.master>
2011-04-25 17:21 ` Wolfgang Denk
2011-04-20 19:03 ` Charles Manning
2011-04-20 19:31 ` Albert ARIBAUD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox