* [U-Boot-Users] u-boot.lds questions
@ 2005-01-19 12:03 Peter Asemann
2005-01-19 21:38 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Peter Asemann @ 2005-01-19 12:03 UTC (permalink / raw)
To: u-boot
I've "successfully" built my u-boot port (it doesn't throw warnings/error).
To do so I just copied some u-boot.lds from some other port.
I know that the u-boot.lds is a linker script that instructs the linker
to put code elements together in some specific way. At least the first
part does so. But the lower parts of the u-boot.lds I copied seem to be
increasingly deep magic. So... what does the u-boot.lds do exactly and
what happens if mine is wrong/broken? And why do I need it anyway?
The built put out the following things in the main directory:
-rwxr-x--- 1234997 Jan 19 12:51 u-boot
-rwxr-x--- 171372 Jan 19 12:51 u-boot.bin
-rw-r----- 94836 Jan 19 12:51 u-boot.map
-rwxr-x--- 514202 Jan 19 12:51 u-boot.srec
there are some parts that probably are important in board/esm (my
board's directory) too:
-rw-r----- 17000 Jan 17 16:05 esm.o
-rw-r----- 17176 Jan 17 16:05 libesm.a
Does that look reasonable/good?
Peter Asemann
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] u-boot.lds questions
2005-01-19 12:03 [U-Boot-Users] u-boot.lds questions Peter Asemann
@ 2005-01-19 21:38 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-01-19 21:38 UTC (permalink / raw)
To: u-boot
In message <41EE4C83.9020604@web.de> you wrote:
>
> To do so I just copied some u-boot.lds from some other port.
> I know that the u-boot.lds is a linker script that instructs the linker
> to put code elements together in some specific way. At least the first
> part does so. But the lower parts of the u-boot.lds I copied seem to be
> increasingly deep magic. So... what does the u-boot.lds do exactly and
I can't put it any better: It is a linker script that instructs the
linker to put code elements together in some specific way.
> what happens if mine is wrong/broken? And why do I need it anyway?
Your code will not run and/or crash.
You need it to get a working image.
> Does that look reasonable/good?
This is impossible to say from this information. u-boot.map might be
interesting to check - for you; please don't post it here, though.
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
"Spock, did you see the looks on their faces?"
"Yes, Captain, a sort of vacant contentment."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-19 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-19 12:03 [U-Boot-Users] u-boot.lds questions Peter Asemann
2005-01-19 21:38 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox