diff options
| author | Madhavan Srinivasan <[email protected]> | 2025-04-01 00:42:18 +0000 |
|---|---|---|
| committer | Madhavan Srinivasan <[email protected]> | 2025-04-16 11:38:08 +0000 |
| commit | b2accfe7ca5bc9f9af28e603b79bdd5ad8df5c0b (patch) | |
| tree | 3d99b2f198b5569069d478d40cf8c40d99e706b1 /lib/string.c | |
| parent | powerpc: Add check to select PPC_RADIX_BROADCAST_TLBIE (diff) | |
| download | kernel-b2accfe7ca5bc9f9af28e603b79bdd5ad8df5c0b.tar.gz kernel-b2accfe7ca5bc9f9af28e603b79bdd5ad8df5c0b.zip | |
powerpc/boot: Check for ld-option support
Commit 579aee9fc594 ("powerpc: suppress some linker warnings in recent linker versions")
enabled support to add linker option "--no-warn-rwx-segments",
if the version is greater than 2.39. Similar build warning were
reported recently from linker version 2.35.2.
ld: warning: arch/powerpc/boot/zImage.epapr has a LOAD segment with RWX permissions
ld: warning: arch/powerpc/boot/zImage.pseries has a LOAD segment with RWX permissions
Fix the warning by checking for "--no-warn-rwx-segments"
option support in linker to enable it, instead of checking
for the version range.
Fixes: 579aee9fc594 ("powerpc: suppress some linker warnings in recent linker versions")
Reported-by: Venkat Rao Bagalkote <[email protected]>
Suggested-by: Christophe Leroy <[email protected]>
Tested-by: Venkat Rao Bagalkote <[email protected]>
Closes: https://lore.kernel.org/linuxppc-dev/[email protected]/
Signed-off-by: Madhavan Srinivasan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
