From patchwork Tue Sep 13 17:27:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 76105 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1471132qgf; Tue, 13 Sep 2016 10:27:11 -0700 (PDT) X-Received: by 10.98.155.154 with SMTP id e26mr3304844pfk.68.1473787631744; Tue, 13 Sep 2016 10:27:11 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id z185si28471931pfz.64.2016.09.13.10.27.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Sep 2016 10:27:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 4F1EF1A1E48; Tue, 13 Sep 2016 10:27:11 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4F6651A1E43 for ; Tue, 13 Sep 2016 10:27:09 -0700 (PDT) Received: by mail-wm0-x230.google.com with SMTP id b187so6795110wme.1 for ; Tue, 13 Sep 2016 10:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=e5SniDGWdEnsse+ZvQv21SY6cSi+Drb2ZdYLjiC0iHk=; b=ZAekATmCQFfFD4PqsLoZNSQdiq979qP5nstcN8N1MndLCsBwslHV0tRGWJ4TbXJTKX oGzhb+DAfkLQjA3DqjkrleNXFK474iNi7g12zwnHDsaJ3DqgJYuqvJM5bG0ulabvCx2I DThpephgS2VpsFt9u7fmsyRtXcczFV0nNzPI0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=e5SniDGWdEnsse+ZvQv21SY6cSi+Drb2ZdYLjiC0iHk=; b=LotsM2+CxXpUj7RYWie1Zvx7tr7jrbf17FMnMpQ5WZsnf4vMgkWuf2mPoAf6WH40Oz T6Da14Vmbd6W9uotu99NKXUsiDV+wfO2WwTRO6xygtNs+MX2HNeU7Y1R3vY1UIaf6sMQ 8YrK2eXDdJPUuYoECTuWZzDo24POPuDSiSp7KbHkQAd7ejqzTebo16/mCuAsQ0NQpZ4k wA10uJHFDoXyoyg3cNHiiAKEDvo8t7szttvUrVmXiWmIJxcttGGtTLVi9Z2GTMvWx/m3 swbHBjyXHoEfQUzrZJsV9R6dLFl9Oxsuk2szIvOTLb9GlMi4Pkgov41xpGZ993UN58MH t1Jw== X-Gm-Message-State: AE9vXwPAMnkH6GY8A2pI3UYWBhNdP7px8SjRc+pvACmTS7RUhvnL/fsV6buPwFEzIS95qFHb X-Received: by 10.194.241.227 with SMTP id wl3mr2451429wjc.177.1473787627635; Tue, 13 Sep 2016 10:27:07 -0700 (PDT) Received: from localhost.localdomain ([197.128.106.42]) by smtp.gmail.com with ESMTPSA id nd1sm19054458wjb.22.2016.09.13.10.27.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Sep 2016 10:27:07 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Tue, 13 Sep 2016 18:27:00 +0100 Message-Id: <1473787620-26953-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [edk2] [PATCH 2/2] ArmPkg/AsmMacroIoLib: force word alignment for functions X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Without an explicit .align directive, the Clang assembler defaults to no alignment, which may result in instructions appearing misaligned in the final executable. So use word alignment in all cases. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- ArmPkg/Include/AsmMacroIoLib.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ArmPkg/Include/AsmMacroIoLib.h b/ArmPkg/Include/AsmMacroIoLib.h index fb73ea9a4694..5e4de1f269c8 100644 --- a/ArmPkg/Include/AsmMacroIoLib.h +++ b/ArmPkg/Include/AsmMacroIoLib.h @@ -56,6 +56,7 @@ .global Name ; \ .section #Section, "ax" ; \ .type Name, %function ; \ + .align 2 ; \ Name: #define ASM_FUNC(Name) _ASM_FUNC(ASM_PFX(Name), .text. ## Name)