Received: from fforwardh-b4-smtp.messagingengine.com (fforwardh-b4-smtp.messagingengine.com [202.12.124.199]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 8114B2202A2 for <~alpine/devel@lists.alpinelinux.org>; Tue, 18 Mar 2025 21:00:11 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfforwardh.stl.internal (Postfix) with ESMTP id 7440517403B9 for <~alpine/devel@lists.alpinelinux.org>; Tue, 18 Mar 2025 17:00:08 -0400 (EDT) Received: from phl-imap-12 ([10.202.2.86]) by phl-compute-05.internal (MEProxy); Tue, 18 Mar 2025 17:00:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1742331608; x=1742418008; bh=UsxjCcxzYsfqf76gtQ2s4e33We117Ecxpwd 8tzRn7mU=; b=weG9D7w0GrlLZcvtKRhE6GaaDEsfMl+/5iwsHGFWV6I16YCE3KX ce0ou5udP1K1hT3RR86/BYavCYeTWtytBz5xvMgv/xKDoiNmt44jqmVtv2QKPdbn 8H7FFK3dLBaOuBvMUwIMZox5O3/YPuvVUw/jzy1eTsTmjpjIXZB9humnDb0bSTx/ 0cG6Rq5E4L/O8GyUmyQ2lQNCUWPIqYzEg+vwza5NJtJBZ/ixvpqilkWzLi8Qvtl6 yw0mOr9Ywdwp9/B/0Wmkbnn5we7KaGR3ltQGa7xGT12Kg11vCxbfZauwlFWqOKP6 TEI1nNpmlUyOJDJIMSnQGnKEY8gdeX9d3WA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeefgeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefogg ffhffvkffutgfgsehtjeertdertddtnecuhfhrohhmpedflfhimhcurfhrhihorhdfuceo ughusghiohhushhjihhmsehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeetle efteeffeethfefteejteetudehvdeuteduudelvdfffeejiedvveejtdelvdenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguuhgsihhouhhsjh himhesghhmrghilhdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepmigrlhhpihhnvgdsuggvvhgvlheslhhishhtshdrrghlphhinh gvlhhinhhugidrohhrgh X-ME-Proxy: Feedback-ID: i5b2c416c:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 0F5781C20067; Tue, 18 Mar 2025 17:00:08 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: T3dbfd3abeb6d0148 Date: Tue, 18 Mar 2025 16:59:47 -0400 From: "Jim Pryor" To: ~alpine/devel@lists.alpinelinux.org Message-Id: <30674376-d675-4c1d-96ef-7afb88a0dabb@app.fastmail.com> Subject: stack smashing protection? Content-Type: text/plain Content-Transfer-Encoding: 7bit I'm building some binaries on an ARMv7 build of Alpine, and getting errors about the symbol `__stack_chk_fail` being missing. Adding `-fno-stack-protector` to my build command solves the issue. But I wonder if there's a way to get stack protection? I notice that when I do `nm -D /usr/lib/libc.so | grep __stack_chk_fail` I get the output: ``` 0003cc48 T __stack_chk_fail ``` So the symbol is there, just not getting linked. I tried adding each of these to my build command, but none of them seemed to fix the issue (that is, let me build without disabling stack protection): * -Wl,--whole-archive -lssp_nonshared -Wl,--no-whole-archive * -static-libgcc * -Wl,--as-needed -lc Is there something else I should be trying? -- dubiousjim@gmail.com