From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web10.1947.1574394577501422199 for ; Thu, 21 Nov 2019 19:49:37 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0229d066a2=abner.chang@hpe.com) Received: from pps.filterd (m0134422.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xAM3foap025757; Fri, 22 Nov 2019 03:49:36 GMT Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0b-002e3701.pphosted.com with ESMTP id 2we517s1f7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Nov 2019 03:49:36 +0000 Received: from G2W6311.americas.hpqcorp.net (g2w6311.austin.hp.com [16.197.64.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2353.austin.hpe.com (Postfix) with ESMTPS id BCF9194; Fri, 22 Nov 2019 03:49:34 +0000 (UTC) Received: from G9W8676.americas.hpqcorp.net (16.220.49.23) by G2W6311.americas.hpqcorp.net (16.197.64.53) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 22 Nov 2019 03:49:34 +0000 Received: from G9W9209.americas.hpqcorp.net (2002:10dc:429c::10dc:429c) by G9W8676.americas.hpqcorp.net (2002:10dc:3117::10dc:3117) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 22 Nov 2019 03:49:13 +0000 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (15.241.52.12) by G9W9209.americas.hpqcorp.net (16.220.66.156) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Fri, 22 Nov 2019 03:49:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yf9ZCzCodrtzX/UF/MuU40x9PjoX2eIFUOau2Ql/nKsd2A4xpL9o97qTgMFiA4rAZpxgErhyi2plnjhf+4BqPO21GQLizBc3XX+SWMNlvBOlreNlTsOET+wcy04EwxFGQEwG5gZ4uIt0ajXX46viASZuyMFQsG/H5EekM578w5LXS0KlCs8CMbYZLoJxUmlMhKq0vFWSPJEjGsAbHoA3BTnVE5LmuG13M+vNPiQT8dz0DkUDUhicZGAnRgbUGOy4uJHYNLaVHOB2m76WCZWNnYEtnAziM158ST2n6X41HCT1VhdNDmfNGjT71ynfqJM2vdObbf3cxv2FZIzlsMcFCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Et7yng2VhgeAfcKmOqn0mCn47YqCLld8HTnKtQUT7Xs=; b=TyGjiozEUAjAp1vhKqDzWgd0dPIo3L5BOmyvfBSy8FvamnPEYb1QOhEPJWy47YlPm3fMlI1h8aF/7om+oAsnOUBrMKNYbuIHk5dY0+X5qhcd6KdDiy+9EOC8sqHcduXodvFQwLopLZZEb8rS7JcmvDBFXfPrdTbLpMK59OjSOdmfTnkAHUz9+hkDCI6HX143v4Nfu2vUGznKL+N6m4ffn5jSeN+Fl/8IunUv0vPxYP9FZW3NPehkzm/hMzNXcM9M1UupDiKjZRD/FfhXSUTPcyACxAHNk2tlLGyaLbcDhx9OfS0vYq/Hwy1KI2BLovLe/dcWwcoEEZE5F/tMdbPYPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM (10.169.12.151) by CS1PR8401MB0920.NAMPRD84.PROD.OUTLOOK.COM (10.169.24.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.17; Fri, 22 Nov 2019 03:49:11 +0000 Received: from CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM ([fe80::b49a:cecb:54b0:29ac]) by CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM ([fe80::b49a:cecb:54b0:29ac%7]) with mapi id 15.20.2474.018; Fri, 22 Nov 2019 03:49:11 +0000 From: "Abner Chang" To: Leif Lindholm CC: "devel@edk2.groups.io" , Bob Feng , Liming Gao , "Chen, Gilbert" Subject: Re: [edk2-staging/RISC-V-V2 PATCH v3 25/39] BaseTools/Scripts Thread-Topic: [edk2-staging/RISC-V-V2 PATCH v3 25/39] BaseTools/Scripts Thread-Index: AQHVjTfqOJkIQsNY10SEQz/YRpN2nqeV/s+AgAC2IPA= Date: Fri, 22 Nov 2019 03:49:11 +0000 Message-ID: References: <1572227957-13169-1-git-send-email-abner.chang@hpe.com> <1572227957-13169-26-git-send-email-abner.chang@hpe.com> <20191121165631.GN7359@bivouac.eciton.net> In-Reply-To: <20191121165631.GN7359@bivouac.eciton.net> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [16.242.247.131] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: c929124b-f2d1-4e7c-0888-08d76efeef6e x-ms-traffictypediagnostic: CS1PR8401MB0920: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 02296943FF x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(39860400002)(396003)(136003)(366004)(13464003)(199004)(189003)(6506007)(478600001)(52536014)(81166006)(6916009)(99286004)(66446008)(6436002)(33656002)(2906002)(81156014)(186003)(74316002)(25786009)(305945005)(64756008)(3846002)(316002)(14454004)(86362001)(7736002)(66946007)(66556008)(66476007)(76116006)(229853002)(53546011)(8676002)(446003)(11346002)(54906003)(66066001)(6116002)(55016002)(4326008)(71200400001)(71190400001)(256004)(6246003)(7696005)(102836004)(5660300002)(76176011)(26005)(8936002)(9686003);DIR:OUT;SFP:1102;SCL:1;SRVR:CS1PR8401MB0920;H:CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: V9JunKt2YZvG9dJlyXy4D1WHfHdSNC0BNXyiXXVRapypy7Yke1surwSN8IzQeeRmRgD3qVOJg+xBScxl7YTSI5bxIlcYgCaEwxEDaG/nGdb/4zd7r/BQAejFDdEURKfJGLtY24jN+87gRmGGVVZr75WPCwvzFxeYQHFgFFDcPvy8bEv7QeAygOV6jQKeYf2usNBDRbefbM37IE5AoF/6SkI8hXJjh79lrogF9A/I1TqSkL4yl6Wt2rLEdnnd5d1Oq1qbRUbNZ5kawVD55tpEFmTm6Rw6Ci7LdoTc9UxnbZsDvym9h0hh/OciCvyh3Btmu7BzgyvhZz2KNonPnlc2vzMGuGZKi6oNLUHIyCI794Gx109UXSgxyP4obZH7M3PMKNKvBlMHZibI28rFVDmKdcZycjQmr/flxJTwURNmSZgYuWuI4MG8ZuJhsMD+nZIJ X-MS-Exchange-CrossTenant-Network-Message-Id: c929124b-f2d1-4e7c-0888-08d76efeef6e X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2019 03:49:11.2499 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: t40QcZRcSZhMON4FbjZtcV8T4fGcJhmVYVc/IHJBz024hnPPq/yxiztY8gyMQvtFOsiBhUg2TkrMMzgahBYXXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0920 X-OriginatorOrg: hpe.com X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-21_07:2019-11-21,2019-11-21 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 adultscore=0 mlxlogscore=849 bulkscore=0 mlxscore=0 malwarescore=0 suspectscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1911220032 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Yes. GccBaseRiscV has been killed. No more. ;) > -----Original Message----- > From: Leif Lindholm [mailto:leif.lindholm@linaro.org] > Sent: Friday, November 22, 2019 12:57 AM > To: Chang, Abner (HPS SW/FW Technologist) > Cc: devel@edk2.groups.io; Bob Feng ; Liming Gao > ; Chen, Gilbert > Subject: Re: [edk2-staging/RISC-V-V2 PATCH v3 25/39] BaseTools/Scripts >=20 > On Mon, Oct 28, 2019 at 09:59:03 +0800, Abner Chang wrote: > > Add RISC-V specific LD scripts. ."rela(INFO)" in the latest > > GccBase.lds causes PE32 relocation error. > > This is the temporaty solution untill we find the root casue. >=20 > And it can go now, right? >=20 > / > Leif >=20 > > Signed-off-by: Abner Chang > > > > Cc: Bob Feng > > Cc: Liming Gao > > Cc: Leif Lindholm > > Cc: Gilbert Chen > > --- > > BaseTools/Scripts/GccBaseRiscV.lds | 79 > > ++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 79 insertions(+) > > create mode 100644 BaseTools/Scripts/GccBaseRiscV.lds > > > > diff --git a/BaseTools/Scripts/GccBaseRiscV.lds > > b/BaseTools/Scripts/GccBaseRiscV.lds > > new file mode 100644 > > index 0000000..91937aa > > --- /dev/null > > +++ b/BaseTools/Scripts/GccBaseRiscV.lds > > @@ -0,0 +1,79 @@ > > +/** @file > > + > > + Unified linker script for GCC based builds > > + > > + Copyright (c) 2010 - 2015, Intel Corporation. All rights > > + reserved.
Copyright (c) 2015, Linaro Ltd. All rights > > + reserved.
Copyright (c) 2019, Hewlett Packard Enterprise > > + Development LP. All rights reserved.
> > + > > + SPDX-License-Identifier: BSD-2-Clause-Patent > > + > > +**/ > > + > > +SECTIONS { > > + > > + /* > > + * The PE/COFF binary consists of DOS and PE/COFF headers, and a > sequence of > > + * section headers adding up to PECOFF_HEADER_SIZE bytes (which > differs > > + * between 32-bit and 64-bit builds). The actual start of the .text = section > > + * will be rounded up based on its actual alignment. > > + */ > > + . =3D PECOFF_HEADER_SIZE; > > + > > + .text : ALIGN(CONSTANT(COMMONPAGESIZE)) { > > + *(.text .text.* .stub .gnu.linkonce.t.*) > > + *(.rodata .rodata.* .gnu.linkonce.r.*) > > + *(.got .got.*) > > + > > + /* > > + * The contents of AutoGen.c files are mostly constant from the PO= V of > the > > + * program, but most of it ends up in .data or .bss by default sin= ce few > of > > + * the variable definitions that get emitted are declared as CONST. > > + * Unfortunately, we cannot pull it into the .text section entirel= y, since > > + * patchable PCDs are also emitted here, but we can at least move = all of > the > > + * emitted GUIDs here. > > + */ > > + *:AutoGen.obj(.data.g*Guid) > > + } > > + > > + /* > > + * The alignment of the .data section should be less than or equal t= o the > > + * alignment of the .text section. This ensures that the relative of= fset > > + * between these sections is the same in the ELF and the PE/COFF > versions of > > + * this binary. > > + */ > > + .data ALIGN(ALIGNOF(.text)) : ALIGN(CONSTANT(COMMONPAGESIZE)) > { > > + *(.data .data.* .gnu.linkonce.d.*) > > + *(.bss .bss.*) > > + } > > + > > + .eh_frame ALIGN(CONSTANT(COMMONPAGESIZE)) : { > > + KEEP (*(.eh_frame)) > > + } > > + > > + .rela ALIGN(CONSTANT(COMMONPAGESIZE)) : { > > + *(.rela .rela.*) > > + } > > + > > + .hii : ALIGN(CONSTANT(COMMONPAGESIZE)) { > > + KEEP (*(.hii)) > > + } > > + > > + /* > > + * Retain the GNU build id but in a non-allocatable section so GenFw > > + * does not copy it into the PE/COFF image. > > + */ > > + .build-id (INFO) : { *(.note.gnu.build-id) } > > + > > + /DISCARD/ : { > > + *(.note.GNU-stack) > > + *(.gnu_debuglink) > > + *(.interp) > > + *(.dynsym) > > + *(.dynstr) > > + *(.dynamic) > > + *(.hash .gnu.hash) > > + *(.comment) > > + *(COMMON) > > + } > > +} > > -- > > 2.7.4 > >