Skip to content
Snippets Groups Projects
Select Git revision
  • 72d24accf02add25e08733f0ecc93cf10fcbd88c
  • add-vdpu381-and-383-to-rkvdec-v2
  • add-vdpu381-and-383-to-rkvdec
  • prepare-add-vdpu381-and-383-to-rkvdec
  • add-rkvdec2-driver-vdpu383-hevc
  • add-rkvdec2-driver-vdpu383
  • add-rkvdec2-driver-hevc
  • rkvdec-mov-to-structs
  • av1-fix-postproc-leak
  • add-rkvdec2-driver-iommu-422-10bits
  • patch-queue/jamba/trixie
  • hdmi-fix-1080p-rock4d-6.11
  • upstreaming/rk3576-rock4d-spi-v1
  • upstreaming/rk3576-rock4d-support-v5
  • upstreaming/rk3588-hdmi-audio-6
  • upstreaming/rk3576-rock4d-support-v3
  • upstreaming/rk3576-rock4d-support-v1
  • upstreaming/rk3576-rock4d-support
  • add-rkvdec2-driver-iommu
  • upstream/rk3576-rock-4d
  • rk3588-hdmi-audio-2
  • v6.3
  • v6.3-rc1
  • v6.2-rc1
  • v6.0-rc1
  • v5.19-rc3
  • v5.19-rc2
  • v5.19-rc1
  • v5.18
  • v5.18-rc7
  • v5.18-rc6
  • v5.18-rc5
  • v5.18-rc4
  • v5.18-rc3
  • v5.18-rc2
  • v5.18-rc1
  • v5.17
  • v5.17-rc8
  • v5.17-rc7
  • v5.17-rc6
  • v5.17-rc5
41 results

mksysmap

Blame
  • Forked from hardware-enablement / Rockchip upstream enablement efforts / linux
    Source project has a limited visibility.
    mksysmap 1.33 KiB
    #!/bin/sh -x
    # Based on the vmlinux file create the System.map file
    # System.map is used by module-init tools and some debugging
    # tools to retrieve the actual addresses of symbols in the kernel.
    #
    # Usage
    # mksysmap vmlinux System.map
    
    
    #####
    # Generate System.map (actual filename passed as second argument)
    
    # $NM produces the following output:
    # f0081e80 T alloc_vfsmnt
    
    #   The second row specify the type of the symbol:
    #   A = Absolute
    #   B = Uninitialised data (.bss)
    #   C = Common symbol
    #   D = Initialised data
    #   G = Initialised data for small objects
    #   I = Indirect reference to another symbol
    #   N = Debugging symbol
    #   R = Read only
    #   S = Uninitialised data for small objects
    #   T = Text code symbol
    #   U = Undefined symbol
    #   V = Weak symbol
    #   W = Weak symbol
    #   Corresponding small letters are local symbols
    
    # For System.map filter away:
    #   a - local absolute symbols
    #   U - undefined global symbols
    #   N - debugging symbols
    #   w - local weak symbols
    
    # readprofile starts reading symbols when _stext is found, and
    # continue until it finds a symbol which is not either of 'T', 't',
    # 'W' or 'w'. __crc_ are 'A' and placed in the middle
    # so we just ignore them to let readprofile continue to work.
    # (At least sparc64 has __crc_ in the middle).
    
    $NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( \.L\)' > $2