From patchwork Fri Mar 5 20:15:13 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: 42326 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 51FED39A5C11; Fri, 5 Mar 2021 20:16:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51FED39A5C11 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614975382; bh=6v951kPLNw3ar5X/yvGbDPOVkPLl7d3DJ7OpMIBxsFk=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=ic5ifDk+5B4VzEOExF5WQ4xd63qYSa5mWeMYhJufESj5D/VdgjeaLAtAK+/UWGq4h QoEOqi6VKddou4w7TMAeKMSLlFx+5as7khBddGWPu7rKEvmwb81M/aOBC3JOa5Ilqr DrGsB08ib0pTVB8U7gdUJazKR6Lp4lMHFtGlmUKY= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by sourceware.org (Postfix) with ESMTPS id 4D7F239A5C09 for ; Fri, 5 Mar 2021 20:16:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4D7F239A5C09 Received: by mail-qt1-x834.google.com with SMTP id o1so2725105qta.13 for ; Fri, 05 Mar 2021 12:16:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6v951kPLNw3ar5X/yvGbDPOVkPLl7d3DJ7OpMIBxsFk=; b=K1crDG3gwDmL5uE19vRBVInwLnbBvegSXxSW7tavvTugns3iojJ87EdsgKVkqcDd36 PaHl+4Qti/MmeO2cGWZ9QP94Od/80G3W4z3nTi0CZj2NnVXMUsVbBGJs/njTRXawF1PT +uSMRtVgcNll3/pWSxTag3IarAKLi3rRsRT3AR1Z6FjHz0lYZCnjFwiYtkOXId/Y7PGA DNjsYRP4GoYbh09oGv4y1V1ACD7AH34nnCMvusOAP+lSqdfJDtvqCl+yFQAEXt+C3Zvc 2uY2QEdYRt6eA46E+Xh4n0S0YI2E0xzjYt8qd42C1IYpqYv3MMypQt7T4wF/mxNx5fv+ fCNg== X-Gm-Message-State: AOAM531LQOrMTmXk8GD+LUxfiLovQD8k0ZRcz3BWtOYOQ/xGwvgQleNU DwSCIpmiw+kYavNKQ3jrosrsZcCrLodoeg== X-Google-Smtp-Source: ABdhPJxiBdfoyPK7CKqziWdFnRRbN67cc3B2OR8WqFpKw+9Ebv3HlZYxGbi4jvi6vnh87cZKKK26cQ== X-Received: by 2002:ac8:66d6:: with SMTP id m22mr10589435qtp.56.1614975379786; Fri, 05 Mar 2021 12:16:19 -0800 (PST) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id c5sm2526145qkl.21.2021.03.05.12.16.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 12:16:19 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH 47/52] elf: Use LFS and 64 bit time_t for installed programs Date: Fri, 5 Mar 2021 17:15:13 -0300 Message-Id: <20210305201518.798584-48-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210305201518.798584-1-adhemerval.zanella@linaro.org> References: <20210305201518.798584-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" The patch enables for pldd, sprof, ldconfig, and sln. Checked on i686-linux-gnu and x86_64-linux-gnu. --- elf/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/elf/Makefile b/elf/Makefile index b06bf6ca20..bad8594e64 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -79,6 +79,8 @@ ifeq (yes,$(have-loop-to-function)) CFLAGS-rtld.c += -fno-tree-loop-distribute-patterns endif +CFLAGS-pldd.c += -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 + # Compile rtld itself without stack protection. # Also compile all routines in the static library that are elided from # the shared libc because they are in libc.a in the same way. @@ -663,14 +665,23 @@ $(objpfx)ldd: ldd.bash.in $(common-objpfx)soversions.mk \ mv -f $@.new $@ $(objpfx)sprof: $(libdl) +CFLAGS-sprof.c += -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 $(objpfx)sln: $(sln-modules:%=$(objpfx)%.o) +CFLAGS-sln.c += -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 $(objpfx)ldconfig: $(ldconfig-modules:%=$(objpfx)%.o) +include $(o-iterator) +define o-iterator-doit +$(foreach f,$(ldconfig-modules),$(objpfx)$(f)$(o)): CFLAGS += -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 +endef +object-suffixes-left := $(all-object-suffixes) +include $(o-iterator) SYSCONF-FLAGS := -D'SYSCONFDIR="$(sysconfdir)"' CFLAGS-ldconfig.c += $(SYSCONF-FLAGS) -D'LIBDIR="$(libdir)"' \ - -D'SLIBDIR="$(slibdir)"' + -D'SLIBDIR="$(slibdir)"' \ + -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 libof-ldconfig = ldconfig CFLAGS-dl-cache.c += $(SYSCONF-FLAGS) CFLAGS-cache.c += $(SYSCONF-FLAGS)