From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) by sourceware.org (Postfix) with ESMTPS id 2B88F3858C60 for ; Tue, 27 Dec 2022 21:11:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2B88F3858C60 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oo1-xc31.google.com with SMTP id t15-20020a4a96cf000000b0049f7e18db0dso2393947ooi.10 for ; Tue, 27 Dec 2022 13:11:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=eFIwEkirtowXv4ybbndiD1bq6aDrfOwVQAkSqjXhYBM=; b=LKSmzhy435uRPRO9fBr1J555DkcF9Ish50zHVOFRaiOuWf+SsYm1BcTgVqSHLZvWLj HQQjjYbuXx8uf7u/9yvckEPZco0aon7k0IRz8xR4EVjEVtkoIMqF2tWDv8MkWnEHxrSi XDCBlpiESOyUZh/0UFHzn6zmsho1hmjBPFsoh8KPgzKGvlKbt6M9XDmeEID8WKIgbnnc b5Z82kDoPajxY/2LUVqQsOTIhkIFKbd6kBcNnMuwNfZ72mSzFPE0+jHGbx/zYSIZ9suY QY3ZO14/QM4CfcOW2JfptCGX1yNUBcfB6MnZ9kgntW8EbYdYk8OI8Tb3BO2Lo3aGnxA6 4mAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eFIwEkirtowXv4ybbndiD1bq6aDrfOwVQAkSqjXhYBM=; b=vXG26WXXva0/joKH8rqzgmQrT1o2nNIrgKvjdGzopPxzQfwsIuEzZYWMqHyXBg6rLa MBxq91n6QxiC6feX592B92Y3E+6AO91EULD3T0J/LHj6c8nfoogZAB/FvGks8fPAmo+5 a72CRsi/Z2M2nTxF+LNoPTJ51qMrRMMqr8b4OoB13AlbjeuhK0YD1iGpOE3JDc9zzTRe JFac+TzXInKPwCLRZbAdp/RiM+DJE/4jmunu8qDCw5lMa0sQL1SORblNIXO/aB3awISD dGJlBvS5CM8nL8grBAuunW7zsZRjPHqCXfmFlNusQuBNiJqEkL/Lyy0CEUv/B/DdFjx4 GI+A== X-Gm-Message-State: AFqh2ko6d84pbIeK22HmAd0ZiPathWQlr79VVpTV8pbART5T0+aTVwHi UHI8shNaYufGvv5oyk7LwjLBIGMamLPO8NryhLc= X-Google-Smtp-Source: AMrXdXvgeD5FaGWx8+Riwal/xN+UHLtdOkvMbYlzO/XKs8XkGUsAiJZdrVoPQ73aZif6bpbp9O6S5A== X-Received: by 2002:a4a:4f95:0:b0:4d5:695d:7ab5 with SMTP id c143-20020a4a4f95000000b004d5695d7ab5mr3406962oob.7.1672175518063; Tue, 27 Dec 2022 13:11:58 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c3:dd36:5c8b:974f:479c:a0d4]) by smtp.gmail.com with ESMTPSA id n7-20020a4aa7c7000000b004db65419011sm850955oom.34.2022.12.27.13.11.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Dec 2022 13:11:57 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Florian Weimer Subject: [PATCH v3 4/4] Remove set-hooks.h from generic includes Date: Tue, 27 Dec 2022 18:11:45 -0300 Message-Id: <20221227211145.3765256-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221227211145.3765256-1-adhemerval.zanella@linaro.org> References: <20221227211145.3765256-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The hooks mechanism uses symbol sets for running lists of functions, which requires either extra linker directives to provide any hardening (such RELRO) or additional code (such as pointer obfuscation via mangling with random value). Currently only hurd uses it and there multiple examples where using direct function call provides both hardening and good code generation without the need to extra link or code handling. --- {include => hurd}/set-hooks.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {include => hurd}/set-hooks.h (100%) diff --git a/include/set-hooks.h b/hurd/set-hooks.h similarity index 100% rename from include/set-hooks.h rename to hurd/set-hooks.h -- 2.34.1