[syslinux] boot... round 2
Sebastian Herbszt
herbszt at gmx.de
Sat Jul 4 15:23:41 PDT 2015
Gene Cumm wrote:
> On Jul 3, 2015 4:42 PM, "Thomas Schmitt via Syslinux"
> <syslinux at zytor.com> wrote:
> > One should create a possibility to dump the SYSAPPEND
> > strings. There is a function
> > ./core/sysappend.c:void print_sysappend(void)
> > but i cannot spot any occasion where it gets called.
>
> A simple COM32.
>
> --
> -Gene
diff --git a/com32/samples/Makefile b/com32/samples/Makefile
index 06e9684..816b073 100644
--- a/com32/samples/Makefile
+++ b/com32/samples/Makefile
@@ -23,7 +23,7 @@ all: hello.c32 resolv.c32 serialinfo.c32 \
localboot.c32 \
fancyhello.c32 fancyhello.lnx \
keytest.c32 keytest.lnx \
- advdump.c32 entrydump.c32
+ advdump.c32 entrydump.c32 sysappend.c32
tidy dist:
rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
diff --git a/com32/samples/sysappend.c b/com32/samples/sysappend.c
new file mode 100644
index 0000000..fe3d4c6
--- /dev/null
+++ b/com32/samples/sysappend.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int main(int argc __unused, char **argv __unused)
+{
+ print_sysappend();
+
+ return 0;
+}
diff --git a/core/sysappend.c b/core/sysappend.c
index 758703e..3fe4ea6 100644
--- a/core/sysappend.c
+++ b/core/sysappend.c
@@ -126,7 +126,7 @@ void sysappend_set_fs_uuid(void)
/*
* Print the sysappend strings, in order
*/
-void print_sysappend(void)
+__export void print_sysappend(void)
{
int i;
--
2.2.0
More information about the Syslinux
mailing list