2024-06-21 14:26:32 +02:00
|
|
|
Index: syslinux-4.04/com32/lib/sys/entry.S
|
|
|
|
===================================================================
|
|
|
|
--- syslinux-4.04.orig/com32/lib/sys/entry.S
|
|
|
|
+++ syslinux-4.04/com32/lib/sys/entry.S
|
|
|
|
@@ -92,8 +92,8 @@ _start:
|
2012-05-15 13:32:25 +02:00
|
|
|
pushl %eax # Save argc
|
|
|
|
|
|
|
|
/* Look for library initialization functions */
|
|
|
|
- leal __ctors_start@GOTOFF(%ebx),%esi
|
|
|
|
- leal __ctors_end@GOTOFF(%ebx),%edi
|
|
|
|
+ leal __init_array_start@GOTOFF(%ebx),%esi
|
|
|
|
+ leal __init_array_end@GOTOFF(%ebx),%edi
|
|
|
|
6:
|
|
|
|
cmpl %edi,%esi
|
|
|
|
jae 7f
|
2024-06-21 14:26:32 +02:00
|
|
|
Index: syslinux-4.04/com32/lib/sys/exit.S
|
|
|
|
===================================================================
|
|
|
|
--- syslinux-4.04.orig/com32/lib/sys/exit.S
|
|
|
|
+++ syslinux-4.04/com32/lib/sys/exit.S
|
|
|
|
@@ -17,9 +17,9 @@ _exit:
|
2012-05-15 13:32:25 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Run any destructors */
|
|
|
|
- movl $__dtors_start, %esi
|
|
|
|
+ movl $__fini_array_start, %esi
|
|
|
|
2:
|
|
|
|
- cmpl $__dtors_end, %esi
|
|
|
|
+ cmpl $__fini_array_end, %esi
|
|
|
|
jae 1f
|
|
|
|
call *(%esi)
|
|
|
|
addl $4,%esi
|