diff options
| author | Sumanth Korikkar <[email protected]> | 2025-03-25 18:02:45 +0000 |
|---|---|---|
| committer | Vasily Gorbik <[email protected]> | 2025-03-31 10:20:39 +0000 |
| commit | 991a20173a1fbafd9fc0df0c7e17bb62d44a4deb (patch) | |
| tree | 80bd47e1be434b3d5c18de25cec3219843de7f63 /drivers/net/xen-netback/interface.c | |
| parent | s390/processor: Use bitop functions for cpu flag helper functions (diff) | |
| download | kernel-991a20173a1fbafd9fc0df0c7e17bb62d44a4deb.tar.gz kernel-991a20173a1fbafd9fc0df0c7e17bb62d44a4deb.zip | |
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: [email protected]
Fixes: 00cda11d3b2e ("s390: Compile kernel with -fPIC and link with -no-pie")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Suggested-by: Jens Remus <[email protected]>
Reviewed-by: Jens Remus <[email protected]>
Signed-off-by: Sumanth Korikkar <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
