SHA256
1
0
forked from pool/syslinux

Accepting request 121068 from system:install:head

- gcc47 fix: use .init_array section instead of .ctors

OBS-URL: https://build.opensuse.org/request/show/121068
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/syslinux?expand=0&rev=41
This commit is contained in:
Stephan Kulow 2012-05-16 19:10:33 +00:00 committed by Git OBS Bridge
commit 52928663f7
3 changed files with 34 additions and 0 deletions

27
syslinux-4.04-gcc47.diff Normal file
View File

@ -0,0 +1,27 @@
--- com32/lib/sys/entry.S
+++ com32/lib/sys/entry.S
@@ -92,8 +92,8 @@
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
--- com32/lib/sys/exit.S
+++ com32/lib/sys/exit.S
@@ -17,9 +17,9 @@
#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

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 15 13:31:20 CEST 2012 - snwint@suse.de
- gcc47 fix: use .init_array section instead of .ctors
-------------------------------------------------------------------
Tue May 8 11:22:14 CEST 2012 - snwint@suse.de

View File

@ -40,6 +40,7 @@ Patch3: %{name}-%{version}-mboot_bootif.diff
Patch4: %{name}-%{version}-isohybrid-hex-option-parsing.diff
Patch5: %{name}-%{version}-md5pass.diff
Patch6: %{name}-%{version}-umode.diff
Patch7: %{name}-%{version}-gcc47.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -63,6 +64,7 @@ Authors:
%patch4 -p1
%patch5 -p1
%patch6 -p0
%patch7 -p0
%build
cp %{SOURCE2} .