This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: Breaking ARM's mcount implementations into a separate file
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: libc-ports at sourceware dot org
- Date: Tue, 15 Dec 2009 02:05:23 +0000 (UTC)
- Subject: Re: Breaking ARM's mcount implementations into a separate file
- References: <87k4wpm747.fsf@dirichlet.schwinge.homeip.net>
On Tue, 15 Dec 2009, Thomas Schwinge wrote:
> I inspected the pre / post libraries (symbols, disassembly), and did test
> runs to confirm that profiling still works in the ``normal'' and -mthumb
> cases.
I'm not sure of the significance of having separate ARM/Thumb versions,
but it does not make much sense to me to have different __thumb2__
versions that still get compiled in ARM mode when glibc is built as
Thumb-2. Remember that .S files get built in ARM mode unless they contain
assembler directives to use Thumb, but __thumb2__ is defined if the
compiler would generate Thumb-2. If you want particular .S sources built
as Thumb-2 code, you need something like sysdeps/arm/elf/start.S:
#if defined(__thumb2__)
.thumb
.syntax unified
#endif
--
Joseph S. Myers
joseph@codesourcery.com