diff options
author | Sumanth Korikkar <sumanthk@linux.ibm.com> | 2025-03-25 21:02:45 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2025-03-31 13:20:39 +0300 |
commit | 991a20173a1fbafd9fc0df0c7e17bb62d44a4deb (patch) | |
tree | 80bd47e1be434b3d5c18de25cec3219843de7f63 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 3232f1c8086506c5728f46e5a0d59b860c303b8d (diff) | |
download | linux-991a20173a1fbafd9fc0df0c7e17bb62d44a4deb.tar.xz |
s390: Fix linker error when -no-pie option is unavailable
The kernel build may fail if the linker does not support -no-pie option,
as it always included in LDFLAGS_vmlinux.
Error log:
s390-linux-ld: unable to disambiguate: -no-pie (did you mean --no-pie ?)
Although the GNU linker defaults to -no-pie, the ability to explicitly
specify this option was introduced in binutils 2.36.
Hence, fix it by adding -no-pie to LDFLAGS_vmlinux only when it is
available.
Cc: stable@vger.kernel.org
Fixes: 00cda11d3b2e ("s390: Compile kernel with -fPIC and link with -no-pie")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202503220342.T3fElO9L-lkp@intel.com/
Suggested-by: Jens Remus <jremus@linux.ibm.com>
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions