Re: Arm gnu directive assembler problem
- From: paul$@pcserviceselectronics.co.uk (Paul Carpenter)
- Date: Thu, 30 Jun 2005 21:27:50 +0100 (BST)
On Thursday, in article
<42c3fee8$0$28120$636a15ce@xxxxxxxxxxxx> nospam@xxxxxxx
"pes" wrote:
>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)
What happens if you change this to
*(.text2)
= to match the assembler section directive!
> } >IntFLASH2
>
.....
> .text
> .arm
>
......
> .section .text2
>data0 .word 0x12345678
>
> .end
>
>there is an error
The exact error message would help.
>and if I remove the dot before text2 compilation and link are ok but
>text2 section doesn' t seems to exists.
Because it more than likely has dumped it in the text section, what
does the MAP file show for where they are put, (not what is in text2
section).
--
Paul Carpenter | paul@xxxxxxxxxxxxxxxxxxxxxxxxxxx
<http://www.pcserviceselectronics.co.uk/> PC Services
<http://www.gnuh8.org.uk/> GNU H8 & mailing list info
<http://www.badweb.org.uk/> For those web sites you hate
.
- References:
- Arm gnu directive assembler problem
- From: pes
- Arm gnu directive assembler problem
- Prev by Date: Re: Selection of a microcontroller for Childs Toy...
- Next by Date: Re: CLIL source code from book "Firmware demystified"
- Previous by thread: Re: Arm gnu directive assembler problem
- Next by thread: Recommendations for Toy Design....
- Index(es):