Skip to content
Snippets Groups Projects
Select Git revision
  • 16bc1d5432ebd8e50e480eb300fd2b84afa28286
  • 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
  • fix-rk3588-i2s-tdm-clocks
  • 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

kallsyms.c

Forked from hardware-enablement / Rockchip upstream enablement efforts / linux
Source project has a limited visibility.
  • Masahiro Yamada's avatar
    516d980f
    scripts/kallsyms: skip ppc compiler stub *.long_branch.* / *.plt_branch.* · 516d980f
    Masahiro Yamada authored
    
    PowerPC allmodconfig often fails to build as follows:
    
        LD      .tmp_vmlinux.kallsyms1
        KSYM    .tmp_vmlinux.kallsyms1.o
        LD      .tmp_vmlinux.kallsyms2
        KSYM    .tmp_vmlinux.kallsyms2.o
        LD      .tmp_vmlinux.kallsyms3
        KSYM    .tmp_vmlinux.kallsyms3.o
        LD      vmlinux
        SORTTAB vmlinux
        SYSMAP  System.map
      Inconsistent kallsyms data
      Try make KALLSYMS_EXTRA_PASS=1 as a workaround
      make[2]: *** [../Makefile:1162: vmlinux] Error 1
    
    Setting KALLSYMS_EXTRA_PASS=1 does not help.
    
    This is caused by the compiler inserting stubs such as *.long_branch.*
    and *.plt_branch.*
    
      $ powerpc-linux-nm -n .tmp_vmlinux.kallsyms2
       [ snip ]
      c00000000210c010 t 00000075.plt_branch.da9:19
      c00000000210c020 t 00000075.plt_branch.1677:5
      c00000000210c030 t 00000075.long_branch.memmove
      c00000000210c034 t 00000075.plt_branch.9e0:5
      c00000000210c044 t 00000075.plt_branch.free_initrd_mem
        ...
    
    Actually, the problem mentioned in scripts/link-vmlinux.sh comments;
    "In theory it's possible this results in even more stubs, but unlikely"
    is happening here, and ends up with another kallsyms step required.
    
    scripts/kallsyms.c already ignores various compiler stubs. Let's do
    similar to make kallsysms for PowerPC always succeed in 2 steps.
    
    Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Tested-by: default avatarGuenter Roeck <linux@roeck-us.net>
    516d980f
    History
    scripts/kallsyms: skip ppc compiler stub *.long_branch.* / *.plt_branch.*
    Masahiro Yamada authored
    
    PowerPC allmodconfig often fails to build as follows:
    
        LD      .tmp_vmlinux.kallsyms1
        KSYM    .tmp_vmlinux.kallsyms1.o
        LD      .tmp_vmlinux.kallsyms2
        KSYM    .tmp_vmlinux.kallsyms2.o
        LD      .tmp_vmlinux.kallsyms3
        KSYM    .tmp_vmlinux.kallsyms3.o
        LD      vmlinux
        SORTTAB vmlinux
        SYSMAP  System.map
      Inconsistent kallsyms data
      Try make KALLSYMS_EXTRA_PASS=1 as a workaround
      make[2]: *** [../Makefile:1162: vmlinux] Error 1
    
    Setting KALLSYMS_EXTRA_PASS=1 does not help.
    
    This is caused by the compiler inserting stubs such as *.long_branch.*
    and *.plt_branch.*
    
      $ powerpc-linux-nm -n .tmp_vmlinux.kallsyms2
       [ snip ]
      c00000000210c010 t 00000075.plt_branch.da9:19
      c00000000210c020 t 00000075.plt_branch.1677:5
      c00000000210c030 t 00000075.long_branch.memmove
      c00000000210c034 t 00000075.plt_branch.9e0:5
      c00000000210c044 t 00000075.plt_branch.free_initrd_mem
        ...
    
    Actually, the problem mentioned in scripts/link-vmlinux.sh comments;
    "In theory it's possible this results in even more stubs, but unlikely"
    is happening here, and ends up with another kallsyms step required.
    
    scripts/kallsyms.c already ignores various compiler stubs. Let's do
    similar to make kallsysms for PowerPC always succeed in 2 steps.
    
    Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Tested-by: default avatarGuenter Roeck <linux@roeck-us.net>