Messages in this thread | | | Date | Thu, 10 Jan 2008 19:02:25 +0100 | From | Andi Kleen <> | Subject | Re: STT_FUNC for assembler checksum and semaphore ops" in git-x86 |
| |
> It does look ugly. But .size and .type are oriented towards static > description, while the dwarf2 CurrentFrameInfo (CFI) annotations > are oriented towards dynamic traceback and unwinding. Forcing the
ENTRY/ENDPROC have nothing to do with dwarf2. That is CFI_STARTPROC/ENDPROC.
But actually checking the default implementation in linkage.h already implements size:
#ifndef END #define END(name) \ .size name, .-name #endif
#ifndef ENDPROC #define ENDPROC(name) \ .type name, @function; \ END(name) #endif
Are you sure it doesn't work? Your patch should be not needed. If it's still wrong then just ENDPROCs() need to be added.
-Andi
| |