From patchwork Thu Oct 14 17:47:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 46240 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 7E6793857C52 for ; Thu, 14 Oct 2021 18:00:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E6793857C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1634234448; bh=/KQGBXoCX3Wcxv+4n9aDW1Y/dTSlylnOHLi1efExNUM=; 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=eKKPly1Vuxz7ceStN+BjhtWjfm2+1jvmOuaqC9vfwxPs1N+NhNIwz6GkitAr8vERV f0zrrMJcBCVXX88QYaoP18CBhcIAL7+mkgw9c1GG0pAKRmuScdqIAPBYxKfs0gK7S6 STe1h8xlRQgPKuT+kYnBEQmcRafkcHKOglOhl3GQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by sourceware.org (Postfix) with ESMTPS id 011203857C42 for ; Thu, 14 Oct 2021 17:48:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 011203857C42 Received: by mail-ua1-x92b.google.com with SMTP id f4so12920361uad.4 for ; Thu, 14 Oct 2021 10:48:27 -0700 (PDT) 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=/KQGBXoCX3Wcxv+4n9aDW1Y/dTSlylnOHLi1efExNUM=; b=USOM6VGgXvrpy9okBTdE2NNeWcz61i8qGWua0jVLKoxwAh6Nm1fn2JjQSFDxj/zj5A looWrpCpbS31t+eBok7FDnrn/A77mxkcxt3vf6/1JUg0JygJ+WwXI1h5oczlWyswsMr0 87Ui6oZntASwGzOJ7Q5tKl0bTdoOZbPVL2K27WnCTjzKZPQ2r5PZo3k25brcQzZvG6sR fjJ/alUvjMZvCyBsfs9MARmpNUvt3rJT3TLKhNqVMMteQx9yV+WFYePI2bn4qimk0vzO tmDhXWUB7Gtoqk4q0LOtWuidICAm8up5HxDuEHQJMxMHTNTo7OMvniTyZyYLn1baoPuj V3Zg== X-Gm-Message-State: AOAM533VkRArIutDk/iTT4RBTcqfi+eepekr5I4+Xe84ykriguo6UGMS fVOtFUvkcpftvOm685qhogZnyBWQOJdFVg== X-Google-Smtp-Source: ABdhPJxuDzYGgMTjm9biTkn96sPm6emPOfCyMIl/FQFvK1sbjE1pQ4lO+AXu3O1/IfdIa1ELgwWIVA== X-Received: by 2002:ab0:5a93:: with SMTP id w19mr7978015uae.58.1634233707448; Thu, 14 Oct 2021 10:48:27 -0700 (PDT) Received: from birita.. ([2804:431:c7ca:c6c7:3c65:db0e:6fcc:a8e9]) by smtp.gmail.com with ESMTPSA id q26sm2107237vkn.40.2021.10.14.10.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 10:48:27 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v4 19/21] elf: Move LAV_CURRENT to link_lavcurrent.h Date: Thu, 14 Oct 2021 14:47:50 -0300 Message-Id: <20211014174752.1651347-20-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211014174752.1651347-1-adhemerval.zanella@linaro.org> References: <20211014174752.1651347-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 Netto 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 4ee07d2115..2c4496a633 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