18 Oct, 2007

3 commits

  • I can't see the reason ". = VDSO_PRELINK + 0x900;" was ever there in
    the linker script for the x86_64 vDSO. I can't find anything that
    depends on this magic offset, or that should care at all about the
    particular location of of the .data section (all from vvar.c) in the
    vDSO image. If it is really desireable to place .data at 0x900, then it
    should be after all the other sections so they fill in the space up to
    0x900.

    This removes the 0x900 magic and cleans up the output sections generally
    in the vDSO linker script. This saves a few hundred bytes in the size
    of the vDSO file, bringing it back well under 4kb total so that its vma
    only needs one page.

    Signed-off-by: Roland McGrath
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Roland McGrath
     
  • This adds a const to the definitions vvar.c makes, so that the vdso_*
    variables go into .rodata instead of .data. This is essentially a
    cosmetic change, just giving the section headers in the vDSO file more
    pleasing flags. These variables are read-only from the perspective of
    the vDSO itself and user mode, even though the contents of the DSO image
    were adjusted at boot.

    Signed-off-by: Roland McGrath
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Roland McGrath
     
  • This keeps an unstripped copy of the 64bit vDSO images built before they are
    stripped and embedded in the kernel. The unstripped copies get installed
    in $(MODLIB)/vdso/ by "make install" (or you can explicitly use the
    subtarget "make vdso_install"). These files can be useful when they
    contain source-level debugging information.

    [ tglx: arch/x86 adaptation ]

    Signed-off-by: Roland McGrath
    Signed-off-by: Andi Kleen
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Roland McGrath
     

15 Oct, 2007

1 commit

  • The variable CFLAGS is a wellknown variable and the usage by
    kbuild may result in unexpected behaviour.
    On top of that several people over time has asked for a way to
    pass in additional flags to gcc.

    This patch replace use of CFLAGS with KBUILD_CFLAGS all over the
    tree and enabling one to use:
    make CFLAGS=...
    to specify additional gcc commandline options.

    One usecase is when trying to find gcc bugs but other
    use cases has been requested too.

    Patch was tested on following architectures:
    alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k

    Test was simple to do a defconfig build, apply the patch and check
    that nothing got rebuild.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     

11 Oct, 2007

1 commit