> we are trying to compile ecos with a later version than the default > supplied arm toolset. Ecos compiles to a .a just fine, but then the > final compile/link (in this case the example "hello.c") fails with > the error: > > ============================================================================= == > C:\projects\ecos_examples>arm-unknown-linux-gnu-gcc -nostartfiles -Lc:/projects/ > ecos_test/install/lib -Ttarget.ld -static -mcpu=arm7tdmi -Wl,--gc-sections -Wl,- > static -g -nostdlib -o hello.elf hello.o > /home/samiam/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/lib/gc c/a > rm-unknown-linux-gnu/4.1.0/../../../../arm-unknown-linux-gnu/bin/ld: error: no m > emory region specified for loadable section `.got' > collect2: ld returned 1 exit status > > C:\projects\ecos_examples> > ============================================================================= == > > As you can see, we are trying the gcc 4.1.0 compiler. > > So far, all we have seen is that .got implies "position independent code" mode. > I didn't see an option to turn this mode off, we don't need or want it.
Hi Scott, There are a couple of problems here as far as I can see. First, you should be using arm-elf-gcc, not arm-linux-gcc. Second, I have had mixed experience trying to use GCC 4.x with eCos. We had problems with it -- basically code would sometimes crash for no apparent reason that would work fine under 3.4.4. I didn't have any particularly compelling reason to move to 4.x so we've elected to stay with 3.4.4 for the time being. --Chris -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
