Subject: Re: profiling main()
To: Rui Paulo <>
From: Roland Illig <>
List: tech-toolchain
Date: 10/12/2005 23:56:25
Rui Paulo wrote:
> Hi,
> The attached patch makes it possible to profile main() in userland
> applications for ELF files. The "bug" was noticed by Bruce Evans in
> Please comment.

Wouldn't it be easier to have a macro similar to this:?

#  define EPROL_EXPORT_WITH_LABEL EPROL_EXPORT; __asm("_eprol:");
#  define EPROL_EXPORT_WITH_LABEL __asm("_eprol:");

and use that instead of the four lines of equal code in many files?