From e1636fe18fb240060fdd8956ccf9e9c7c3ac8205 Mon Sep 17 00:00:00 2001 From: "Ni, Ray" Date: Wed, 2 Jun 2021 16:11:44 +0800 Subject: [PATCH] BaseTools: Update ClangBase.lds to keep dynamic section The .dynamic section is needed for ELF runtime relocation. Signed-off-by: Ray Ni Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Reviewed-by: Liming Gao --- BaseTools/Scripts/ClangBase.lds | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BaseTools/Scripts/ClangBase.lds b/BaseTools/Scripts/ClangBase.lds index 8abd54aee6..61452ddd95 100644 --- a/BaseTools/Scripts/ClangBase.lds +++ b/BaseTools/Scripts/ClangBase.lds @@ -1,8 +1,8 @@ /** @file - Unified linker script for GCC based builds + Unified linker script for CLANG based builds - Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.
+ Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.
Copyright (c) 2015, Linaro Ltd. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
@@ -71,7 +71,6 @@ SECTIONS { *(.interp) *(.dynsym) *(.dynstr) - *(.dynamic) *(.hash .gnu.hash) *(.comment) *(COMMON)