This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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: Breaking ARM's mcount implementations into a separate file


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


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