rpms/kernel/devel linux-2.6-pass-g-to-assembler-under-config_debug_info.patch, NONE, 1.1 kernel.spec, 1.69, 1.70 linux-2.6-x86_64-vdso-install-unstripped-copies-on-disk.patch, 1.2, 1.3

Roland McGrath (roland) fedora-extras-commits at redhat.com
Thu Aug 9 20:21:35 UTC 2007


Author: roland

Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4384

Modified Files:
	kernel.spec 
	linux-2.6-x86_64-vdso-install-unstripped-copies-on-disk.patch 
Added Files:
	linux-2.6-pass-g-to-assembler-under-config_debug_info.patch 
Log Message:
- fix vdso install patch
- enable -g for assembly



linux-2.6-pass-g-to-assembler-under-config_debug_info.patch:

--- NEW FILE linux-2.6-pass-g-to-assembler-under-config_debug_info.patch ---
From: Roland McGrath <roland at redhat.com>

The assembler for a while now supports -gdwarf to generate source line info
just like the C compiler does.  Source-level assembly debugging sounds like an
oxymoron, but it is handy to be able to see the right source file and read its
comments rather than just the disassembly.  This patch enables -gdwarf for
assembly files when CONFIG_DEBUG_INFO=y and the assembler supports the option.

Signed-off-by: Roland McGrath <roland at redhat.com>
Cc: Sam Ravnborg <sam at ravnborg.org>
Cc: <linux-arch at vger.kernel.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
---

 Makefile |    1 +
 1 file changed, 1 insertion(+)

diff -puN Makefile~pass-g-to-assembler-under-config_debug_info Makefile
--- a/Makefile~pass-g-to-assembler-under-config_debug_info
+++ a/Makefile
@@ -499,6 +499,7 @@ endif
 
 ifdef CONFIG_DEBUG_INFO
 CFLAGS		+= -g
+AFLAGS		+= $(call as-option, -gdwarf2)
 endif
 
 # Force gcc to behave correct even for buggy distributions
_


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- kernel.spec	9 Aug 2007 20:08:58 -0000	1.69
+++ kernel.spec	9 Aug 2007 20:21:02 -0000	1.70
@@ -658,6 +658,7 @@
 Patch1105: linux-2.6-powerpc-vdso-install-unstripped-copies-on-disk.patch
 Patch1106: linux-2.6-x86_64-ia32-vdso-install-unstripped-copies-on-disk.patch
 Patch1107: linux-2.6-x86_64-vdso-install-unstripped-copies-on-disk.patch
+Patch1108: linux-2.6-pass-g-to-assembler-under-config_debug_info.patch
 Patch1200: linux-2.6-ps3-gelic-wireless.patch
 Patch1210: linux-2.6-ps3-storage-alias.patch
 Patch1220: linux-2.6-ps3-legacy-bootloader-hack.patch
@@ -1155,6 +1156,7 @@
 ApplyPatch linux-2.6-powerpc-vdso-install-unstripped-copies-on-disk.patch
 ApplyPatch linux-2.6-x86_64-ia32-vdso-install-unstripped-copies-on-disk.patch
 ApplyPatch linux-2.6-x86_64-vdso-install-unstripped-copies-on-disk.patch
+ApplyPatch linux-2.6-pass-g-to-assembler-under-config_debug_info.patch
 
 # END OF PATCH APPLICATIONS
 
@@ -1491,9 +1493,11 @@
 # This macro is used by %%install, so we must redefine it before that.
 %define debug_package %{nil}
 
+%if %{fancy_debuginfo}
 %define __debug_install_post \
-/usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
+  /usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
 %{nil}
+%endif
 
 %if %{with_debuginfo}
 %ifnarch noarch
@@ -1730,6 +1734,10 @@
 
 
 %changelog
+* Thu Aug  9 2007 Roland McGrath <roland at redhat.com>
+- fix vdso install patch
+- enable -g for assembly
+
 * Thu Aug 09 2007 Dave Jones <davej at redhat.com>
 - Do USB suspend only on certain classes of device.
 

linux-2.6-x86_64-vdso-install-unstripped-copies-on-disk.patch:

Index: linux-2.6-x86_64-vdso-install-unstripped-copies-on-disk.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/linux-2.6-x86_64-vdso-install-unstripped-copies-on-disk.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- linux-2.6-x86_64-vdso-install-unstripped-copies-on-disk.patch	9 Aug 2007 11:57:17 -0000	1.2
+++ linux-2.6-x86_64-vdso-install-unstripped-copies-on-disk.patch	9 Aug 2007 20:21:02 -0000	1.3
@@ -63,7 +63,7 @@
  	$(call if_changed,syscall)
 +
 +quiet_cmd_vdso_install = INSTALL $@
-+      cmd_vdso_install = cp $@.dbg $(MODLIB)/vdso/$@
++      cmd_vdso_install = cp $(obj)/$@.dbg $(MODLIB)/vdso/$@
 +vdso.so:
 +	@mkdir -p $(MODLIB)/vdso
 +	$(call cmd,vdso_install)




More information about the fedora-extras-commits mailing list