From: Wolfgang Denk Date: Mon, 27 Oct 2003 11:21:33 +0100 Subject: [U-Boot-Users] how to modify my ld scripts--the detail! In-Reply-To: Your message of "Mon, 27 Oct 2003 02:14:40 PST." <20031027101440.84892.qmail@web41110.mail.yahoo.com> Message-ID: <20031027102139.0C8A0C59E4@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Joe, in message <20031027101440.84892.qmail@web41110.mail.yahoo.com> you wrote: > > This is my scripts ... > . = ALIGN(4); > .bss : { *(.bss) } > > . = ALIGN(76 * 1024); This _alignes_ on a 76 kB boundary (which makjes absolutely no sense to me), but it does not _place_ the segment at a certain address. > #define #define CFG_ENV_ADDR (PHYS_FLASH_1 > + 0x13000) > > Is it wrong? What i need to do? Calculate result=PHYS_FLASH_1+0x13000 and use ". = result" in your linker script. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de When you say "I wrote a program that crashed Windows", people just stare at you blankly and say "Hey, I got those with the system, *for free*". - Linus Torvalds in <3itc77$9lj@ninurta.fer.uni-lj.si>