From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Inspirels Ada on cortex tutorial linker issue Date: Sat, 23 Jul 2016 17:32:06 +0100 Organization: A noiseless patient Spider Message-ID: References: <24d4ffc3-3915-4102-96ae-68d11d881443@googlegroups.com> <240a0f13-0a34-475f-999f-ba7f47be069f@googlegroups.com> <8f1332f8-89cc-4616-9834-1d2ffcfe7a4a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="1cb8779fb08c1b31c8309afcb9b531dc"; logging-data="22172"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/U1ZrN0tKWuWfRNKaXVDX1Uk2mro1NYM=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:RXbKtJQQCctO2HH2CVf4IPXuqMI= sha1:VEEGwADAzG+xWvnGFq6IWtuYaGo= Xref: news.eternal-september.org comp.lang.ada:31135 Date: 2016-07-23T17:32:06+01:00 List-Id: Devin 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?