Message ID | 20241206173850.3766841-5-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:50c2:0:b0:385:e875:8a9e with SMTP id f2csp912343wrt; Fri, 6 Dec 2024 09:44:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXcozVwC453gW89l2oDBl5J7NupwjdHZjGYI2AUIuyKzdKjS1+FEMFuZDjASfUR4kHsE7Exig==@linaro.org X-Google-Smtp-Source: AGHT+IGTJce2nbTWmUL8NeD4zpLI87icreaW5o2awK9QNh6lJDs0YVgjBdVaQvaPnpwAFHaB2Ong X-Received: by 2002:a05:6214:19ed:b0:6d8:a1b4:b591 with SMTP id 6a1803df08f44-6d8e716c226mr61886636d6.23.1733507084424; Fri, 06 Dec 2024 09:44:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1733507084; cv=pass; d=google.com; s=arc-20240605; b=HfHqLRT/7ZH5s+fprl9y1K2Im5bv1r3CmZo8Vg2dM76yFDE0U9Wjso9nSzu1OEGYMx 4M+xXd6lwkklEMhbF1tydfhmqIOFIiOID4OI7IT2G3PeuuSlAYLBQ24Q11KbLm6ghhAD R2bqvZ0Nt5OfzKglQ6SRgLwRJWL1DV7l2vGn3BuELkcNsTZyL7gyRl8sZ6KAOVeUgMja rJDRcQDVeb+mjjZYm5Nbt8UTCZOY4hUvkBq/55IvnoghfgQPIeNDWX23kHLHJ/tsUNXW n9j7WNGyBiTWcGjZsgLpBj/adYbteI4W4LiQaLbNys/9eFeoWQ/qr3uyFTsWszkbnS8x mkOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter:arc-filter:dmarc-filter :delivered-to:dkim-filter; bh=xBZndHKorfDELnAIx8RL0wKrbWET7JZzLkXN2FlAwM0=; fh=39H2oohB6ZYGhyKHcKf9chiYMCdt+XzUdxuRAxp69qM=; b=fQL3w+WzxLtdGZxCP5i7aInlKAU83I3df5yETgowNPakZCKskVFDxvNEhLdOd/KOwv oOyl69aXdk9QfTw5gxsHaWuQXxtmCMLjBZ3HFGkA96CCe/IZ4ulzfRL+o3ylUX4XljMX b4RKhCIK3Uj5CN0Sc6DLCcrN4odGEcrEPaAlKy2e1DDiTgUrPSZahIbSFL4tSXFrRaIi a+FOqj6LGRXRUzl/o871d6ZSzzWusXmXtvJGqkzDMla//poLuE0obXXKYGIZ1gD3Xj1x e+/i8Wm/MlbEv/fdObzeKhX4p/Ei/YYUapUFG8OXnRDtZDlN79t2ih33jv43KNFA93ub Lc/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FCndyPJj; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <libc-alpha-bounces~patch=linaro.org@sourceware.org> Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 6a1803df08f44-6d8dabf2b23si18145126d6.289.2024.12.06.09.44.44 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2024 09:44:44 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FCndyPJj; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EBE46385840E for <patch@linaro.org>; Fri, 6 Dec 2024 17:44:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBE46385840E Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=FCndyPJj X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id 6305B3858424 for <libc-alpha@sourceware.org>; Fri, 6 Dec 2024 17:39:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6305B3858424 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6305B3858424 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::635 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1733506745; cv=none; b=FNkkRvfhqqeQZm33bKcvEL43CfsFJT9NosZ5zM/eYkK8hgvAZ+YvQWkQaD71KcjgqKsf8QhflKoWdiFKPHnR3TnJWl2rof6N72UrhYgkqGSJsraFocRVhd0TjN5GEoSCmrYQ/EupXUD1t0qk6DGdgBX3h1MIh+uYxYT4xR2Pbow= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1733506745; c=relaxed/simple; bh=rN/bCiiNS5T0SaYBmuTXWaqx+pX+Z5wdLji4u2u6xjI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CDIBA8iMv/hr5FPzwaanC46vULYcObLOzG30fyp0sW+ifhC1sWNI7VuSpdBt5dEtflA52ivS5q6LPgX63NUNHqxx1UtM/gZno0YkajAYEGh4JuaejdEP4dOduNxA4Vh+k1QU4P5J6klSzZFW0okqwfMQWNr8UaXYdz7Ymtt59Fo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6305B3858424 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-215da73e256so21088255ad.0 for <libc-alpha@sourceware.org>; Fri, 06 Dec 2024 09:39:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733506744; x=1734111544; darn=sourceware.org; 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=xBZndHKorfDELnAIx8RL0wKrbWET7JZzLkXN2FlAwM0=; b=FCndyPJjCHrcZsFJWqmSO8lEbpQ22d0WdwOdU7VFlxfRvjPqNxoke1Vh8eMJqcpKof y+k59Hvnunm+pFnf+GM2RNSyKr6lvibrTAoKipxLoVs/4RGx14A7oC3mzM26tJAoRHOd DiEeLAvjWdvzzzYvUZbnHCCIrohfpb+uhRIT1NQygyxDh8yuPdvjFKngYnRdYP07d9wd Q3R3QD8B7Pe2XLekWq0U3yesGDbyUBwGa4CIIz4ppHpfAk1oLfXeWVRulBRB7EZtG6FE 2Mp2IXK9Lr2XcnM3u37DUeWewZc8EYjezxgcbdAA5ddOGgfrOBnwZgEEq8DAxD9uT5dR fCkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733506744; x=1734111544; 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=xBZndHKorfDELnAIx8RL0wKrbWET7JZzLkXN2FlAwM0=; b=p6ha7UOKtvb1u4mudyqQS2Ag0hVI0Znqc9gId1735+J4kWF1LNqiWZKlbths7JaFbJ tP9cvzjXvh2bcCVfLiLAmTmonu4mVQOiuzhIs6d24BitHJFr/ceJscMJ5QBjjvAOsFxg ZCGDOIsremPYrTRKdk79Y9lNnJewp8A481tt2TisQz3zpIIK482ZAVmZszLxmRV3I8ll saGBVysTwfQcXFT9uifA7IR3/vPvSX5MGwsAeK1LHMllLUpBK2zLh+GvpeFutW6eV5SG Ssh7ZdtwIhp0NMidLdoC1yY7/XFaUFpfI7uvnFJuYRs+WGKOwVWt97CkBsEO83AZ9rxz fQ7g== X-Gm-Message-State: AOJu0YxjyhSgAiu0q/QjRJgJxuYsnEgk7LsqONFqWIt7TQHQ8ms3kRWJ OulOOlAMBKH34mGznpN0GBdHjACLgx5kAVb6qa3bLBqI0sjXTeVchSrpzIjAtvSTpsiYP4L2xTx P X-Gm-Gg: ASbGncsB9sfm7Zc4xw+iozpaXcCXXSs3VDA+N2XSkVAJov2wAn5/18UfZS/349ew3X7 nceSTFXnAcuFVZM6/FuT/tvwMrMORlpiB5L0M+PNrD7Xn+zgp8/uZ4z/xqA74OsUA4GITAyvrhR 2oKWX9j738xcKaHL4u00+czkan5wtAJMqXgcaxveg3lMpXjy5Jiit3aj961lu1r65svKf4n3PZU bJBMINDj1bFNZNYe+42M5G0JGbIFE3NSWTnvrznbwmDD6vvr5T/bfj3v4FQUw== X-Received: by 2002:a17:902:cec7:b0:211:f674:9d60 with SMTP id d9443c01a7336-21614dcc0ecmr53372275ad.50.1733506744155; Fri, 06 Dec 2024 09:39:04 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c2:2d1:1460:dd43:b597:c3fc]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-215f8f29635sm31409495ad.241.2024.12.06.09.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2024 09:39:03 -0800 (PST) From: Adhemerval Zanella <adhemerval.zanella@linaro.org> To: libc-alpha@sourceware.org Cc: Jeff Xu <jeffxu@google.com>, Florian Weimer <fweimer@redhat.com>, Mike Hommey <mh@glandium.org>, "H . J . Lu" <hjl.tools@gmail.com> Subject: [PATCH v4 4/9] rtld: Move call_init_paths after _dl_process_pt_gnu_property Date: Fri, 6 Dec 2024 14:37:52 -0300 Message-ID: <20241206173850.3766841-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241206173850.3766841-1-adhemerval.zanella@linaro.org> References: <20241206173850.3766841-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org |
Series |
Add support for memory sealing
|
expand
|
diff --git a/elf/rtld.c b/elf/rtld.c index e19086ecad..21d282fc87 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -1708,10 +1708,6 @@ dl_main (const ElfW(Phdr) *phdr, /* With vDSO setup we can initialize the function pointers. */ setup_vdso_pointers (); - /* Initialize the data structures for the search paths for shared - objects. */ - call_init_paths (&state); - /* Initialize _r_debug_extended. */ struct r_debug *r = _dl_debug_initialize (GL(dl_rtld_map).l_addr, LM_ID_BASE); @@ -1767,6 +1763,10 @@ dl_main (const ElfW(Phdr) *phdr, /* Assign a module ID. Do this before loading any audit modules. */ _dl_assign_tls_modid (&GL(dl_rtld_map)); + /* Initialize the data structures for the search paths for shared + objects. */ + call_init_paths (&state); + audit_list_add_dynamic_tag (&state.audit_list, main_map, DT_AUDIT); audit_list_add_dynamic_tag (&state.audit_list, main_map, DT_DEPAUDIT);