From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) by sourceware.org (Postfix) with ESMTPS id 6C6E43851ABA for ; Mon, 6 Mar 2023 19:17:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6C6E43851ABA 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-x2b.google.com with SMTP id 586e51a60fabf-173435e0ec4so12517063fac.12 for ; Mon, 06 Mar 2023 11:17:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678130221; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pzqCZUZMikQnIY0pFL2djBn+Mq03FBdGCaYoUtnhP3I=; b=BWeyS6cQGKq9qVjcc+33CYGgvwfwVKHeWm+5JyMtO0/51JtmsQr2R0qEvJhQry0gaX 4q6Du30APdTfdRSUjqoRFf9vzdh4LFX6TgJz4GDwBwwSYAS0Wv3Es285ttgd7+tYcB34 B2k1eVw+QaNwyhqr1ADLaB+HjEJWZ3WSQtgCKQ9a0vn+GpO5adEzMmXYhV1M10z+txVI O1f+UnSVkmbfBT3f7SGjVviwX8hP0/gGetlKUflNc8NhsC/42htGw0GfsI89G1KbIF19 xSGEEfPLD5ZD8ILZbPXHJ8bkuvckFmAx09c0zKJD36Yz3sJLOgrVittpBVNzTZGYl4qF CLYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678130221; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pzqCZUZMikQnIY0pFL2djBn+Mq03FBdGCaYoUtnhP3I=; b=nFW5T62hFjroEH3RsqpfnbjmdrZaDixenehKpyoaxxLx52HJi+iIaKyqQdUlDQEHlT sst7vrzVJHAVVQVuQTt9JdR1HSJW9Ve3buvRu1ha2le0greqvsdUgM+GmhsxgbMc3IE3 RhVb+fJ/MVyj2LlZA037nwpIXLonCgmuZA2JEDzkIKlOJVgPMo2ivKyA7CZ+JtJgGXko hvA+0DVi3HDnpV+F0McrbzzS36eu3p9KfLGaumiesSGaOpKP2XgqZEcueZ8Y838Nop+u KgOGWPrQA0ykj5LFiKYqIJZKSJlwHtDC3HhUfMxxebJgLb9MNgmFpMcxGjyxqJcQogXS f3Hw== X-Gm-Message-State: AO0yUKXWT6NFtaNkBBsj7xYdIXsn5rQYXuJjhCs6Vaz4W9jbB7J74LWc n3LcRiFaqaOQ1fKf0SaAECKAuDG8Cg80FFT0WkUVUA== X-Google-Smtp-Source: AK7set9SqOADtGebNa3z7N5nCtYEPdEwxpd3fUEotsDi2dI8Wp3r0sAz9mSGTpRhYBHWtGjPrf4Hng== X-Received: by 2002:a05:6871:889:b0:16e:93ba:e55e with SMTP id r9-20020a056871088900b0016e93bae55emr7503840oaq.8.1678130221078; Mon, 06 Mar 2023 11:17:01 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c3:d849:8c2f:e58d:3e6:9de5]) by smtp.gmail.com with ESMTPSA id zf29-20020a0568716a9d00b00176598b79d3sm4280668oab.24.2023.03.06.11.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 11:17:00 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Florian Weimer , Carlos O'Donell Cc: Adhemerval Zanella Netto Subject: [PATCH v5 5/5] Remove set-hooks.h from generic includes Date: Mon, 6 Mar 2023 16:16:42 -0300 Message-Id: <20230306191642.347001-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230306191642.347001-1-adhemerval.zanella@linaro.org> References: <20230306191642.347001-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.5 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: From: Adhemerval Zanella Netto The hooks mechanism uses symbol sets for running lists of functions, which requires either extra linker directives to provide any hardening (such as RELRO) or additional code (such as pointer obfuscation via mangling with random value). Currently only hurd uses set-hooks.h so we remove it from the generic includes. The generic implementation uses direct function calls which provide hardening and good code generation, observability and debugging without the need for extra linking options or special code handling. Reviewed-by: Carlos O'Donell --- {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