How to specify customized base addr?
Zhenyu Guo
guozy03@mails.tsinghua.edu.cn
Fri Apr 8 04:04:00 GMT 2005
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:grigory.zagorodnev@intel.com]
发送时间: 2005年4月8日 4:32
收件人: guozy03@mails.tsinghua.edu.cn; 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: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On Behalf Of
>guozy03@mails.tsinghua.edu.cn
>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
>
More information about the Gcc
mailing list