Ok, I've got it now. But still some stupid problems. http://sourceware.org/ml/binutils/2005-04/msg00193.html Thanks, Zhenyu.
-----邮件原件----- 发件人: Zagorodnev, Grigory [mailto:[EMAIL PROTECTED] 发送时间: 2005年4月8日 4:32 收件人: [EMAIL PROTECTED]; gcc@gcc.gnu.org 主题: RE: How to specify customized base addr? You may extract default linker script "gcc ... -Wl,--verbose", change the base address and rebuild application, overriding default linker script by the new-one. SECTIONS { /* Read-only sections, merged into text segment: */ . = 0x400000 + SIZEOF_HEADERS; - Grigory >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of >[EMAIL PROTECTED] >Sent: Thursday, April 07, 2005 8:25 PM >To: gcc@gcc.gnu.org >Subject: How to specify customized base addr? > >Hi there, > Any idea about how to set the options of gcc to produce a static >linked elf with customized base addr? I've googled, but found nothing >worth:( Thanks, >Zhenyu >