Re: STT_FUNC for assembler checksum and semaphore ops
From: Ingo Molnar
Date: Tue Jan 08 2008 - 04:37:03 EST
* John Reiser <jreiser@xxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/