[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclinux-dev
Subject:    Re: [uClinux-dev] Very large images
From:       "D. Jeff Dionne" <jeff () arcturusnetworks ! com>
Date:       2002-03-29 1:10:11
[Download RAW message or body]

Matt Bergeron <smackeron@caltech.edu> said:

> Hi,
> 
> Was this large images issue on the uCsimm ever resolved? I'm using 
> distribution 20020220 and trying to build a 2.0.39 kernel with the ELF 
> toolchain, and getting an image over 200 MB in size. 

Something is wrong with your .ld file or your object copy from ELF to
binary.

> I'm getting the 
> exact same warning in the linker stage that Steven was. Is there a 
> problem with the distro?

Distro?  Not sure what that is (WRT uClinux) but you are having a
problem with the kernel (build system or .ld files) interacting with the
toolchain.  On the linux ELF file, run m68k-elf-nm or m68k-elf-objdump
--headers and have a look at what sections are where (and how big).
Then look at what the .ld file is trying to do and what the Makefiles
(or Rules.make) are trying to strip out to make the binary image.

Likely just something 'extra' that the ELF toolchain is putting into
the file that COFF didn't... being aware that objcopy has to put space
in the binary file for any holes in the memory map that remain (say,
between .text+.rodata and .data+.bss)

J

> 
> Thanks,
> Matt
> 
> 
> On Sunday, October 21, 2001, at 05:10  PM, Steven Merrifield wrote:
> 
> > Hi all,
> >
> > I am still having problems getting the elf tools to create an image 
> > that is
> > less
> > than 200M. I am getting two warnings at the linker stage, shown below. 
> > Is
> > the
> > last one due to a missing flag somewhere, and is it the cause of my 
> > problem?
> >
> > Using distribution 20010622, kernel 2.0.38, EZ328, elf, patched 
> > Rules.make
> > to
> > disable the coff tools.
> >
> > Thanks,
> > steve
> >
> > m68k-elf-ld -g -T arch/m68knommu/platform/68EZ328/ucsimm/rom.ld
> > arch/m68knommu/p
> > latform/68EZ328/ucsimm/crt0_rom.o init/main.o init/version.o \
> > arch/m68knommu/kernel/kernel.o arch/m68knommu/mm/mm.o
> > arch/m68knommu/platform/68
> > EZ328/platform.o kernel/kernel.o fs/fs.o ipc/ipc.o net/network.a
> > mmnommu/mm.o \
> > fs/filesystems.a \
> > drivers/block/block.a drivers/char/char.a drivers/net/net.a \
> > /win/uClinux-distribution/linux/lib/lib.a arch/m68knommu/lib/lib.a
> > `m68k-elf-gcc
> >  -g -D__KERNEL__ -I/win/uClinux-distribution/linux/include -v 2>&1 | 
> > grep
> > specs
> > | sed -e "s/Reading specs from //" | sed -e 
> > s/specs/m68000\\\/libgcc.a/` -o
> > linu
> > x
> > /usr/local/bin/m68k-elf-ld.real: Warning: size of symbol `irq2dev_map'
> > changed f
> > rom 4 to 128 in auto_irq.o
> > /usr/local/bin/m68k-elf-ld.real: warning: no memory region specified for
> > section
> >  `.rodata'
> > m68k-elf-nm linux | grep -v '\(compiled\)\|\(\.o$\)\|\( a \)' | sort >
> > System.ma
> > p
> >
> > This message resent by the uclinux-dev@uclinux.org list server 
> > http://www.uClinux.org/
> 
> This message resent by the uclinux-dev@uclinux.org list server 
http://www.uClinux.org/
> 



-- 
D. Jeff Dionne                                        
Jeff@ArcturusNetworks.com



[Attachment #3 (application/octet-stream)]
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic