forked from pool/glibc
84ce9e0d13
Cleanup of patches. OBS-URL: https://build.opensuse.org/request/show/113387 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=164
40 lines
1.6 KiB
Diff
40 lines
1.6 KiB
Diff
initfini.c is compiled to assembly and further processed and split,
|
|
we can't have unwind tables therein.
|
|
|
|
Index: glibc-2.15/csu/Makefile
|
|
===================================================================
|
|
--- glibc-2.15.orig/csu/Makefile
|
|
+++ glibc-2.15/csu/Makefile
|
|
@@ -93,7 +93,7 @@ omit-deps += $(crtstuff)
|
|
$(crtstuff:%=$(objpfx)%.o): %.o: %.S $(objpfx)defs.h
|
|
$(compile.S) -g0 $(ASFLAGS-.os) -o $@
|
|
|
|
-CFLAGS-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
|
|
+CFLAGS-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time) -fno-unwind-tables -fno-asynchronous-unwind-tables
|
|
|
|
vpath initfini.c $(sysdirs)
|
|
|
|
Index: glibc-2.15/nptl/Makefile
|
|
===================================================================
|
|
--- glibc-2.15.orig/nptl/Makefile
|
|
+++ glibc-2.15/nptl/Makefile
|
|
@@ -342,7 +342,7 @@ endif
|
|
extra-objs += $(crti-objs) $(crtn-objs)
|
|
omit-deps += crti crtn
|
|
|
|
-CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
|
|
+CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time) -fno-unwind-tables -fno-asynchronous-unwind-tables
|
|
endif
|
|
|
|
CFLAGS-flockfile.c = -D_IO_MTSAFE_IO
|
|
Index: glibc-2.15/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile
|
|
===================================================================
|
|
--- glibc-2.15.orig/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile
|
|
+++ glibc-2.15/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile
|
|
@@ -1,4 +1,4 @@
|
|
ifeq ($(subdir),nptl)
|
|
CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions \
|
|
- -fno-asynchronous-unwind-tables $(fno-unit-at-a-time)
|
|
+ -fno-unwind-tables -fno-asynchronous-unwind-tables $(fno-unit-at-a-time)
|
|
endif
|