On Wed, October 23, 2013 11:23, Koenraad Lelong wrote: > Hi, > > Searching the mail from this list it seems there are a number of people > that use fpc to compile for arm-embedded. . . > fpc@linux-npjb:~/src-arm-fpc> fpc -Parm -Tembedded -Wplpc2124 tled > Free Pascal Compiler version 2.7.1 [2013/10/23] for arm > Copyright (c) 1993-2013 by Florian Klaempfl and others > Target OS: Embedded > Compiling tled1.pp > Assembling program > Linking tled1 > /usr/bin/arm-embedded-ld: error: no memory region specified for loadable > section `.note.gnu.build-id' > tled1.pp(54,4) Error: Error while linking . . > fpc@linux-npjb:~/src-arm-fpc> arm-embedded-ld link.res > fpc@linux-npjb:~/src-arm-fpc> ls -l > total 312 > -rwxr-xr-x 1 fpc users 357294 okt 23 09:33 a.out > -rw-r--r-- 1 fpc users 867 okt 23 09:31 link.res > -rw-r--r-- 1 fpc users 3164 okt 23 09:31 tled1.o > -rw-r--r-- 1 fpc users 1187 okt 23 08:55 tled1.pp > > That seems to work. Dissassembling a.out seems to produce a valid > assembly source. I also tried this with binutils-2.21.1 with the same > problem. > Is there a way to see what parameters fpc generates to invoke the linker ?
Are you aware of compiler option -s (or -sh, but that is the default for -s if I remember correctly)? Tomas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal