Changeset 30762


Ignore:
Timestamp:
2012-03-01T16:13:26+01:00 (6 years ago)
Author:
nbd
Message:

kernel: keep more symbols in the kernel modules when doing profiling

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/rules.mk

    r30760 r30762  
    221221  endif 
    222222  RSTRIP:= \ 
    223     export CROSS="$(TARGET_CROSS)" $(if $(CONFIG_KERNEL_KALLSYMS),NO_RENAME=1); \ 
     223    export CROSS="$(TARGET_CROSS)" \ 
     224                $(if $(CONFIG_KERNEL_KALLSYMS),NO_RENAME=1) \ 
     225                $(if $(CONFIG_KERNEL_PROFILING),KEEP_SYMBOLS=1); \ 
    224226    NM="$(TARGET_CROSS)nm" \ 
    225227    STRIP="$(STRIP)" \ 
  • trunk/scripts/strip-kmod.sh

    r30759 r30762  
    1212} 
    1313 
     14ARGS= 
     15[ -n "$KEEP_SYMBOLS" ] || ARGS="-x -G __this_module --strip-unneeded" 
     16 
    1417${CROSS}objcopy \ 
    15         --strip-unneeded \ 
    1618        -R .comment \ 
    1719        -R .pdr \ 
     
    2022        -R .gnu.attributes \ 
    2123        -R .reginfo \ 
    22         -G __this_module \ 
    23         -x "$MODULE" "$MODULE.tmp" 
     24        $ARGS \ 
     25        "$MODULE" "$MODULE.tmp" 
    2426 
    2527[ -n "$NO_RENAME" ] && { 
Note: See TracChangeset for help on using the changeset viewer.