Arm gnu directive assembler problem
- From: pes <nospam@xxxxxxx>
- Date: Thu, 30 Jun 2005 16:20:54 +0200
Hi,
I' ve a problem with creating a new section with gnu gcc assembler for an ARM7TDMI.
I' ve a link script which I add IntFLASH2 and text2 sections
MEMORY
{
IntFLASH (rx) : ORIGIN = 0x00080000, LENGTH = 0x10000
IntFLASH2 (rx) : ORIGIN = 0x0090000, LENGTH = 0x10000
IntRAM (rw) : ORIGIN = 0x00010000, LENGTH = 8192
}SECTIONS
{
.text :
{
*startup.o (.text) /* Startup code */
*(.text) /* remaining code */*(.glue_7t) *(.glue_7) } >IntFLASH
. = ALIGN(4);
.text2 :
{
*(.text)
} >IntFLASH2. = ALIGN(4); .... }
and when I want to use this section like that
.text
.arm .global _startup
.func _startup...
.size _startup, . - _startup
.endfunc.section .text2 data0 .word 0x12345678
.end
there is an error
and if I remove the dot before text2 compilation and link are ok but text2 section doesn' t seems to exists.
Thanks for ideas. .
- Follow-Ups:
- Re: Arm gnu directive assembler problem
- From: Paul Carpenter
- Re: Arm gnu directive assembler problem
- From: Grant Edwards
- Re: Arm gnu directive assembler problem
- Prev by Date: Re: IAR v/s KEIL for 8051
- Next by Date: Recommendations for Toy Design....
- Previous by thread: IAR v/s KEIL for 8051
- Next by thread: Re: Arm gnu directive assembler problem
- Index(es):