From patchwork Thu Jan 28 17:07:41 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: 41861 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 DFD6639AC876; Thu, 28 Jan 2021 17:07:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFD6639AC876 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1611853676; bh=ox0XivI6v5b7iRqe//vcTMd2eQH7H2/Gm6lVUFxN2tA=; 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=eH0oUqmYSR0QopjT8cSKIg2cAp52DeWXlrkWzZoVb1LHShsLXnv0V2OHFbX/+psk1 N35vrV6kjtDFJbc8UuPKMxWj26c6nqraH0CAIMszy0Nmuzv7UHAQhjNHGULDoiCVTZ oqadcvEmAyqTElFGzOsZeyqBFJ8gbt65p6n6+gJ4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by sourceware.org (Postfix) with ESMTPS id BDCF139960D2 for ; Thu, 28 Jan 2021 17:07:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BDCF139960D2 Received: by mail-qv1-xf2a.google.com with SMTP id es14so3125191qvb.3 for ; Thu, 28 Jan 2021 09:07:54 -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=ox0XivI6v5b7iRqe//vcTMd2eQH7H2/Gm6lVUFxN2tA=; b=D+zx3cFrio8atOgmfcUt5MIsFfxnLULDB/zuKAHclyXM7uVHKxEhPEj9L0sxY/9oOW Sdv5E0xu1KY+c6QQP/SZlDsZBS0k4d9QOL4okSl/dpAWt5XrUM6TyMQlptDwVwRaGziu GZhZqcmmpORXYS43eSm84PP4giejUCk8Trkb0nS8qiZ+ksSZ2LairjxRS3XnVCEsEzpM iyWHDR2sryjI3yVvgYHu2/01NEoc+HOAUSBeCtjyjYWi8+AtPggsYGa0TPD0vMiPOLc2 oAUe1dxUGLxgxQ8j5DtcfiwDzMk+w5+wiPAc/TJLxF+Tki+zHRgStrzOz+FTkw7iAKwE zNZw== X-Gm-Message-State: AOAM530+OmWzpZXMOLEQ8OxhHM8CZjqHooEUGNWxj+BsXRurr09FxYvA rQF6wzBu7G3msEmbq/JTwxWUDZuN8WqXeg== X-Google-Smtp-Source: ABdhPJxLJNKhejNi0N54axssk3cxA2aGoIamU6J0BTdJj5hdT+2h0i/h9ttX1DrUlVbdSn0ImEC7pw== X-Received: by 2002:ad4:5a02:: with SMTP id ei2mr305302qvb.40.1611853674106; Thu, 28 Jan 2021 09:07:54 -0800 (PST) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id s136sm3711806qka.106.2021.01.28.09.07.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 09:07:53 -0800 (PST) To: libc-alpha@sourceware.org Subject: [COMMITTED 3/7] ia64: Fix brk call on statup Date: Thu, 28 Jan 2021 14:07:41 -0300 Message-Id: <20210128170745.1250260-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210128170745.1250260-1-adhemerval.zanella@linaro.org> References: <20210128170745.1250260-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.5 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.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" brk used by statup before TCB is properly set, so we can't use IA64_USE_NEW_STUB. This patch fixes a regression introduced by 720480934ab910. Checked on ia64-linux-gnu. --- sysdeps/unix/sysv/linux/ia64/brk.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/ia64/brk.c diff --git a/sysdeps/unix/sysv/linux/ia64/brk.c b/sysdeps/unix/sysv/linux/ia64/brk.c new file mode 100644 index 0000000000..cf2c5bd667 --- /dev/null +++ b/sysdeps/unix/sysv/linux/ia64/brk.c @@ -0,0 +1,22 @@ +/* brk system call for Linux/ia64. + 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 + . */ + +#include +/* brk is used by statup before TCB is properly set. */ +#undef USE_DL_SYSINFO +#include