Reviewed-by: Yonghong Zhu <[email protected]> Best Regards, Zhu Yonghong
-----Original Message----- From: Thomas Palmer [mailto:[email protected]] Sent: Thursday, July 21, 2016 10:07 AM To: [email protected] Cc: Zhu, Yonghong <[email protected]>; Gao, Liming <[email protected]>; [email protected]; [email protected]; [email protected]; Thomas Palmer <[email protected]> Subject: [PATCH v2] [BaseTools/Scripts]: Preserve hii section in GCC binaries This change keeps the .hii sections in GCC built binaries. Please refer to email thread titled "[edk2] HII gEfiHiiPackageListProtocolGuid problem with GCC48 (VS2012x86 works)" As this is the first time I've ever touched a GCC linker script, please feel free to send feedback Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Thomas Palmer <[email protected]> --- BaseTools/Scripts/GccBase.lds | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BaseTools/Scripts/GccBase.lds b/BaseTools/Scripts/GccBase.lds index 32310bc..7e4cdde 100644 --- a/BaseTools/Scripts/GccBase.lds +++ b/BaseTools/Scripts/GccBase.lds @@ -4,6 +4,7 @@ Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR> Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR> + (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. @@ -57,6 +58,10 @@ SECTIONS { *(.rela .rela.*) } + .hii : ALIGN(CONSTANT(COMMONPAGESIZE)) { + KEEP (*(.hii)) + } + /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) -- 1.9.1 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

