From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by sourceware.org (Postfix) with ESMTPS id A776D3858289 for ; Thu, 22 Dec 2022 18:15:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A776D3858289 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-oa1-x32.google.com with SMTP id 586e51a60fabf-144b21f5e5fso3341551fac.12 for ; Thu, 22 Dec 2022 10:15:20 -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=LEyICpVuelYTlfkkyZm7ezCDzQrmy9Ki2BORGXFN07qVCQytMHW/IxcpLl2cdD2VAf TdSymx0FXjFoicN3XKctjG5vNMCV1EjMof2eyll0IQpmcKcbk6BM7g6uZ7mv5NvQiqLZ gkUp6AY+0OkILEtrQBHeEoE4LvrZ1cXNjVQRr2f4c5rDfgidhAO728S0qxasPwAyH7No PyXXOrraQqjiTAOc30CGDEMdBEqQhNEf5UOGPv3BjctTaJE7gEyUAHLYZfwgBcbj+0ji u0cRGaX1CTnm1LBm1/VWCgEQLh05Nz9eHQigoo5zBATuUmdDZ+YrZa3jA0lBJelsUJ0Z ki7g== 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=JrumufuEx2jWCtc40jYwRg+2E/1UTN9M9BIICLiJ3NYvixduAHSz3wWEKyMFrY382f 7F2AkygD6jboobwIOV13ON+9QCeULJLe8h/t09xuCG3ZXyZ7t6q8rurixT+w7+nfM8fy rnhwQi70mNGVd8dk9TV7jSnGvBKnFsym6IOiU+lAYPTfZeHtOsrZpTqH1sd9e6GAnRc8 Pk7D9CFdTNjndiZdbUEF5UNZ4nsMfl5k4rfnNpfEI949sO/jy33NEN5a1YxLXdxgK1Zt t1mT5XTV7004oZFcwziP1EsifgPlaszZS26zDV6/4TMBhNTOgJGSCtfEdGpNiCQHMWsX IfRQ== X-Gm-Message-State: AFqh2koalEJePQmTa34KqBSyaYcfxazP+FbIYOeVCauCzmx60goFcHiN Q9k8/AFJqrMrPq6mfhtPC8YBa24DSyz8+Tj4r8Y= X-Google-Smtp-Source: AMrXdXvCX8G0PZmW7R/lYfeSIqWVo3vH/bpO7qnVEiryOJUFHjVP+idmVJXF7TzjORmThTCNvdFFPg== X-Received: by 2002:a05:6870:8dcc:b0:143:e3d2:13d with SMTP id lq12-20020a0568708dcc00b00143e3d2013dmr3105925oab.27.1671732919417; Thu, 22 Dec 2022 10:15:19 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c3:6eec:3a2d:1c84:e181:fccd]) by smtp.gmail.com with ESMTPSA id m2-20020a4add02000000b004a3d98b2ccdsm477504oou.42.2022.12.22.10.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Dec 2022 10:15:18 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Florian Weimer Subject: [PATCH v2 4/4] Remove set-hooks.h from generic includes Date: Thu, 22 Dec 2022 15:15:06 -0300 Message-Id: <20221222181506.2535765-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221222181506.2535765-1-adhemerval.zanella@linaro.org> References: <20221222181506.2535765-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.4 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