On 10 August 2016 at 20:26, Cohen, Eugene <[email protected]> wrote: > Ard, > >> +#define _ASM_FUNC(Name, Section) \ >> + .global Name ; \ >> + .section #Section, "ax" ; \ >> + .type Name, %function ; \ >> + Name: >> + >> +#define ASM_FUNC(Name) _ASM_FUNC(ASM_PFX(Name), >> .text. ## Name) > > Why does this work? In my experimentation the C preprocessor would collapse > the stuff onto a single line (the backslash being a continuation on the > preprocessor input, but preprocessor output revealed the newlines being > removed), thereby violating the assembly requirement that labels appear in > column 1. >
I have tested this with both GNU as and Clang, and neither complains. Is this requirement documented anywhere? > Thanks for all your work on this, now I'm just trying to understand what I'm > looking at! > Sure, my pleasure :-) _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

