bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can the ld-script be set the code segemtn start from zero?


From: 曹子龙
Subject: can the ld-script be set the code segemtn start from zero?
Date: Thu, 17 Aug 2017 12:21:52 +0800 (CST)

Hi al:

   i am encounter a problem that  i need porting a project from armcc/fromelf toolchain to the GNU toolchain. 

all the link script files has written with fromelf styles, you know it is not much like the GNU linker script. 

you can see like below, so how can i write the GNU ldscript  if i want the same elf segment layout?   any suggestions for me?


boot0_load 0x00 0x6000
{
boot0_start +0x00
{
boot0_header.o(BOOT0_HEADER, +FIRST)
        boot0_start.o(BOOT0)
}

boot0_exec  +0x00
{
*( +RO )
}

boot0_rw_zi +0x00
{
*( +RW )
*( +ZI )
}
}




 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]