Changeset 18780


Ignore:
Timestamp:
03/19/12 17:59:44 (14 months ago)
Author:
BrainSlayer
Message:

test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.3/scripts/strip-kmod.sh

    r18778 r18780  
    1212} 
    1313 
     14ARGS= 
     15if [ -n "$KEEP_SYMBOLS" ]; then 
     16        ARGS="-X --strip-debug" 
     17else 
     18        ARGS="-x -G __this_module --strip-unneeded" 
     19fi 
     20 
    1421${CROSS_COMPILE}objcopy \ 
    15         --strip-unneeded \ 
    1622        -R .comment \ 
    1723        -R .pdr \ 
     
    2026        -R .gnu.attributes \ 
    2127        -R .reginfo \ 
    22         -G __this_module \ 
    23         -x "$MODULE" "$MODULE.tmp" 
     28        $ARGS \ 
     29        "$MODULE" "$MODULE.tmp" 
     30 
     31[ -n "$NO_RENAME" ] && { 
     32        mv "${MODULE}.tmp" "$MODULE" 
     33        exit 0 
     34} 
    2435 
    2536${CROSS_COMPILE}nm "$MODULE.tmp" | awk ' 
     
    2839} 
    2940 
    30 $3 && $2 ~ /[brtd]/ && $3 !~ /\$LC/ { 
     41$3 && $2 ~ /[brtd]/ && $3 !~ /\$LC/ && !def[$3] { 
    3142        print "--redefine-sym "$3"=_"n; 
    3243        n = n + 1 
     44        def[$3] = 1 
    3345} 
    3446' > "$MODULE.tmp1" 
Note: See TracChangeset for help on using the changeset viewer.