From owner-cvs-src@FreeBSD.ORG Thu Jun 2 05:34:09 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D7BD16A41C; Thu, 2 Jun 2005 05:34:09 +0000 (GMT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0780543D48; Thu, 2 Jun 2005 05:34:09 +0000 (GMT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j525Y8S3017397; Thu, 2 Jun 2005 05:34:08 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j525Y8YA017396; Thu, 2 Jun 2005 05:34:08 GMT (envelope-from marcel) Message-Id: <200506020534.j525Y8YA017396@repoman.freebsd.org> From: Marcel Moolenaar Date: Thu, 2 Jun 2005 05:34:08 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/libexec/rtld-elf/alpha reloc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2005 05:34:09 -0000 marcel 2005-06-02 05:34:08 UTC FreeBSD src repository Modified files: libexec/rtld-elf/alpha reloc.c Log: Fix the load64 and store64 macros, created to handle 8-byte unaligned loads and stores (resp.) The ldq_u and stq_u instruction mask off the lower 3 bits of the final address before loading from or storing to the address, so as to avoid unaligned loads and stores. They do not themselves allow loads from or stores to unaligned addresses. Replace the macro definitions by a packed struct dereference. Submitted by: Richard Henderson (rth at twiddle dot net) Revision Changes Path 1.20 +6 -6 src/libexec/rtld-elf/alpha/reloc.c