2024-06-21 14:26:32 +02:00
|
|
|
Index: syslinux-4.04/core/fs/iso9660/iso9660.c
|
|
|
|
===================================================================
|
|
|
|
--- syslinux-4.04.orig/core/fs/iso9660/iso9660.c
|
|
|
|
+++ syslinux-4.04/core/fs/iso9660/iso9660.c
|
|
|
|
@@ -228,14 +228,25 @@ static int iso_readdir(struct file *file
|
2011-04-18 18:02:08 +02:00
|
|
|
/* Load the config file, return 1 if failed, or 0 */
|
|
|
|
static int iso_load_config(void)
|
|
|
|
{
|
|
|
|
- static const char *search_directories[] = {
|
|
|
|
- "/boot/isolinux",
|
|
|
|
- "/isolinux",
|
|
|
|
- "/boot/syslinux",
|
|
|
|
- "/syslinux",
|
|
|
|
- "/",
|
|
|
|
- NULL
|
|
|
|
- };
|
|
|
|
+ /*
|
|
|
|
+ * Put search_directories[] to different section so it
|
|
|
|
+ * won't be compressed (and we can patch it later).
|
|
|
|
+ */
|
|
|
|
+ __asm__(
|
|
|
|
+ ".section .data16\n"
|
|
|
|
+ ".s1: .ascii \"/boot\"\n"
|
|
|
|
+ ".s2: .string \"/isolinux\"\n"
|
|
|
|
+ ".fill 64, 1, 0\n"
|
|
|
|
+ ".s3: .ascii \"/boot\"\n"
|
|
|
|
+ ".s4: .string \"/syslinux\"\n"
|
|
|
|
+ ".s5: .string \"/\"\n"
|
|
|
|
+ ".align 4\n"
|
|
|
|
+ "search_directories:\n"
|
|
|
|
+ ".long .s1, .s2, .s3, .s4, .s5, 0\n"
|
|
|
|
+ ".text\n"
|
|
|
|
+ );
|
|
|
|
+ extern const char *search_directories[];
|
|
|
|
+
|
|
|
|
static const char *filenames[] = {
|
|
|
|
"isolinux.cfg",
|
|
|
|
"syslinux.cfg",
|