[U-Boot] [PATCH v3] Switch from archive libraries to partial linking

Wolfgang Denk
2010-11-19T13:40:55Z

Dear Reinhard Meyer,

In message <4CE676A6.10205@emk-elektronik.de> you wrote:
> Have you tried something in the line of:
>
> /* Memory Definitions */
>
> MEMORY
> {
> CODE (rx) : ORIGIN 0x00000000, LENGTH 0x0007E000
> DATA (rw) : ORIGIN 0x40000000, LENGTH 0x00007A00
> ENET (rw) : ORIGIN 0x7FE00000, LENGTH 0x00004000
> }

I've looked into that, but didn't find a way to make it do what needs
to be done,

> *maybe* one can define several areas for CODE in the MEMORY section?

I don't think so. The "ld" documentation says: "Each memory region must
have a distinct name within the `MEMORY' command."

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Cigarette, n.: A fire at one end, a fool at the other, and a bit of
tobacco in between.