Skip to content

Commit

Permalink
systemd,cairo,ruby: Do not use --no-warn-rwx-segment with lld
Browse files Browse the repository at this point in the history
This option is GNU linker specific and lld is not emitting this
warning anyway

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Jul 26, 2023
1 parent 387d504 commit 968041b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conf/nonclangable.conf
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ COMPILER_RT:pn-qtbase:toolchain-clang:riscv32 = "-rtlib=compiler-rt ${UNWINDLIB}
LDFLAGS:append:pn-qtwebengine:toolchain-clang:runtime-gnu:x86 = " -latomic"
LDFLAGS:append:pn-qemu:toolchain-clang:x86 = " -latomic"
# warning: <elfFile> has a LOAD segment with RWX permissions
LDFLAGS:append:pn-ruby:toolchain-clang:powerpc = " -Wl,--no-warn-rwx-segment"
LDFLAGS:append:pn-cairo:toolchain-clang:powerpc = " -Wl,--no-warn-rwx-segment"
LDFLAGS:append:pn-systemd:toolchain-clang:powerpc = " -Wl,--no-warn-rwx-segment"
LDFLAGS:append:pn-ruby:toolchain-clang:powerpc = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '', ' -Wl,--no-warn-rwx-segment', d)}"
LDFLAGS:append:pn-cairo:toolchain-clang:powerpc = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '', ' -Wl,--no-warn-rwx-segment', d)}"
LDFLAGS:append:pn-systemd:toolchain-clang:powerpc = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '', ' -Wl,--no-warn-rwx-segment', d)}"

# glibc is built with gcc and hence encodes some libgcc specific builtins which are not found
# when doing static linking with clang using compiler-rt, so use libgcc
Expand Down

0 comments on commit 968041b

Please sign in to comment.