[lkml]   [2003]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: ENTRY-macro in linkage.h

    On Sun, 9 Feb 2003, Uwe Reimann wrote:

    > My problem is how to add the whitespace. The preprocessor seems to strip
    > it. Consider this (test.S):
    > #define ENTRY(X) \
    > .global X##; \
    > X##:
    > ENTRY(foo)
    > ENTRY(bar)
    > gcc -S test.S:
    > .global foo; foo:
    > .global bar; bar:
    > For c4x-gcc, this has to be like this:
    > .global foo
    > foo:
    > .global bar
    > bar:
    > Without the leading whitespace, .global is taken as a name of a label.
    > Without the newline before the labels, they are not recognized (taken as
    > comments).

    You don't have to use the ENTRY macro anymore, it was useful when kernel
    could be in a.out format, so the underscore was automatically prepended to
    the symbol.

    bye, Roman

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:33    [W:0.021 / U:90.392 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site