All of lore.kernel.org
 help / color / mirror / Atom feed
From: raj <rashetty@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Raw binary u-boot.bin is bigger that elf file u-boot
Date: Thu, 27 Jan 2005 12:50:41 -0500	[thread overview]
Message-ID: <b4ab3e2905012709501c264117@mail.gmail.com> (raw)
In-Reply-To: <20050127002324.56186C108D@atlas.denx.de>

Hello All,

               I got the following by running "objdump -h u-boot" , I
have no idea what has to be done with this .

|----------------------------------------------------------------------------------------------------------------------|
u-boot:     file format elf32-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         000157a7  387c0000  387c0000  00001000  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .rodata       000074ec  387d57c0  387d57c0  000167c0  2**5
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .data         00000df8  00400000  387dccac  0001e000  2**5
                  CONTENTS, ALLOC, LOAD, DATA
  3 .got          00000000  00400df8  00400df8  00021000  2**0
                  CONTENTS
  4 .bss          000062c0  00400e00  00400e00  00000e00  2**5
                  ALLOC
  5 .realmode     00000166  000007c0  387ddaa4  0001f7c0  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  6 .bios         0000053e  00000000  387ddc0a  00020000  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  7 .u_boot_cmd   00000438  00000540  00000540  00000540  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  8 .start16      000000ad  0000ff00  387fff00  00020f00  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  9 .reset        00000010  0000fff0  387ffff0  00020ff0  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
 10 .stab         00002c7c  00000000  00000000  00021000  2**2
                  CONTENTS, READONLY, DEBUGGING
 11 .stabstr      000001d9  00000000  00000000  00023c7c  2**0
                  CONTENTS, READONLY, DEBUGGING
 12 .debug_abbrev 00007bdd  00000000  00000000  00023e55  2**0
                  CONTENTS, READONLY, DEBUGGING
 13 .debug_info   000467ac  00000000  00000000  0002ba32  2**0
                  CONTENTS, READONLY, DEBUGGING
 14 .debug_line   0000a236  00000000  00000000  000721de  2**0
                  CONTENTS, READONLY, DEBUGGING
 15 .debug_frame  0000521c  00000000  00000000  0007c414  2**2
                  CONTENTS, READONLY, DEBUGGING
 16 .debug_pubnames 00002849  00000000  00000000  00081630  2**0
                  CONTENTS, READONLY, DEBUGGING
 17 .debug_aranges 000007e0  00000000  00000000  00083e79  2**0
                  CONTENTS, READONLY, DEBUGGING
 18 .debug_ranges 00000470  00000000  00000000  00084659  2**0
                  CONTENTS, READONLY, DEBUGGING
 19 .debug_str    00005658  00000000  00000000  00084ac9  2**0
                  CONTENTS, READONLY, DEBUGGING
 20 .comment      00000cc0  00000000  00000000  0008a121  2**0
                  CONTENTS, READONLY
|----------------------------------------------------------------------------------------------------------------------|

Regarding the linker script what exaclty should i look for, more
details would be helful.

Anyway i have added the LD command from the compilation windows.

|----------------------------------------------------------------------------------------------------------------------|
ld -Bstatic -T /home/rashetty/u-boot-1.0.0/board/sc520_cdp/u-boot.lds
-Ttext 0x387c0000  $UNDEF_SYM cpu/i386/start.o cpu/i386/start16.o
cpu/i386/reset.o \
		--start-group board/sc520_cdp/libsc520_cdp.a cpu/i386/libi386.a
lib_i386/libi386.a fs/jffs2/libjffs2.a fs/fdos/libfdos.a
fs/fat/libfat.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a
drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a
post/cpu/libcpu.a common/libcommon.a lib_generic/libgeneric.a -L
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2 -lgcc --end-group \
		-Map u-boot.map -o u-boot
|----------------------------------------------------------------------------------------------------------------------|

I am doing this for first time. More detailed information would be
more helpful for newbie like me.


On Thu, 27 Jan 2005 01:23:19 +0100, Wolfgang Denk <wd@denx.de> wrote:
> In message <b4ab3e29050126160843cb886a@mail.gmail.com> you wrote:
> >
> > u-boot            - 60442 bytes
> > u-boot.bin     - 947911360 bytes.
> > u-boot.map  - 116152 bytes.
> >
> > This is really confusing since we get the raw binary by running the
> > "objcopy" tool on the ELF format file u-boot.
> 
> This can happen easily if there  are  (huge)  gaps  in  your  image's
> address map. Run "objdump -h" to check this.
> 
> > Any help on this shall be really helpful
> 
> Check your linker script and compare against the  memory  map  needed
> for your hardware.
> 
> Best regards,
> 
> Wolfgang Denk
> 
> --
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> COMPONENT EQUIVALENCY NOTICE:  The  Subatomic  Particles  (Electrons,
> Protons,  etc.) Comprising This Product Are Exactly the Same in Every
> Measurable Respect as Those Used in the Products of Other  Manufactu-
> rers,  and  No Claim to the Contrary May Legitimately Be Expressed or
> Implied.
> 


-- 
Regards,
Rajesha.

  reply	other threads:[~2005-01-27 17:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-27  0:08 [U-Boot-Users] Raw binary u-boot.bin is bigger that elf file u-boot raj
2005-01-27  0:23 ` Wolfgang Denk
2005-01-27 17:50   ` raj [this message]
2005-01-27 22:25 ` Jon Loeliger

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=b4ab3e2905012709501c264117@mail.gmail.com \
    --to=rashetty@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.