forked from pool/syslinux
0620ccce49
%patchN syntax. - Normalize all patches to apply as -p1 + Rebased remove-note-gnu-section.patch + Rebased sysmacros.patch - Rename all *.diff files to *.patch, aligning one a common suffix: + syslinux-4.04-align.diff -> syslinux-4.04-align.patch + syslinux-4.04-cache_fix.diff -> syslinux-4.04-cache_fix.patch + syslinux-4.04-cwd.diff -> syslinux-4.04-cwd.patch + syslinux-4.04-gcc10.diff -> syslinux-4.04-gcc10.patch + syslinux-4.04-gcc47.diff -> syslinux-4.04-gcc47.patch + syslinux-4.04-geometry.diff -> syslinux-4.04-geometry.patch + syslinux-4.04-iso9660.diff -> syslinux-4.04-iso9660.patch + syslinux-4.04-isohybrid_efi.diff -> syslinux-4.04-isohybrid_efi.patch + syslinux-4.04-isohybrid_efi_optional.diff -> syslinux-4.04-isohybrid_efi_optional.patch + syslinux-4.04-isohybrid_mbr.diff -> syslinux-4.04-isohybrid_mbr.patch + syslinux-4.04-libext2fs.diff -> syslinux-4.04-libext2fs.patch + syslinux-4.04-localboot.diff -> syslinux-4.04-localboot.patch + syslinux-4.04-lzo.diff -> syslinux-4.04-lzo.patch + syslinux-4.04-mboot_bootif.diff -> syslinux-4.04-mboot_bootif.patch + syslinux-4.04-md5pass.diff -> syslinux-4.04-md5pass.patch + syslinux-4.04-miniacc.diff -> syslinux-4.04-miniacc.patch + syslinux-4.04-mtime.diff -> syslinux-4.04-mtime.patch + syslinux-4.04-noinitrd.diff -> syslinux-4.04-noinitrd.patch + syslinux-4.04-nostrip.diff -> syslinux-4.04-nostrip.patch + syslinux-4.04-pie.diff -> syslinux-4.04-pie.patch + syslinux-4.04-python3.diff -> syslinux-4.04-python3.patch + syslinux-4.04-timeout.diff -> syslinux-4.04-timeout.patch OBS-URL: https://build.opensuse.org/package/show/system:install:head/syslinux?expand=0&rev=109
101 lines
2.9 KiB
Diff
101 lines
2.9 KiB
Diff
Index: syslinux-4.04/com32/MCONFIG
|
|
===================================================================
|
|
--- syslinux-4.04.orig/com32/MCONFIG
|
|
+++ syslinux-4.04/com32/MCONFIG
|
|
@@ -18,6 +18,7 @@
|
|
include $(topdir)/MCONFIG
|
|
|
|
GCCOPT := $(call gcc_ok,-std=gnu99,)
|
|
+GCCOPT += $(call gcc_ok,-fcommon,)
|
|
GCCOPT += $(call gcc_ok,-m32,)
|
|
GCCOPT += $(call gcc_ok,-fno-stack-protector,)
|
|
GCCOPT += $(call gcc_ok,-fwrapv,)
|
|
Index: syslinux-4.04/com32/lib/MCONFIG
|
|
===================================================================
|
|
--- syslinux-4.04.orig/com32/lib/MCONFIG
|
|
+++ syslinux-4.04/com32/lib/MCONFIG
|
|
@@ -3,6 +3,7 @@
|
|
include $(topdir)/MCONFIG
|
|
|
|
GCCOPT := $(call gcc_ok,-std=gnu99,)
|
|
+GCCOPT += $(call gcc_ok,-fcommon,)
|
|
GCCOPT += $(call gcc_ok,-m32,)
|
|
GCCOPT += $(call gcc_ok,-fno-stack-protector,)
|
|
GCCOPT += $(call gcc_ok,-fwrapv,)
|
|
Index: syslinux-4.04/dos/errno.h
|
|
===================================================================
|
|
--- syslinux-4.04.orig/dos/errno.h
|
|
+++ syslinux-4.04/dos/errno.h
|
|
@@ -36,7 +36,7 @@
|
|
#define EDOM 33 /* Math argument out of domain of func */
|
|
#define ERANGE 34 /* Math result not representable */
|
|
|
|
-int errno;
|
|
+int errno __attribute__ ((common));
|
|
void perror(const char *);
|
|
|
|
#endif /* ERRNO_H */
|
|
Index: syslinux-4.04/gpxe/src/core/exec.c
|
|
===================================================================
|
|
--- syslinux-4.04.orig/gpxe/src/core/exec.c
|
|
+++ syslinux-4.04/gpxe/src/core/exec.c
|
|
@@ -38,8 +38,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
|
*/
|
|
|
|
/* Avoid dragging in getopt.o unless a command really uses it */
|
|
-int optind;
|
|
-int nextchar;
|
|
+extern int optind;
|
|
+extern int nextchar;
|
|
|
|
/**
|
|
* Execute command
|
|
Index: syslinux-4.04/gpxe/src/include/compiler.h
|
|
===================================================================
|
|
--- syslinux-4.04.orig/gpxe/src/include/compiler.h
|
|
+++ syslinux-4.04/gpxe/src/include/compiler.h
|
|
@@ -64,7 +64,7 @@
|
|
.comm _sym, 0
|
|
#else /* ASSEMBLY */
|
|
#define PROVIDE_SYMBOL( _sym ) \
|
|
- char _sym[0]
|
|
+ char _sym[0] __attribute__ ((common))
|
|
#endif /* ASSEMBLY */
|
|
|
|
/** Require a symbol within this object file
|
|
Index: syslinux-4.04/dos/string.h
|
|
===================================================================
|
|
--- syslinux-4.04.orig/dos/string.h
|
|
+++ syslinux-4.04/dos/string.h
|
|
@@ -5,12 +5,13 @@
|
|
#ifndef _STRING_H
|
|
#define _STRING_H
|
|
|
|
+#include <stdlib.h>
|
|
+
|
|
/* Standard routines */
|
|
#define memcpy(a,b,c) __builtin_memcpy(a,b,c)
|
|
#define memmove(a,b,c) __builtin_memmove(a,b,c)
|
|
#define memset(a,b,c) __builtin_memset(a,b,c)
|
|
#define strcpy(a,b) __builtin_strcpy(a,b)
|
|
-#define strlen(a) __builtin_strlen(a)
|
|
|
|
/* This only returns true or false */
|
|
static inline int memcmp(const void *__m1, const void *__m2, unsigned int __n)
|
|
@@ -21,6 +22,15 @@ static inline int memcmp(const void *__m
|
|
return rv;
|
|
}
|
|
|
|
+static inline size_t strlen(const char *s)
|
|
+{
|
|
+ size_t len = 0;
|
|
+
|
|
+ while(*s++) len++;
|
|
+
|
|
+ return len;
|
|
+}
|
|
+
|
|
extern char *strchr(const char *s, int c);
|
|
|
|
#endif /* _STRING_H */
|