[syslinux:firmware] efi: Export __bcopyxx_len

syslinux-bot for Matt Fleming matt.fleming at intel.com
Fri Jun 21 02:39:05 PDT 2013


Commit-ID:  013ef7679a573b3b3454f914f3a7f865991db9f2
Gitweb:     http://www.syslinux.org/commit/013ef7679a573b3b3454f914f3a7f865991db9f2
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Fri, 21 Jun 2013 08:13:16 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Fri, 21 Jun 2013 08:13:16 +0100

efi: Export __bcopyxx_len

We need to provide a __bcopyxx_len symbol for EFI because it's
referenced in generic code in libcom32.c32. Without this change,
libcom32.c32 will fail to load under EFI.

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 core/include/core.h | 2 +-
 efi/main.c          | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/include/core.h b/core/include/core.h
index 5736d39..127ac65 100644
--- a/core/include/core.h
+++ b/core/include/core.h
@@ -26,6 +26,7 @@ extern char cmd_line[];
 extern char ConfigFile[];
 extern char syslinux_banner[];
 extern char copyright_str[];
+extern unsigned int __bcopyxx_len;
 
 /*
  * Mark symbols that are only used by BIOS as __weak until we can move
@@ -35,7 +36,6 @@ extern char copyright_str[];
 extern __weak uint16_t BIOSName;
 extern __weak char KernelName[];
 extern __weak char StackBuf[];
-extern __weak unsigned int __bcopyxx_len;
 
 extern uint8_t KbdMap[256];
 
diff --git a/efi/main.c b/efi/main.c
index 438e88c..51ff9f3 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -153,6 +153,7 @@ void pxenv(void)
 uint16_t BIOS_fbm = 1;
 far_ptr_t InitStack;
 far_ptr_t PXEEntry;
+__export unsigned int __bcopyxx_len = 0;
 
 void gpxe_unload(void)
 {


More information about the Syslinux-commits mailing list