From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EDD65385801D; Tue, 2 Apr 2024 08:24:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EDD65385801D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712046248; bh=sgHZwjiSLR5C43lC0SAGUEUSLMmTAe9UaEZHmXyccnQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BcMsHXC/8zbYm8PKvT1yBPQtFqya5zO+79Icd3EMNT004ki3H08DaYV1K43AlISr+ 6iXwSXTV2ekDPCfeuQEKFBwwJmxKYA9A4m4DK5cUGDMsUuHZOWDq1+PcapeJdeA2hB B34tzOWUKnX+m/8Dp90AOgrD/V4nRzPjPWmp7Ox4= From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112980] 64-bit powerpc ELFv2 does not allow nops to be generated before function global entry point Date: Tue, 02 Apr 2024 08:24:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw at gcc dot gnu.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://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112980 --- Comment #11 from Kewen Lin --- (In reply to Giuliano Belinassi from comment #9) > Yes, this is for userspace livepatching. >=20 > Assume the following example: > https://godbolt.org/z/b9M8nMbo1 >=20 > As one can see, the sequence of 14 nops are generated after the global > function entry point. In such way we can't use the this space to place a > trampoline to the new function. We need this sequence of nops to be placed > *before* the global function entry point. >=20 Hi Giuliano, thanks for the inputs!=