From patchwork Fri Jul 30 19:47:14 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: 44536 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 3C6E9398545C for ; Fri, 30 Jul 2021 20:02:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C6E9398545C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1627675328; bh=lGqCVcBS7GcIqlgfGBoV2iCbh+9OOjaJha2WBGzJqtU=; 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=l6TiFj+2Mw6bAa2Y4+QAwpMMTYnKpLwvHuMbgBKtxklNbXIywBVsT9n7yyOjC5+9b KjTLF55vKrgLBQi4dX6CbeJ77sM41fheWNhnQWu7j+y8p32CbIXRBTP2uNNeO04Xn9 B2XU+hVCL3E8XIC9sqBUOgPUb+XyASQVVvki+ffI= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by sourceware.org (Postfix) with ESMTPS id B0D22397EC1F for ; Fri, 30 Jul 2021 19:47:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B0D22397EC1F Received: by mail-pj1-x1034.google.com with SMTP id b6so16732597pji.4 for ; Fri, 30 Jul 2021 12:47:59 -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=lGqCVcBS7GcIqlgfGBoV2iCbh+9OOjaJha2WBGzJqtU=; b=GhX2NJcDMVmAs0EeuWX/ZumnEuTAMVoUXFBAvZy3RvDpcan1g/rN7/Yg8xOVpQYGiB MM9SvrhHXD2rj3hXVzRSJRESdBa8kwKiNWf5gH54+aHcDkSVpq04fmPJe4K7diS0gkEf Sc8fyAmreNnWMwowen7j+Ib1s9hMIl7nlwzd0dm/4vZacLTkOxwMRMFft4gDbe/xKmvt Tdi3eU7OHexeumK2lM9DmcFxo8CgwTOuX7B2H7CdlX6RVTdWal1+syEp2YHuTN2WMhjf z8qkn/KxXb3LclimOWJBmcgg15CeZdZA0OxrIeVaYA4USiCL+gPzDnNy+y4dokjdUQB5 uQQg== X-Gm-Message-State: AOAM531itSzfJ0TXEUcvlFHxiUjdS06yLmcq4/jzFGmC6gk0Io322FjT VxQRDK28bxxQARNAAbWHESS4+XGPCO4zCA== X-Google-Smtp-Source: ABdhPJxJldpSNgvWu/kcJojmP2/noDqePKO9FswcZLI+/G0NtxROYwaakpuLHDZxpJsgMMmLZafMwA== X-Received: by 2002:a17:90b:1495:: with SMTP id js21mr4808000pjb.2.1627674478663; Fri, 30 Jul 2021 12:47:58 -0700 (PDT) Received: from birita.. ([2804:431:c7cb:43e2:6c33:fd81:e602:d33]) by smtp.gmail.com with ESMTPSA id c12sm3041426pfl.56.2021.07.30.12.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 12:47:58 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v3 19/20] elf: Move LAV_CURRENT to link_lavcurrent.h Date: Fri, 30 Jul 2021 16:47:14 -0300 Message-Id: <20210730194715.881900-20-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210730194715.881900-1-adhemerval.zanella@linaro.org> References: <20210730194715.881900-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 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 3e8adeee1d..2c508c3bfc 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 a4cd6864ad..af7a38d8fc 100644 --- a/elf/link.h +++ b/elf/link.h @@ -96,7 +96,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