How to specify customized base addr?

Zagorodnev, Grigory grigory.zagorodnev@intel.com
Thu Apr 7 20:32:00 GMT 2005


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