Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20261104001024.736144-1-alex@alexrp.com>
Date: Wed,  4 Nov 2026 01:10:24 +0100
From: Alex Rønne Petersen <alex@...xrp.com>
To: musl@...ts.openwall.com
Cc: Alex Rønne Petersen <alex@...xrp.com>
Subject: [PATCH] s390x: clear r14 (lr) in _start like other ports

As in previous commits of this nature, this protects DWARF unwinders from
seeing nonsense when they reach _start.
---
 arch/s390x/crt_arch.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/s390x/crt_arch.h b/arch/s390x/crt_arch.h
index 92091a10..ddd3953a 100644
--- a/arch/s390x/crt_arch.h
+++ b/arch/s390x/crt_arch.h
@@ -3,6 +3,7 @@ __asm__(
 ".global " START "\n"
 ".type   " START ", %function\n"
 START ":\n"
+"	lghi %r14, 0\n"
 "	lgr  %r2, %r15\n"
 "	larl %r3, 1f\n"
 "	agf  %r3, 0(%r3)\n"
-- 
2.53.0

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.