From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from server28.superhosting.bg (server28.superhosting.bg [217.174.156.11]) by sourceware.org (Postfix) with ESMTPS id 87280388A422 for ; Wed, 2 Jun 2021 19:16:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 87280388A422 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dinux.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinux.eu DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dinux.eu; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=RaIHQ0GCAnVPtCc0B/ni4Q8L3rM4PjrYFUfOc/GafxA=; b=Oeg6FxAcKkG8Kd8LXHjmDsUOy0 Oba8oF8oX+15MvEielX04i0U5+esIIW5jzrexSnLVhXdH7IBrlcxFhl4H86Ir/0DOSq4X9m95n+r0 eE/FI3ILLYz9nvOz6i2D6aTOUea1TT0suRkouACh711vWIkbZngs4bBCloQ4NtutvlepqywGGDLY9 ogPRGeAe89BDXlC2Osq/6AzfsIrKQGrSx6g5xOVYnAlMwAeR6Ioh5AH7mdL8xO5rtbA7Dhi2X3rTY jfo0DrAANI/9DOzJhmG/fALhSFkjKVeQQ/XY32EPqq/RJxargRQOrkVHQqqZHHa0OwT8sQ/MPd41Y 3rjKmQSQ==; Received: from [95.87.234.74] (port=39500 helo=kendros.lan) by server28.superhosting.bg with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1loWLp-0006yc-3m; Wed, 02 Jun 2021 22:16:27 +0300 From: Dimitar Dimitrov To: newlib@sourceware.org Subject: [PATCH] libgloss: pru: Place sim syscalls into their own sections Date: Wed, 2 Jun 2021 22:16:19 +0300 Message-Id: <20210602191619.57747-1-dimitar@dinux.eu> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server28.superhosting.bg X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dinux.eu X-Get-Message-Sender-Via: server28.superhosting.bg: authenticated_id: dimitar@dinux.eu X-Authenticated-Sender: server28.superhosting.bg: dimitar@dinux.eu X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, HAS_X_OUTGOING_SPAM_STAT, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, 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: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2021 19:16:29 -0000 This should help reduce final ELF size if using --gc-sections linker option. Signed-off-by: Dimitar Dimitrov --- libgloss/pru/syscalls.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgloss/pru/syscalls.S b/libgloss/pru/syscalls.S index 3ad0d9215..252231e90 100644 --- a/libgloss/pru/syscalls.S +++ b/libgloss/pru/syscalls.S @@ -32,6 +32,7 @@ .extern _impure_ptr /* Handle return from syscall. */ + .section .text.__SC_ret, "ax" .global __SC_ret .type __SC_ret,@function .func @@ -52,6 +53,7 @@ __SC_ret_skip_errno_set: .endfunc .macro SC fname, id + .section .text.\fname, "ax" .global \fname .type \fname,@function .func @@ -62,8 +64,6 @@ __SC_ret_skip_errno_set: .endfunc .endm - .text - /* Syscalls are used only by simulator. Real HW users use other methods for communicating with the host - remoteproc, rpmsg, shared memory. */ -- 2.31.1