[PATCH v2 5/6] BaseTools: Update ClangBase.lds to keep dynamic section


Ni, Ray
 

The .dynamic section is needed for ELF runtime relocation.

Signed-off-by: Ray Ni <ray.ni@...>
Cc: Bob Feng <bob.c.feng@...>
Cc: Liming Gao <gaoliming@...>
Cc: Yuwei Chen <yuwei.chen@...>
---
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=0D
=0D
- Unified linker script for GCC based builds=0D
+ Unified linker script for CLANG based builds=0D
=0D
- Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>=0D
+ Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.<BR>=0D
Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR>=0D
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>=0D
=0D
@@ -71,7 +71,6 @@ SECTIONS {
*(.interp)=0D
*(.dynsym)=0D
*(.dynstr)=0D
- *(.dynamic)=0D
*(.hash .gnu.hash)=0D
*(.comment)=0D
*(COMMON)=0D
--=20
2.31.1.windows.1

Join devel@edk2.groups.io to automatically receive all group messages.