From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Cc: Ard Biesheuvel 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: [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: , X-List-Received-Date: Tue, 13 Sep 2016 17:27:09 -0000 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(+) 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) -- 2.7.4