This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AT91 ARM Thumb-mode


compile snippet:

arm-elf-gcc -c -o OS_Uart.o -I../../eCos/Debug/include
-g  -mcpu=arm7tdmi -mthumb -mthumb-interwork
-mno-short-load-words -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef
-Woverloaded-virtual -ffunction-sections
-fdata-sections -fno-rtti -fno-exceptions -fvtable-gc
-finit-priority OS_Uart.c


link snippet: 

arm-elf-gcc -o spm ./Main/main.o ./Main/stubs.o
-nostartfiles -L./eCos/Debug/lib -Ttarget.ld
-Wl,--start-group ./Utils/lib/libUtils.a
-Wl,--end-group -mcpu=arm7tdmi -mthumb
-mthumb-interwork -mno-short-load-words
-Wl,--gc-sections -Wl,-static -g -nostdlib

compiler version:

$ arm-elf-gcc -v
Reading specs from
/tools/H-i686-pc-cygwin/lib/gcc-lib/arm-elf/3.2.1/specs
Configured with: /src/gcc/gcc-3.2.1/configure
--target=arm-elf --prefix=/tools -
-exec-prefix=/tools/H-i686-pc-cygwin --with-gnu-as
--with-gnu-ld --with-newlib -
v
Thread model: single
gcc version 3.2.1

binutils version:

binutils-2.13.2.1


--- Jonathan Larmour <jifl at eCosCentric dot com> wrote:
> sensitron medical wrote:
> > I get the following error when compiling with
> thumb
> > mode for AT91:
> > 
> >
>
/ecos-c/ecos-2.0b1/packages/kernel/v2_0b1/src/intr/intr.cxx:668:
> > undefined reference to `hal_disable_interrupts'
> 
> That should have come from vectors.S - there's some
> thumb only functions 
> to do that. Was it definitely compiled in thumb
> mode?
> 
> Just thinking of the last message I sent, if
> vectors.S was compiled in 
> thumb mode, I'm intrigued by the fact you got this
> far. What tool versions 
> are you using?
> 
> Jifl
> -- 
> eCosCentric    http://www.eCosCentric.com/    The
> eCos and RedBoot experts
> --[ "You can complain because roses have thorns, or
> you ]--
> --[  can rejoice because thorns have roses."
> -Lincoln   ]-- Opinions==mine
> 


__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]