[LinuxBIOS] Re: Linuxbios is always 421bytes larger than allowed
On 6/27/05, yhlu <yinghailu@gmail.com> wrote:
I can not tell if you don't post your MB Config.lb
To use cache_as_ram you need to update your MB Config.lb and Option.lb and have your new cache_as_ram_auto.c
I referenced tyan s2885 codes to modify my Config.lb, Options.lb and cache_as_ram_auto.c I just tried to build tyan s2885 images form a clean updated tree and met the same problem. Regards, Liu Tao
Please try to reduce the ROM_IMAGE_SIZE to 0x13000 YH On 6/26/05, Tao Liu <liutao1980@gmail.com> wrote:
On 6/27/05, yhlu <yinghailu@gmail.com> wrote:
I can not tell if you don't post your MB Config.lb
To use cache_as_ram you need to update your MB Config.lb and Option.lb and have your new cache_as_ram_auto.c
I referenced tyan s2885 codes to modify my Config.lb, Options.lb and cache_as_ram_auto.c I just tried to build tyan s2885 images form a clean updated tree and met the same problem.
Regards, Liu Tao
_______________________________________________ LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
On 6/28/05, yhlu <yinghailu@gmail.com> wrote:
Please try to reduce the ROM_IMAGE_SIZE to 0x13000
YH
I set ROM_IMAGE_SIZE to 0x13000 and still got the 421bytes error. after set ROM_IMAGE_SIZE to 0x12000 got the following error: gcc -m32 -nostdlib -nostartfiles -static -o linuxbios -T ldscript.ld crt0.o init.o /usr/bin/ld: section .reset [00000000fffbfff0 -> 00000000fffbffff] overlaps section .init [00000000fffbaab0 -> 00000000fffc0ccf] /usr/bin/ld: section .id [00000000fffbffd9 -> 00000000fffbffef] overlaps section .init [00000000fffbaab0 -> 00000000fffc0ccf] /usr/bin/ld: section .rodata.str1.32 [00000000fffc0000 -> 00000000fffc01a4] overlaps section .init [00000000fffbaab0 -> 00000000fffc0ccf] collect2: ld returned 1 exit status make[1]: *** [linuxbios] Error 1 make[1]: Leaving directory `/home/lt/vvvv/freebios2-work/targets/ncic/x1000/x1000/normal' make: *** [normal/linuxbios.rom] Error 1 the error occurs when building the normal image, and the size of .rodata.str1.32 is just 421 byte. Are there errors setting sections?
I forget, did you send us your targets Config.lb? I think you still have got something wrong. ron
Please check your MB Config.lb there should be no "section .rodata.str1.32" section because it is already be change to .init.rodata.... YH On 6/27/05, Tao Liu <liutao1980@gmail.com> wrote:
On 6/28/05, yhlu <yinghailu@gmail.com> wrote:
Please try to reduce the ROM_IMAGE_SIZE to 0x13000
YH
I set ROM_IMAGE_SIZE to 0x13000 and still got the 421bytes error. after set ROM_IMAGE_SIZE to 0x12000 got the following error:
gcc -m32 -nostdlib -nostartfiles -static -o linuxbios -T ldscript.ld crt0.o init.o /usr/bin/ld: section .reset [00000000fffbfff0 -> 00000000fffbffff] overlaps section .init [00000000fffbaab0 -> 00000000fffc0ccf] /usr/bin/ld: section .id [00000000fffbffd9 -> 00000000fffbffef] overlaps section .init [00000000fffbaab0 -> 00000000fffc0ccf] /usr/bin/ld: section .rodata.str1.32 [00000000fffc0000 -> 00000000fffc01a4] overlaps section .init [00000000fffbaab0 -> 00000000fffc0ccf] collect2: ld returned 1 exit status make[1]: *** [linuxbios] Error 1 make[1]: Leaving directory `/home/lt/vvvv/freebios2-work/targets/ncic/x1000/x1000/normal' make: *** [normal/linuxbios.rom] Error 1
the error occurs when building the normal image, and the size of .rodata.str1.32 is just 421 byte. Are there errors setting sections?
On 6/29/05, yhlu <yinghailu@gmail.com> wrote:
Please check your MB Config.lb
there should be no "section .rodata.str1.32" section because it is already be change to .init.rodata....
YH
After add "--rename-section .rodata.str1.32=.init.rodata.str1.32" in init.o makerule the make process succeed. The rodata.str1.32 section should be created by compiler, my gcc version is 3.3.3(Debian 20040417) -- Regards, Liu Tao
in RH gcc3.4.3 in Suse gcc.3.3.3 only have .rodata.str1.1... can you update to gcc 3.4.3 have a try.... YH On 7/3/05, Tao Liu <liutao1980@gmail.com> wrote:
On 6/29/05, yhlu <yinghailu@gmail.com> wrote:
Please check your MB Config.lb
there should be no "section .rodata.str1.32" section because it is already be change to .init.rodata....
YH
After add "--rename-section .rodata.str1.32=.init.rodata.str1.32" in init.o makerule the make process succeed. The rodata.str1.32 section should be created by compiler, my gcc version is 3.3.3(Debian 20040417)
-- Regards, Liu Tao
or you can disable CONFIG_USE_INIT YH On 7/3/05, yhlu <yinghailu@gmail.com> wrote:
in RH gcc3.4.3 in Suse gcc.3.3.3 only have .rodata.str1.1...
can you update to gcc 3.4.3 have a try....
YH
On 7/3/05, Tao Liu <liutao1980@gmail.com> wrote:
On 6/29/05, yhlu <yinghailu@gmail.com> wrote:
Please check your MB Config.lb
there should be no "section .rodata.str1.32" section because it is already be change to .init.rodata....
YH
After add "--rename-section .rodata.str1.32=.init.rodata.str1.32" in init.o makerule the make process succeed. The rodata.str1.32 section should be created by compiler, my gcc version is 3.3.3(Debian 20040417)
-- Regards, Liu Tao
On 7/4/05, yhlu <yinghailu@gmail.com> wrote:
in RH gcc3.4.3 in Suse gcc.3.3.3 only have .rodata.str1.1...
can you update to gcc 3.4.3 have a try....
YH
I tried gcc3.3.6 with debian and it still have .rodata.str1.32 section, the following mail explains the strM.N section, It's better to rename all these sections to .init.rodata.strM.N, but I can't find how to do this job. http://mail.freestandards.org/pipermail/lsb-spec/2001-November/001794.html -- Regards, Liu Tao
so bytes alignment is different... YH On 7/4/05, Tao Liu <liutao1980@gmail.com> wrote:
On 7/4/05, yhlu <yinghailu@gmail.com> wrote:
in RH gcc3.4.3 in Suse gcc.3.3.3 only have .rodata.str1.1...
can you update to gcc 3.4.3 have a try....
YH
I tried gcc3.3.6 with debian and it still have .rodata.str1.32 section, the following mail explains the strM.N section, It's better to rename all these sections to .init.rodata.strM.N, but I can't find how to do this job.
http://mail.freestandards.org/pipermail/lsb-spec/2001-November/001794.html -- Regards, Liu Tao
On Mon, 4 Jul 2005, Tao Liu wrote:
I tried gcc3.3.6 with debian and it still have .rodata.str1.32 section, the following mail explains the strM.N section, It's better to rename all these sections to .init.rodata.strM.N, but I can't find how to do this job.
no, we need to fix the ldscripts, we had this problem once before in a slightly different situation. I'll try to fix this when I get back. It's an easy fix. ron
participants (3)
-
Ronald G. Minnich -
Tao Liu -
yhlu