comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Inspirels Ada on cortex tutorial linker issue
Date: Sat, 23 Jul 2016 17:32:06 +0100
Date: 2016-07-23T17:32:06+01:00	[thread overview]
Message-ID: <lyzip871tl.fsf@pushface.org> (raw)
In-Reply-To: 8f1332f8-89cc-4616-9834-1d2ffcfe7a4a@googlegroups.com

Devin <devin.inspiredby@gmail.com> writes:

> On Saturday, July 23, 2016 at 9:34:10 AM UTC+2, Devin wrote:
>> On Saturday, July 23, 2016 at 2:57:22 AM UTC-4, Simon Wright wrote:
>> > Devin writes:
>> > 
>> > > I am trying to get my environment setup, and I am using an Orange pi
>> > > pc running armbian as the OS.  It is an arm based single board
>> > > computer, so I should be able to use the compiler and linker tools
>> > > natively, at least that is what I am understanding from the chapter of
>> > > the tutorial.
>> > >
>> > > I am able to compile the program from the "First Program" chapter of
>> > > the tutorial without errors, but when I attempt to link the program I
>> > > get an error reading:
>> > >
>> > > program.o:(.ARM.exidx+0x0): undefined reference to
>> > > '__aeabi_unwind_cpp_pr0'

> Here is the output in my program.s:
>
> 	.cpu cortex-m0
> 	.fpu softvfp
> 	.eabi_attribute 20, 1
> 	.eabi_attribute 21, 1
> 	.eabi_attribute 23, 3
> 	.eabi_attribute 24, 1
> 	.eabi_attribute 25, 1
> 	.eabi_attribute 26, 2
> 	.eabi_attribute 30, 6
> 	.eabi_attribute 34, 0
> 	.code	16
> 	.file	"program.adb"
> 	.global	program_E
> 	.data
> 	.align	1
> 	.type	program_E, %object
> 	.size	program_E, 2
> program_E:
> 	.space	2
> 	.text
> 	.align	2
> 	.global	run
> 	.code	16
> 	.thumb_func
> 	.type	run, %function
> run:
> 	.fnstart
> .LFB2:
> 	push	{r7, lr}
> 	.save {r7, lr}
> 	.setfp r7, sp, #0
> 	add	r7, sp, #0
> .L3:
> 	mov	r8, r8
> 	b	.L3
> 	.fnend
> 	.size	run, .-run
> 	.ident	"GCC: (Debian 4.9.2-1) 4.9.2"
> 	.section	.note.GNU-stack,"",%progbits

Strange. There's nothing in there to reference
__aeabi_unwind_cpp_pr0. Does "nm program.o" show a reference?

Umm, I suppose you did actually recompile the program to produce an
object file and it's not some old program.o left lying around?

  reply	other threads:[~2016-07-23 16:32 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-23  5:23 Inspirels Ada on cortex tutorial linker issue Devin
2016-07-23  6:57 ` Simon Wright
2016-07-23  7:34   ` Devin
2016-07-23  8:07     ` Devin
2016-07-23 16:32       ` Simon Wright [this message]
2016-07-24  2:32         ` Devin
2016-07-24  7:41           ` Simon Wright
2016-07-25  4:35             ` Devin
2016-07-25  8:07               ` Simon Wright
2016-08-20 22:09 ` Maciej Sobczak
2016-08-21  1:30   ` Devin
2016-08-21  1:37     ` Devin
2016-08-21 14:38       ` Maciej Sobczak
2016-08-22  4:00         ` Devin
2016-08-22 11:37           ` Brian Drummond
2016-08-29 17:49             ` Nicholas Colin Paul de Gloucester
2016-08-29 21:51               ` rieachus
2016-08-30 14:55                 ` Nicolas Colin Paul de Gloucester
2016-08-31  0:01                   ` Dennis Lee Bieber
2016-08-31 10:15                     ` Simon Wright
2016-08-31 12:42                 ` Maciej Sobczak
2016-09-01  9:15                   ` Alejandro R. Mosteo
2016-09-01 16:33                   ` AdaMagica
2016-09-02  0:36                     ` Jeffrey R. Carter
2016-09-02 12:05                       ` Maciej Sobczak
2016-09-02 12:53                         ` Dmitry A. Kazakov
2016-09-02 15:24                           ` G.B.
2016-09-02 21:33                             ` Maciej Sobczak
2016-09-03  9:20                               ` G.B.
2016-09-03 13:33                                 ` Alejandro R. Mosteo
2016-09-04 15:08                                 ` Maciej Sobczak
2016-09-02 13:40                         ` AdaMagica
2016-09-03 11:58                           ` Brian Drummond
2016-09-03 12:12                             ` Björn Lundin
2016-08-30 12:33               ` Brian Drummond
2016-08-30 13:01                 ` Simon Wright
2016-08-30 15:06                 ` Nicolas Colin Paul de Gloucester
2016-08-31 10:34                   ` Brian Drummond
2016-08-31 20:58                     ` Simon Wright
2016-09-01 11:08                       ` Brian Drummond
2016-08-31 12:47                 ` Maciej Sobczak
2016-09-01  0:02                   ` Dennis Lee Bieber
2016-09-01  9:03                     ` Alejandro R. Mosteo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox