From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by sourceware.org (Postfix) with ESMTPS id BF862385DC1F for ; Tue, 28 Apr 2020 21:52:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BF862385DC1F Received: by mail-pf1-x441.google.com with SMTP id f7so25436pfa.9 for ; Tue, 28 Apr 2020 14:52:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xv7tTmRCLHj8cjIsW2DtCyGGikkCvtisJiy3sCI9Ans=; b=eI+Moqr5MFJKxaei6y6EhnsgbIUPTUPW3NtxuMU7FuFwfUT4kWC9x9y4Kgk0oO6gjb 7w4lqfZherb1IC5Er66viNk2w2bnDLV2iRFVU3TmPItr5tw6c3m/Sih75ulk7L27YCBD r5+1bptkSBGPQZvvZk9YKt0wPDw+q3hpwZ5O2Sj2ZB0KOP6l/wHYErupkIq9mkBModq8 V5y1reJVoOlL7/B0rAG7ifVWg5e4vtb2THUDfuE7ujjOQ4MCOS8YgDynUItA4vGClzOb t8B7MQUpTh0gq0TYw0LXeOPQCjR74PuEwpQO2EfAUXuvQ8mVR5k8PQuL42enyHkFtkkd BsxQ== X-Gm-Message-State: AGi0PuaPBt9p2ZsWUt8pOrbJPopRwl/5FpXrEnfWQkOdcWU2hp0prFm7 EM2LSZgyKRT1V4R7usuqUtw= X-Google-Smtp-Source: APiQypJyqEjKnILXnzpmyJa3XQdj0cO2mPw5VAYIV8iPhpBt71PgcmfnRl1EcdaanezGwvKpMg/JYA== X-Received: by 2002:a63:cf0b:: with SMTP id j11mr28845475pgg.404.1588110764943; Tue, 28 Apr 2020 14:52:44 -0700 (PDT) Received: from gnu-cfl-2.localdomain (c-69-181-90-243.hsd1.ca.comcast.net. [69.181.90.243]) by smtp.gmail.com with ESMTPSA id x193sm17136135pfd.54.2020.04.28.14.52.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2020 14:52:44 -0700 (PDT) Received: from gnu-cfl-2.localdomain (localhost [IPv6:::1]) by gnu-cfl-2.localdomain (Postfix) with ESMTP id A2809C04AD; Tue, 28 Apr 2020 14:52:43 -0700 (PDT) From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH 2/3] rtld: Get architecture specific initializer in rtld_global Date: Tue, 28 Apr 2020 14:52:42 -0700 Message-Id: <20200428215243.236312-3-hjl.tools@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200428215243.236312-1-hjl.tools@gmail.com> References: <20200428215243.236312-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-25.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2020 21:52:46 -0000 Include to get architecture specific initializer in rtld_global. --- elf/rtld.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elf/rtld.c b/elf/rtld.c index 0016db86a7..44b9fb0b3c 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -315,6 +315,8 @@ rtld_hidden_def (_dl_starting_up) (except those which cannot be added for some reason). */ struct rtld_global _rtld_global = { + /* Get architecture specific initializer. */ +#include /* Generally the default presumption without further information is an * executable stack but this is not true for all platforms. */ ._dl_stack_flags = DEFAULT_STACK_PERMS, -- 2.25.4