This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bare metal ARM Cross compiler for arm-none-eabi target without libunwind?


Regarding bare-metal ARM cross-compiler toolchain without libunwind.
Patch now proposed to gcc-patches:

http://gcc.gnu.org/ml/gcc-patches/2012-04/msg00720.html

Thanks & Best Regards Fredrik

-----Ian Lance Taylor <iant@google.com> wrote: -----
To: Fredrik Hederstierna <fredrik.hederstierna@securitas-direct.com>
From: Ian Lance Taylor <iant@google.com>
Date: 03/27/2012 03:30PM
Cc: gcc-help@gcc.gnu.org
Subject: Re: Bare metal ARM Cross compiler for arm-none-eabi target without libunwind?

Fredrik Hederstierna <fredrik.hederstierna@securitas-direct.com> writes:

> /usr/local/gcc/arm-elf-tools-4.7.0/lib/gcc/arm-none-eabi/4.7.0/thumb//libgcc.a(unwind-arm.o): In function `get_eit_entry':

You need to find out why unwind-arm.o is being included in your link.
You could easily remove it from libgcc.a, but that would just leave you
with some other undefined symbol. ?unwind-arm.o is only being pulled in
because it defines some symbol that your program refers to. ?What
symbol?

If you are using the GNU linker you can find out easily enough by adding
-Wl,-M to your link command. ?That will produce a map file. ?The first
part of the file will be a list starting with "Archive member included
because of file (symbol)". ?Look for the symbol that causes unwind-arm.o
to be included.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]