lkml.org 
[lkml]   [2004]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [RFC] Force build error on undefined symbols
    > 
    > Therefore, I propose the following patch to detect undefined symbols
    > in the final image and force an error if this is the case.
    >
    > Comments?

    Do we really want to do this for all architectures?
    You could use something like the attached to restrict it to arm.

    Sam

    --- v2.6/arch/arm/Makefile 2004-04-05 23:23:54.000000000 +0200
    +++ mm4/arch/arm/Makefile 2004-04-10 16:21:29.000000000 +0200
    @@ -140,14 +143,19 @@
    maketools: include/asm-arm/constants.h include/linux/version.h FORCE
    $(Q)$(MAKE) $(build)=arch/arm/tools include/asm-arm/mach-types.h

    +check-undefsyms = $(NM) $^ | egrep -q '^ +U ' && { echo "Link failed: undefined symbols found in $^:"; $(NM) $^ | egrep '^ +U '; rm -f $^; exit 1; } || : endef
    +
    # Convert bzImage to zImage
    bzImage: vmlinux
    + $(check-undefsyms)
    $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage

    zImage Image bootpImage uImage: vmlinux
    + $(check-undefsyms)
    $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@

    zinstall install: vmlinux
    + $(check-undefsyms)
    $(Q)$(MAKE) $(build)=$(boot) $@

    CLEAN_FILES += include/asm-arm/constants.h* include/asm-arm/mach-types.h \
    -
    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: 2005-03-22 14:02    [W:0.022 / U:62.188 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site