diff options
Diffstat (limited to 'util')
-rwxr-xr-x | util/xcompile/xcompile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 4ead648305..13ed48be52 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -241,6 +241,12 @@ detect_special_flags() { testcc "$GCC" "$CFLAGS_GCC -Wextra" && CFLAGS_GCC="$CFLAGS_GCC -Wextra" + # Disable warning on segments with RWX. + # All loadable sections are placed in the same segment for simplicity. + testld "$GCC" "$FLAGS_GCC" "${GCCPREFIX}ld${LINKER_SUFFIX}" \ + "$LDFLAGS --no-warn-rwx-segments" && \ + LDFLAGS="$LDFLAGS --no-warn-rwx-segments" + case "$architecture" in x86) ;; |