From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.20; helo=mga02.intel.com; envelope-from=hong-chihx.hsueh@intel.com; receiver=edk2-devel@lists.01.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 28E14210D9791 for ; Mon, 28 Jan 2019 10:46:22 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jan 2019 10:46:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,534,1539673200"; d="scan'208";a="138567218" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga002.fm.intel.com with ESMTP; 28 Jan 2019 10:46:21 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 28 Jan 2019 10:46:21 -0800 Received: from fmsmsx107.amr.corp.intel.com ([169.254.6.186]) by FMSMSX157.amr.corp.intel.com ([169.254.14.168]) with mapi id 14.03.0415.000; Mon, 28 Jan 2019 10:46:21 -0800 From: "Hsueh, Hong-chihX" To: Laszlo Ersek , "edk2-devel@lists.01.org" CC: "Kinney, Michael D" , "Bi, Dandan" , "Gao, Liming" Thread-Topic: [edk2] [PATCH] MdePkg/BasePeCoffLib: skip runtime relocation if relocation info is invalid. Thread-Index: AQHUtDspfgEZRaQVekeXy9cSDTSHm6XAOGOAgATRaPA= Date: Mon, 28 Jan 2019 18:46:21 +0000 Message-ID: <1F8AF101AC6B5D47B4348ACCED214431CA59D903@fmsmsx107.amr.corp.intel.com> References: <20190124231819.2352-1-hong-chihx.hsueh@intel.com> <074d40da-f8e4-cd0b-1993-4b8d2c01e507@redhat.com> In-Reply-To: <074d40da-f8e4-cd0b-1993-4b8d2c01e507@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGY2ODI3YWUtNzJmNy00N2FmLWEzMDktZmYyMGJlZDQwMTkyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUlNmM1lcL2p0TnBVQjNKb1VqeDhMZUJXOW16RlB0WWxJTGZrZjRERFlPV1R6MlFSYzl4WE4yclF0QmpFaFFTY28ifQ== x-originating-ip: [10.1.200.106] MIME-Version: 1.0 Subject: Re: [PATCH] MdePkg/BasePeCoffLib: skip runtime relocation if relocation info is invalid. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2019 18:46:24 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkgTGFzemxvLA0KVGhhbmsgeW91IGZvciB5b3VyIGNvbW1lbnQuDQpJJ3ZlIHNlbnQgYW4gdXBk YXRlZCBwYXRjaCBmb3IgcmV2aWV3Lg0KaHR0cHM6Ly9saXN0cy4wMS5vcmcvcGlwZXJtYWlsL2Vk azItZGV2ZWwvM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