From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::544; helo=mail-ed1-x544.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) (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 1CF36209831C6 for ; Thu, 6 Sep 2018 06:45:40 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id l5so8936087edw.9 for ; Thu, 06 Sep 2018 06:45:40 -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=Kw17U6wSatNJg6bOfUyuQnLxMhWrItUPHY7J+9nNziY=; b=Cx2lokYziXR2Yg6PL+4PCntmbNO0o48XNsG9XZRwllFeUzj+92gGtLGa9UM+t2c2OV FD8/sRTYAQfjMtVa9KOKqjLCd6HYqxPTl6F66m89MXzFG6IJig0xGxsWjvGg72uZEQgq UwBaqhGpxjBqsJnoeVNX/Sro/YxyynfWpYPWo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Kw17U6wSatNJg6bOfUyuQnLxMhWrItUPHY7J+9nNziY=; b=RyZ1jAmSurCO3a2Ku6KQI1lbDAEYaLjS38CZ1VaiiUC2xKTZWoKCHcaPD6TiTup/pY EBhvqW2UgBkhwfYbKt/bnTVhsifLeRABs6JiPd3IRTSQUwJcC7U+KrTUQ8FeGbRFj0WD DKKlPMNX7AWfp2HF3ME36zTpT4Jo+UEkcwrtreo7/BJTzKmmBC76dfEFASmEAI4YHFrQ iG6xafHpHbT2MXbgvGWL8LSl8wRTHZyM/lOqG7izjRXBpmGCbJb1f6L9AOSR6GDd+yTm 7/QJGqOg8hmL8dOsadNfIjm8mP/Zsoax9DzIwj/PWpWBUqeHpx40GAQ5H+kpbtlxp+zw CW/g== X-Gm-Message-State: APzg51BS7atejxkwodJBG4HNio7B2CjJ8VnMb8DRenKljMmPrM2HfmPz 4n+cOKhNdcQHKaFFrfLSBE3u0ZyGgK+/umag X-Google-Smtp-Source: ANB0VdaID3pLduTaJ7foASUXVHwrCBU92EKI4R74ozFYZcYUi+F74yB1YBI0jlsNHKQLfBNQeG7YjQ== X-Received: by 2002:a50:fb8f:: with SMTP id e15-v6mr3542329edq.153.1536241538769; Thu, 06 Sep 2018 06:45:38 -0700 (PDT) Received: from rev02.home ([2a02:a212:9283:9800:24b9:e2d6:9acc:50dd]) by smtp.gmail.com with ESMTPSA id l48-v6sm2818764eda.94.2018.09.06.06.45.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 06:45:37 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: Ard Biesheuvel , Star Zeng , Jian J Wang , Michael D Kinney , Liming Gao , Chao Zhang , Jiewen Yao , Laszlo Ersek , Leif Lindholm Date: Thu, 6 Sep 2018 15:45:19 +0200 Message-Id: <20180906134523.2036-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.18.0 Subject: [PATCH 0/4] remove all 11 occurrences of ELILO on IPF PE/COFF header hack 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: Thu, 06 Sep 2018 13:45:41 -0000 Now that Itanium support has been dropped from EDK2, we can remove all 11 (!) occurrences of the ELILO PE/COFF loader hack from the code base. Note that SecurityPkg appears to have four mostly identical implementations of the PE/COFF measuring routine, so this may be another area for cleanup later. Link: https://bugzilla.tianocore.org/show_bug.cgi?id=816 Cc: Star Zeng Cc: Jian J Wang Cc: Michael D Kinney Cc: Liming Gao Cc: Chao Zhang Cc: Jiewen Yao Cc: Laszlo Ersek Cc: Leif Lindholm Ard Biesheuvel (4): MdeModulePkg: remove PE/COFF header workaround for ELILO on IPF MdePkg/BasePeCoffLib: remove PE/COFF header workaround for ELILO on IPF SecurityPkg: remove PE/COFF header workaround for ELILO on IPF EdkCompatibilityPkg: remove PE/COFF header workaround for ELILO on IPF .../Library/BasePeCoffLib/BasePeCoff.c | 60 +++--------------- .../Core/Dxe/Mem/MemoryProfileRecord.c | 31 +--------- MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 17 +----- MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c | 17 +----- .../Core/PiSmmCore/MemoryAttributesTable.c | 17 +----- .../Core/PiSmmCore/SmramProfileRecord.c | 31 +--------- MdePkg/Library/BasePeCoffLib/BasePeCoff.c | 61 +++---------------- .../DxeImageVerificationLib.c | 47 +++----------- .../DxeTpmMeasureBootLib.c | 27 ++------ SecurityPkg/Tcg/Tcg2Dxe/MeasureBootPeCoff.c | 27 ++------ .../SecureBootConfigImpl.c | 25 ++------ 11 files changed, 47 insertions(+), 313 deletions(-) -- 2.18.0