lkml.org 
[lkml]   [2007]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: "build-id" changes break sparc64
    On Sun, Jul 22, 2007 at 11:01:55PM -0700, Roland McGrath wrote:
    > It turns out the problem here is that some .o files wind up with their own
    > .note.gnu.build-id sections. I got the makefile magic wrong, thinking that
    > LDFLAGS_MODULE was a variable specifically for .ko links.

    Reading Documentation/kbuild/makefiles.txt:
    LDFLAGS_MODULE Options for $(LD) when linking modules

    LDFLAGS_MODULE is used to set specific flags for $(LD) when
    linking the .ko files used for modules.

    So it seems to be documented as such.

    Browsing the source it looks like a bug that LDFLAGS_MODULE is used in
    cmd_link_multi-m.
    I suggest you to do the following:
    Remove '-r' from LDFLAGS_MODULE in top-level Makefile
    Hardcode '-r' in cmd_link_multi-m and remove LDFLAGS_MODULE in the same.
    Hardcode '-r' in Makefile,modpost
    Add your stuff to LDFLAGS_MODULE in toplevel Makefile.

    Sorry for not prrviding a preliminary patch but away from my dev box
    with no easy source access.

    Sam
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-07-23 08:23    [W:3.864 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site