Skip to content

Commit

Permalink
efi: Export __bcopyxx_len
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Matt Fleming committed Jun 21, 2013
1 parent c32bd01 commit 013ef76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/include/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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];

Expand Down
1 change: 1 addition & 0 deletions efi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 013ef76

Please sign in to comment.