powerpc64-linux-ld: warning: discarding dynamic section .glink

From: kernel test robot

Date: Mon Jun 29 2026 - 12:06:17 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dc59e4fea9d83f03bad6bddf3fa2e52491777482
commit: 611627a4e5e4af7b96aab4f10d130f6a8a615020 PCI: cadence: Add module support for platform controller driver
date: 8 months ago
config: powerpc64-randconfig-r064-20260629 (https://download.01.org/0day-ci/archive/20260629/202606292337.XdJEfchV-lkp@xxxxxxxxx/config)
compiler: powerpc64-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260629/202606292337.XdJEfchV-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: 611627a4e5e4 ("PCI: cadence: Add module support for platform controller driver")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606292337.XdJEfchV-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> powerpc64-linux-ld: warning: discarding dynamic section .glink
>> powerpc64-linux-ld: warning: discarding dynamic section .plt
powerpc64-linux-ld: linkage table error against `cdns_pcie_ep_setup'
powerpc64-linux-ld: stubs don't match calculated size
powerpc64-linux-ld: can not build stubs: bad value
powerpc64-linux-ld: drivers/pci/controller/cadence/pcie-cadence-plat.o: in function `cdns_plat_pcie_probe':
drivers/pci/controller/cadence/pcie-cadence-plat.c:117:(.text+0x314): undefined reference to `cdns_pcie_ep_setup'

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki