aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-01-21 14:16:12 +0000
committerMatt Fleming <matt.fleming@intel.com>2013-01-21 14:16:12 +0000
commit13dfb1d1629900c39bb10515b41115a07a9e230f (patch)
tree8a4cb784cb16270dd6f6778190dfc4fa9e1b74ee
parent238ca24e867c74aabe97544b35b8dabb3dc26594 (diff)
downloadsyslinux-13dfb1d1629900c39bb10515b41115a07a9e230f.tar.gz
syslinux-13dfb1d1629900c39bb10515b41115a07a9e230f.tar.xz
syslinux-13dfb1d1629900c39bb10515b41115a07a9e230f.zip
pxe: Add PXELINUX-specific symbols to symbol whitelist
We need to allow PXELINUX to link with required symbols at runtime otherwise, when executing prdhcp.c32, the user will be presented with the following message, Error: An undefined symbol was referenced Add pxe_call, dns_resolv and unload_pxe to the symbol whitelist. Reported-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--core/fs/pxe/dnsresolv.c2
-rw-r--r--core/fs/pxe/pxe.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/fs/pxe/dnsresolv.c b/core/fs/pxe/dnsresolv.c
index fda0f815..184bacbd 100644
--- a/core/fs/pxe/dnsresolv.c
+++ b/core/fs/pxe/dnsresolv.c
@@ -170,7 +170,7 @@ static char *dns_skiplabel(char *label)
*
* XXX: probably need some caching here.
*/
-uint32_t dns_resolv(const char *name)
+__export uint32_t dns_resolv(const char *name)
{
static char __lowmem DNSSendBuf[PKTBUF_SIZE];
static char __lowmem DNSRecvBuf[PKTBUF_SIZE];
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index 11270044..ae44cffe 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -254,7 +254,7 @@ static const char *parse_dotquad(const char *ip_str, uint32_t *res)
* the ASM pxenv function wrapper, return 1 if error, or 0
*
*/
-int pxe_call(int opcode, void *data)
+__export int pxe_call(int opcode, void *data)
{
extern void pxenv(void);
com32sys_t regs;
@@ -1656,7 +1656,7 @@ int reset_pxe(void)
* This function unloads the PXE and UNDI stacks and
* unclaims the memory.
*/
-void unload_pxe(uint16_t flags)
+__export void unload_pxe(uint16_t flags)
{
/* PXE unload sequences */
static const uint8_t new_api_unload[] = {