From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1B9FD3858D37; Thu, 16 Nov 2023 03:36:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B9FD3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1700105794; bh=YPEshWNClHA2OHYUQ7T5tim96PEqJ+++0pxY0HQq+JE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tZ0e3K1b+KRvtOe/ZyI/Po6E0pODGd9M3SBhyAxfwF8EJbhhwhCNrrVXA4OFuBMZi MxiVRWC28bCMpHb50dyFIhl17tk1ejEl96dLHBJ8wKP1EhsJCYPALhGEA7krEChtIp rqVmPp8VgIu3rpz/EqOV2QQaXJvjERq+97J4PnUg= From: "rui314 at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/31042] [s390x] .init and .fini padding Date: Thu, 16 Nov 2023 03:36:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rui314 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31042 --- Comment #5 from Rui Ueyama --- > If GNU LD needs to add padding bytes due to e.g. the alignment requiremen= t in crtn, it also uses the nops for such a code-section. > mold should also use this behavior in order to be equal to GNU LD. Otherw= ise this breaks also other stuff. That's correct; that's our approach in mold. That said, it might be a better idea to eliminate the dependency on that behavior from the hand-written assembly source files, as it's an obscure dependency on the implementation's behavior. This also inadvertently creates free NOP slides for attackers. On other platforms, we fill gaps with trap instructions, ensuring that the pro= gram is immediately terminated if its control reaches an unexpected location. --=20 You are receiving this mail because: You are on the CC list for the bug.=