lkml.org 
[lkml]   [2008]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: STT_FUNC for assembler checksum and semaphore ops

* John Reiser <jreiser@BitWagon.com> wrote:

> Dear $ARCH Maintainers,
>
> This patch adds Elf32_Sym .st_info (STT_FUNC) and .st_size for
> hand-coded checksum and semaphore subroutines. I needed this info
> when writing a static analyzer for stack depth [grovel over ./vmlinux]
> on the um (UserModeLinux) $ARCH for i386. The changes work on i386.
> Other $ARCH are analogous but not tested. Other arch/x86/lib/*.S are
> not used by um currently. [Should analogous changes be made anyway?]
>
> Comments?

thanks, i have picked up the x86 bits.

Will pick up later cleanup versions as well if there's some better macro
approach to do this as an ENTRY thing, as we could consolidate both the
start and the end into a single macro:

.type __down_failed_trylock, @function
ENTRY(__down_failed_trylock)
CFI_STARTPROC

CFI_ENDPROC
END(__down_failed_trylock)
.size __down_failed_trylock, . - __down_failed_trylock

perhaps START_FUNCTION() and END_FUNCTION() macros?

Ingo


\
 
 \ /
  Last update: 2008-01-08 10:39    [W:0.034 / U:22.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site