lkml.org 
[lkml]   [2008]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [RFC 1/3] add support for exporting symbols from .S files
    Date
    On Tuesday 12 August 2008 00:18:07 Arnd Bergmann wrote:
    > This makes it possible to export symbols from assembly files, instead
    > of having to export them through an extra ksyms.c file.
    >
    > I found this nicer to implement using a gas macro than a cpp macro.
    ...
    > + .ifeq BITS_PER_LONG-32
    > + .align 3
    > +\symtab:
    > + .long \sym
    > + .long \strtab
    > + .else
    > + .align 4

    Good work! Hmm, you can .balign BITS_PER_LONG/8 outside the ifeq.
    Unfortunately .long doesn't do the Right Thing on 64 bit, so getting rid of
    the if is harder.

    Acked-by: Rusty Russell <rusty@rustcorp.com.au>

    Cheers,
    Rusty.


    \
     
     \ /
      Last update: 2008-08-12 04:07    [W:0.020 / U:0.524 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site