public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Graeme Russ <graeme.russ@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] u-boot.lds i686-pc-linux-gnu-ld section .start16 overlapssection .text
Date: Thu, 04 Dec 2008 21:06:55 +1100	[thread overview]
Message-ID: <4937ABBF.2010205@gmail.com> (raw)
In-Reply-To: <49EF8B38CAABF74C8FFEA1405FDFBE9241E9BC@suzexch01.taihootech.com>

Lance Zhang wrote:
>> Have a look at u-boot.map - This file is generated by the linker and it
> will >tell you exactly where it put everything
>> Also, .text section (the one that holds all the code) looks to be very
> big:
>> 0x06011b85 - 0x05fe0000 = 0x31b85 (~200kB)
> 
> Graeme, Thank you very much.
> 
> I know the root cause, the Ethernet driver use lots of address space. I
> ported the driver from a Linux driver (wireless Linux Ethernet driver),
> just modified some u-boot incompatible functions. And the codes are very
> large. I will remove some codes
> 
> 
> But when I remove the Ethernet module, I looked the System.map file and
> found that I can only use 6312 bytes space. It will be difficult for me

Hmm, I have 170kB free - minus 128kB (assuming you're using a 128kB flash
rather than my 256kB) leaves 42kB, so you are using ~36kB more than my 86kB
Looks like you may have some places to carve out some code.

> to reduce the wireless Ethernet driver into 6312bytes. Anyway Thanks for
> the explanations.

Good luck, glad to be of service

> 
> Lance Zhang

Graeme

  reply	other threads:[~2008-12-04 10:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04  7:07 [U-Boot] u-boot.lds i686-pc-linux-gnu-ld section .start16 overlaps section .text LanceZ
2008-12-04  7:47 ` [U-Boot] u-boot.lds i686-pc-linux-gnu-ld section .start16 overlapssection .text Vignesh Kumar B
2008-12-04  8:07   ` Lance Zhang
2008-12-04  9:10     ` Graeme Russ
2008-12-04  9:48       ` Lance Zhang
2008-12-04 10:06         ` Graeme Russ [this message]
2008-12-12  2:37           ` LanceZ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4937ABBF.2010205@gmail.com \
    --to=graeme.russ@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox