From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03on060b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe09::60b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3952521A0293B for ; Fri, 26 May 2017 01:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Yc4m0WYfdKsEnXPmzhwMykCnneOkcOcb1zXeyfYRaSE=; b=TXyUKx9/KFV0yVkQ2b8yRWMMY0GKk72wkeXQzMbmhxcChOgfXj1hFxfy4i2MvkQ0yDa/k2LwLmNWfawtgfMTtptKbdus8jC03/HrDTpbaYg/YsMzTXFPzyVB6am97ETjP4NfskhC2ZengBugN9VPRiq9ARaCXMLORXrKIJKoaDE= Received: from DBXPR04MB144.eurprd04.prod.outlook.com (10.242.140.16) by VI1PR04MB3006.eurprd04.prod.outlook.com (10.170.228.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Fri, 26 May 2017 08:02:30 +0000 Received: from DBXPR04MB144.eurprd04.prod.outlook.com ([fe80::a02a:7981:5896:6511]) by DBXPR04MB144.eurprd04.prod.outlook.com ([fe80::a02a:7981:5896:6511%27]) with mapi id 15.01.1101.021; Fri, 26 May 2017 08:02:28 +0000 From: Pankaj Bansal To: "edk2-devel@lists.01.org" , Ard Biesheuvel Thread-Topic: AARCH64 : C Model Small Alignment requirements Thread-Index: AdLV9JTSp2lK2Kp1SU6shza6gLcpkg== Date: Fri, 26 May 2017 08:02:28 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=nxp.com; x-originating-ip: [192.88.169.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB3006; 7:9I8KkezOi5ya4VP4MkwgAhzKFQOmaKGpvNJ+e8Tk0TgxuHxd19znp7l9tfMQ3fzcLntbUoQjMxdYyy4biBDm947vRyzv2G4jmBon4hy71Wb4n4aiEFL6qEw4zwbaXuORQxBluhC1SGfA5WqNJjVENYRNhiftVRH3THGZBI1PcX81a5XFY9xQfWa7dLlsfFsiMV2LE1ACtcKl21+8U/hyxGBDa30BpcLz4Usv/Z7bRUJE4Aw2uy4hW7bXu+EPIUkp8ZNb/a04eH+ZiyE6CdMOIpNHwE4iO0HJDa4De5qDWIUaWAAqjKJGxpTAwIRGoDbPSR5dbf5bdQqCpqDmg8gY/g== x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6009001)(39410400002)(39400400002)(39850400002)(39860400002)(25786009)(86362001)(2900100001)(6436002)(53936002)(6506006)(6306002)(55016002)(9686003)(38730400002)(99286003)(50986999)(54356999)(3280700002)(3660700001)(4326008)(2906002)(33656002)(74316002)(7736002)(305945005)(8676002)(102836003)(3846002)(6116002)(8936002)(81166006)(478600001)(189998001)(966005)(5250100002)(5660300001)(7696004)(14454004)(2501003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB3006; H:DBXPR04MB144.eurprd04.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; x-ms-traffictypediagnostic: VI1PR04MB3006: x-ms-office365-filtering-correlation-id: 9b281220-09dc-4a0e-9736-08d4a40d8de1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081); SRVR:VI1PR04MB3006; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(21748063052155); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:VI1PR04MB3006; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB3006; x-forefront-prvs: 031996B7EF spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 26 May 2017 08:02:28.5734 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3006 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: AARCH64 : C Model Small Alignment requirements X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2017 08:02:41 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Edk2 team, We are facing a compilation error in our ARMV8 based NXP board. We are using c model small with GCC49 and GCC5. "WriteSections64(): %s due to its size (> 1 MB), this module requires 4 KB= section alignment." With below GCC options, this error is not observed [BuildOptions] GCC:*_*_AARCH64_CC_FLAGS =3D -mcmodel=3Dsmall + GCC:*_*_AARCH64_DLINK_FLAGS =3D -z common-page-size=3D0x1000 My question is, is this necessary to use page size 4K with c model small ? P.S : This compilation error is not observed with default GCC49/GCC5 option= s (i.e. C Model tiny and Page Size 0x20) Thanks & Regards, Pankaj Bansal