From 76662ed634f37fea18ef9cd2b6d505855ab695a1 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 5 Jan 2023 18:55:04 +0000 Subject: [PATCH] Add a dummy --no-execute-only option for compatibility with ld.lld. This will allow ports people to sprinkle -Wl,--no-execute-only across the ports tree when necessary without having to distinguish between ld.bfd and ld.lld arcitectures. ok deraadt@, sthen@ --- gnu/usr.bin/binutils-2.17/ld/lexsup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/usr.bin/binutils-2.17/ld/lexsup.c b/gnu/usr.bin/binutils-2.17/ld/lexsup.c index dda6ffe861f..ab1da63cb96 100644 --- a/gnu/usr.bin/binutils-2.17/ld/lexsup.c +++ b/gnu/usr.bin/binutils-2.17/ld/lexsup.c @@ -525,6 +525,8 @@ static const struct ld_option ld_options[] = TWO_DASHES }, { {"wrap", required_argument, NULL, OPTION_WRAP}, '\0', N_("SYMBOL"), N_("Use wrapper functions for SYMBOL"), TWO_DASHES }, + { {"no-execute-only", no_argument, NULL, OPTION_IGNORE}, + '\0', NULL, N_("Ignored for lld compatibility"), TWO_DASHES}, }; #define OPTION_COUNT ARRAY_SIZE (ld_options) -- 2.20.1