From patchwork Tue Nov 9 18:33:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 47316 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B7ABA385801F for ; Tue, 9 Nov 2021 18:47:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B7ABA385801F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1636483648; bh=976I6VGY8p8XrkX9dnYhgBPMBemzJy6fuk8+0zkUeUY=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=BERWvSlAcGnLWS6D/fPnTaYaCMaL2pTDJEXKABVKDHvwSO8cPoVHWERqTwtJsxmeE mBTJgXbuHmU80meAGyrOwu+008qc9K+KQDkTe00Xg/6MEAamH67/vCt388gp4QPRod fMk6CApaR2pPzf5WDSIx6r+HJe3QYFs6fFA5yES4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id 773CA3858420 for ; Tue, 9 Nov 2021 18:34:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 773CA3858420 Received: by mail-pl1-x62b.google.com with SMTP id r5so171478pls.1 for ; Tue, 09 Nov 2021 10:34:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=976I6VGY8p8XrkX9dnYhgBPMBemzJy6fuk8+0zkUeUY=; b=0IlCXEGaZOCpNSxAhPzbewxeKSzykkjQiU/gCH/Yu9I6RBx8kCSwf/qywdgoHx06MT tyXHI+LI1R5WfMrdviXRMvhq2NGsqumiQsHsTtZnqqsGpXxGx3sFOmujdhCVt01TqB5G 64qMTJrtwT/lT0Jk5IX0Z1GZyXjN/PRHP3ZWNhNurrt0AYeREfVfE2EcCi4BO9JWFzsv fRMIsEVBOy+/UCFcRwvZCwxN1ZafJYMKQd0OXn738yeDBHvucnk27aMYr7O029QF2swU tWzm0r4GqoQiTt0XsdUgfscfnxiy81XUOZApuEha11/VG6T/NHxsinrCJXeaKb4UhPmX xXRQ== X-Gm-Message-State: AOAM531t80UdLOkJonIQ74yrNvfCHbMxShciQOQBYnOiYqrDc1qfYhxe uEjYwG64UtZf3qc2zy2DVLj1j11ulW6f+w== X-Google-Smtp-Source: ABdhPJy8XqNcds4u1oY+elP7tXALm+9Tb3t04j5oCT/aiG9nCyiK86903I64vsU7bvnfdxsR5+qZWw== X-Received: by 2002:a17:90b:3908:: with SMTP id ob8mr9561432pjb.57.1636482871487; Tue, 09 Nov 2021 10:34:31 -0800 (PST) Received: from birita.. ([2804:431:c7cb:55a:94d0:2630:9b29:e621]) by smtp.gmail.com with ESMTPSA id ep15sm3761884pjb.3.2021.11.09.10.34.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 10:34:31 -0800 (PST) To: libc-alpha@sourceware.org, Florian Weimer Subject: [PATCH v5 20/22] elf: Move LAV_CURRENT to link_lavcurrent.h Date: Tue, 9 Nov 2021 15:33:45 -0300 Message-Id: <20211109183347.2943786-21-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211109183347.2943786-1-adhemerval.zanella@linaro.org> References: <20211109183347.2943786-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Reply-To: Adhemerval Zanella Cc: John Mellor-Crummey Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" No functional change. --- bits/link_lavcurrent.h | 25 +++++++++++++++++++++++++ elf/Makefile | 2 +- elf/link.h | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 bits/link_lavcurrent.h diff --git a/bits/link_lavcurrent.h b/bits/link_lavcurrent.h new file mode 100644 index 0000000000..44fbea1e80 --- /dev/null +++ b/bits/link_lavcurrent.h @@ -0,0 +1,25 @@ +/* Data structure for communication from the run-time dynamic linker for + loaded ELF shared objects. LAV_CURRENT definition. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#ifndef _LINK_H +# error "Never include directly; use instead." +#endif + +/* Version numbers for la_version handshake interface. */ +#define LAV_CURRENT 1 diff --git a/elf/Makefile b/elf/Makefile index 3172219386..1a7e851dfa 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -21,7 +21,7 @@ subdir := elf include ../Makeconfig -headers = elf.h bits/elfclass.h link.h bits/link.h +headers = elf.h bits/elfclass.h link.h bits/link.h bits/link_lavcurrent.h routines = $(all-dl-routines) dl-support dl-iteratephdr \ dl-addr dl-addr-obj enbl-secure dl-profstub \ dl-origin dl-libc dl-sym dl-sysdep dl-error \ diff --git a/elf/link.h b/elf/link.h index 67ab2495cc..debbcd2fcb 100644 --- a/elf/link.h +++ b/elf/link.h @@ -113,7 +113,7 @@ struct link_map #ifdef __USE_GNU /* Version numbers for la_version handshake interface. */ -#define LAV_CURRENT 1 +#include /* Activity types signaled through la_activity. */ enum