From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 7BCC03858C27 for ; Mon, 3 Jan 2022 23:40:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7BCC03858C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from reform (deer0x0f.wildebeest.org [172.31.17.145]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 70FAA3000913 for ; Tue, 4 Jan 2022 00:40:08 +0100 (CET) Received: by reform (Postfix, from userid 1000) id 56C962E83457; Tue, 4 Jan 2022 00:40:08 +0100 (CET) Date: Tue, 4 Jan 2022 00:40:08 +0100 From: Mark Wielaard To: elfutils-devel@sourceware.org Subject: Re: [PATCH] libdwfl: Calculate addr to read by hand in link_map.c read_addrs. Message-ID: References: <20211224010608.1302841-1-mark@klomp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211224010608.1302841-1-mark@klomp.org> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2022 23:40:10 -0000 On Fri, Dec 24, 2021 at 02:06:08AM +0100, Mark Wielaard wrote: > The gcc undefined sanitizer doesn't like the trick we use to calculate > the (possibly) unaligned addresses to read. So calculate them by hand > as unsigned char pointers. > > https://sourceware.org/bugzilla/show_bug.cgi?id=28720 Pushed