From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D56873896C04; Mon, 5 Dec 2022 09:58:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D56873896C04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670234295; bh=3taCcellEtkdJimTPPF+Oy3klxoVkA4YNNV1tmZRb7E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IhZvzli9+wjp1mAsqYpofPRGENFWJpekqEFjziqHYOPX6N1MYS2DZ2dMN9gTMj/ox zsHrSxIILePV0+XoDgMsgCQ8WM2K6JbVKW+obivMIktZ3t1XHjssTbjF0fgQzapDMY FHAmVYME5gyMEP3zGLogaXWMHnucbEwWFduE2oQU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107971] linking an assembler object creates an executable stack Date: Mon, 05 Dec 2022 09:58:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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=3D107971 --- Comment #3 from Andrew Pinski --- https://sourceware.org/binutils/docs-2.39/ld/Options.html#index-_002d_002dw= arn_002dexecstack ``` Note: ELF format input files specify that they need an executable stack by having a .note.GNU-stack section with the executable bit set in its section flags. They can specify that they do not need an executable stack by having that section, but without the executable flag bit set. If an input file does not have a .note.GNU-stack section present then the default behaviour is ta= rget specific. For some targets, then absence of such a section implies that an executable stack is required. ****This is often a problem for hand crafted assembler files.**** ``` Added emphasize is mine.=