From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=01703bcc39=abner.chang@hpe.com) Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by groups.io with SMTP; Mon, 23 Sep 2019 19:02:27 -0700 Received: from pps.filterd (m0134425.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8O1uteP014773 for ; Tue, 24 Sep 2019 02:02:26 GMT Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 2v72b5eq19-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 24 Sep 2019 02:02:26 +0000 Received: from G9W8456.americas.hpqcorp.net (exchangepmrr1.us.hpecorp.net [16.216.161.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3425.houston.hpe.com (Postfix) with ESMTPS id C3C0C8D for ; Tue, 24 Sep 2019 02:02:25 +0000 (UTC) Received: from G4W9120.americas.hpqcorp.net (2002:10d2:150f::10d2:150f) by G9W8456.americas.hpqcorp.net (2002:10d8:a15f::10d8:a15f) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 24 Sep 2019 02:02:25 +0000 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (15.241.52.11) by G4W9120.americas.hpqcorp.net (16.210.21.15) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 24 Sep 2019 02:02:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A40ikUSYW+DGWKFV+PcLqgGixUvUc0Zf6bNGML2tZ6RDijCetPJaeJkoiTeRH7jZctid1U8alA+nUDP9VybrSKh4VQrLs3m01mhGLuPHDGsOZmxfkfIYZZuVkuQ5TxA1dmFQM6px8ehhQ3K0FGk1wn5z1YqSVLs/EFuqNhJtCSittliSOHa6tgTH5yST5/wIjmsxSlRv9mwgGgb4v+rq+fxcG8FOP638dszxEg4ExajRrhSvtE8+VgTSqRSTIuAG0hQUYijoOEW6TO1GQWDq92MOzbyKgQUoLGds23g525LritwRDfpCvHNLRzZG6SAEORFdSIrjx2ygzgiPRWOq4w== 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=UXli26PaMokSRI5yjkxSBQKzkIXsG1ofLT2SOWb9DC4=; b=AfnTzcETnrwjOG6p4X4A8E/voxwTCFDlgn1+GgT8t6X40Yh1isrGsuqCOwyz2UcYdYzniB+m+tZmwz8Y4KOwDZAnSJNMMFoJUP7j/pobnayFFDjXJayAL5i+Qc71QnVXUaxlApeQof/NKXu+F4K3BQoFTeFiS7uuYTSd2T05a6rwXuLXuht8yAEHk7UDhabgKbkA0+sTkKcGbd7ttM1gw/xoNbdAL43kpkwH13gZNLig4WuRBNP2ff/wcyCBrStJF7H2I6VddzzaiImV8vOeYew4wbwkG49+6wxdNaXXpbG3QVhS8GQaIVfx2WdkhgWi14Gsc+vvQDGcyYBfTnTYOw== 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 CS1PR8401MB1319.NAMPRD84.PROD.OUTLOOK.COM (10.169.12.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.26; Tue, 24 Sep 2019 02:02:23 +0000 Received: from CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM ([fe80::4fb:84b9:76e6:1cde]) by CS1PR8401MB1192.NAMPRD84.PROD.OUTLOOK.COM ([fe80::4fb:84b9:76e6:1cde%8]) with mapi id 15.20.2284.023; Tue, 24 Sep 2019 02:02:23 +0000 From: "Abner Chang" To: "devel@edk2.groups.io" , "Chang, Abner (HPS SW/FW Technologist)" CC: Liming Gao , Bob Feng Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 25/29] BaseTools/Scripts Thread-Topic: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 25/29] BaseTools/Scripts Thread-Index: AQHVcaq54rK84o6LxEOB8uf0wP2uzqc6FMNA Date: Tue, 24 Sep 2019 02:02:23 +0000 Message-ID: References: <1569198715-31552-1-git-send-email-abner.chang@hpe.com> <15C6EB9F04387439.29693@groups.io> In-Reply-To: <15C6EB9F04387439.29693@groups.io> 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-correlation-id: b4c55c2f-8a1a-4771-db96-08d740933de3 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:CS1PR8401MB1319; x-ms-traffictypediagnostic: CS1PR8401MB1319: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2000; x-forefront-prvs: 0170DAF08C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(136003)(39860400002)(366004)(376002)(346002)(13464003)(199004)(189003)(9686003)(5660300002)(99286004)(76176011)(86362001)(26005)(102836004)(6506007)(7696005)(53546011)(3846002)(6116002)(71190400001)(186003)(81156014)(33656002)(8676002)(66946007)(81166006)(446003)(2906002)(476003)(66476007)(66446008)(64756008)(66556008)(2501003)(52536014)(71200400001)(486006)(11346002)(4326008)(6246003)(74316002)(966005)(8936002)(54906003)(76116006)(25786009)(14454004)(7736002)(110136005)(316002)(19627235002)(478600001)(66066001)(6436002)(229853002)(6306002)(256004)(55016002)(305945005);DIR:OUT;SFP:1102;SCL:1;SRVR:CS1PR8401MB1319;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-message-info: kHhbtRdfML/dmfC3A4Rg2qILN/mp8dIjl3XC28JtUA5cxTl+QyIA4VJFmy292Wn/kC4xVpRscVKMPBdvRdY7b5bvBmfjKTcG25NFgAbxuq4cdymHBPB82r1jVYXaRkNwsReRU2HTITxubo90bHggJoxTLFcvUDaHssG3eEs/LAqYh17RH0qD5PHkzKt3j7DCmO3SIwSo8GMgnU8S/C8sPqJFRfkSfF5qj6I7VXOHzQlOzmRVdsfMcIxo2hmzPqcbtuO0/4I/93E4x+wQ7xxNv+adBIAqWUpqCaXR2qZ4PEKtYStSPNC4+SVAoGs++Ng/6h8Nl3WExmNzI/XZHLUkxe9EloWw6L+KdPxSiyOVXPGsirqiGSaVkt2hjRBBhRf3JazaOgKXAYBaYpp9ZyZdfgEkjNIMooRqzE4m7zkbzaQ= X-MS-Exchange-CrossTenant-Network-Message-Id: b4c55c2f-8a1a-4771-db96-08d740933de3 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2019 02:02:23.7458 (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: 2q8G4hyVTPvJLHUAf035DEqNHyzigzFKiICmVxAEiW20ByWGWu1GQbv86nTygyL4cARgkTAW96RhQgBpgC30DA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB1319 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,1.0.8 definitions=2019-09-23_10:2019-09-23,2019-09-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 adultscore=0 mlxlogscore=999 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1909240018 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Add maintainers > -----Original Message----- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > Abner Chang > Sent: Monday, September 23, 2019 8:32 AM > To: devel@edk2.groups.io > Cc: Chang, Abner (HPS SW/FW Technologist) > Subject: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 25/29] > BaseTools/Scripts >=20 > 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 > Signed-off-by: Abner Chang > --- > BaseTools/Scripts/GccBaseRiscV.lds | 66 > ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 66 insertions(+) > create mode 100644 BaseTools/Scripts/GccBaseRiscV.lds >=20 > diff --git a/BaseTools/Scripts/GccBaseRiscV.lds > b/BaseTools/Scripts/GccBaseRiscV.lds > new file mode 100644 > index 0000000..7f9fae6 > --- /dev/null > +++ b/BaseTools/Scripts/GccBaseRiscV.lds > @@ -0,0 +1,66 @@ > +/** @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 diffe= rs > + * between 32-bit and 64-bit builds). The actual start of the .text s= ection > + * 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 constant from the POV of the > program, > + * but most of its contents end up in .data or .bss by default sinc= e few of > + * the variable definitions that get emitted are declared as CONST. > + */ > + *:AutoGen.obj(.data.g*Guid) > + } > + > + /* > + * The alignment of the .data section should be less than or equal to= the > + * alignment of the .text section. This ensures that the relative off= set > + * between these sections is the same in the ELF and the PE/COFF vers= ions > 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.*) > + } > + > + /DISCARD/ : { > + *(.note.GNU-stack) > + *(.gnu_debuglink) > + *(.interp) > + *(.dynsym) > + *(.dynstr) > + *(.dynamic) > + *(.hash) > + *(.comment) > + *(COMMON) > + } > +} > -- > 2.7.4 >=20 >=20 >=20