From: Patrick Noffke <patrick.noffke@gmail.com>
Subject: Re: GNAT stm34f4 zfp question.
Date: Tue, 3 Mar 2015 09:15:27 -0800 (PST)
Date: 2015-03-03T09:15:27-08:00 [thread overview]
Message-ID: <ddbbaec2-3072-4e96-9eb9-547acecbda64@googlegroups.com> (raw)
In-Reply-To: <07330c00-0317-4bb2-8ffb-67bff98dc9eb@googlegroups.com>
On Tuesday, March 3, 2015 at 3:20:16 AM UTC-6, jan.de...@gmail.com wrote:
> On Tuesday, March 3, 2015 at 9:45:30 AM UTC+2, jan.de...@gmail.com wrote:
>
> And I did find another anomaly:
>
> /usr/gnat-arm/lib/gcc/arm-eabi/4.7.4/rts-zfp//adalib/libgnat.a(s-secsta.o): In function `system__secondary_stack__ss_allocate':
> s-secsta.adb:(.text+0x8): undefined reference to `__gnat_get_secondary_stack'
>
> I can alleviate the symptoms by employing a local s-secsta.adb from the auxiliary zfp tar file.
>
>
<snip>
>
> Without that the linker is looking for 'crt0.o'. I know what it is, but I do not know where on earth it is to be found in the ravenscar profile.
> There is a crti.o in the zfp profile.
>
I had a linking issue with the ravenscar-sfp runtime. The linker was finding the wrong libgnat.a or libgnarl.a (not the one from the specific RTS I was using). Once I specified the fully qualified path to those two libraries the linking problems were fixed.
Here is my final linking command in my own Makefile:
@$(CC) --RTS=$(RTS) $(LD_FLAGS) -Wl,--gc-sections -nostdinc -nodefaultlibs -nostartfiles -T$(LINKER_SCRIPT) -L$(RTS_INSTALL_DIR) $(OBJS) $(RTS_INSTALL_DIR)/libgnat.a $(RTS_INSTALL_DIR)/libgnarl.a -lgcc -o $@
where
LD_FLAGS := -fmessage-length=0 -gnatA -mcpu=cortex-m4 -mlittle-endian -mfpu=fpv4-sp-d16 -march=armv7e-m -mfloat-abi=hard -mthumb
(This was for a Cortex-M4 MCU.)
Pat
next prev parent reply other threads:[~2015-03-03 17:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-03 7:45 GNAT stm34f4 zfp question jan.de.kruyf
2015-03-03 9:20 ` jan.de.kruyf
2015-03-03 17:15 ` Patrick Noffke [this message]
2015-03-03 20:13 ` jan.de.kruyf
2015-03-04 15:22 ` jan.de.kruyf
2015-03-04 18:28 ` Simon Wright
2015-03-04 20:03 ` jan.de.kruyf
2015-03-18 17:58 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox