patches/linux/2.6.7/linux-2.6.7-build_on_case_insensitive_fs-1.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 Submitted By: Martin Schaffner <schaffner@gmx.li>
     2 Date: 2004-06-19
     3 Initial Package Version: 2.6.7
     4 Upstream Status: Not submitted
     5 Origin: Martin Schaffner
     6 Description: Enables build on case-insensitive file systems
     7 URL: http://mirror.vtx.ch/lfs/patches/downloads/linux/linux-2.6.7-build_on_case_insensitive_fs-1.patch
     8 
     9 diff -ur linux-2.6.7/Makefile linux-2.6.7-mod/Makefile
    10 --- linux-2.6.7/Makefile	Fri Jun 18 22:51:03 2004
    11 +++ linux-2.6.7-mod/Makefile	Sat Jun 19 12:43:10 2004
    12 @@ -549,7 +549,7 @@
    13  	$(NM) $@ | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
    14  endef
    15  
    16 -LDFLAGS_vmlinux += -T arch/$(ARCH)/kernel/vmlinux.lds.s
    17 +LDFLAGS_vmlinux += -T arch/$(ARCH)/kernel/vmlinux.lds.asm
    18  
    19  #	Generate section listing all symbols and add it into vmlinux
    20  #	It's a three stage process:
    21 @@ -575,23 +575,23 @@
    22  .tmp_kallsyms%.S: .tmp_vmlinux%
    23  	$(call cmd,kallsyms)
    24  
    25 -.tmp_vmlinux1: $(vmlinux-objs) arch/$(ARCH)/kernel/vmlinux.lds.s FORCE
    26 +.tmp_vmlinux1: $(vmlinux-objs) arch/$(ARCH)/kernel/vmlinux.lds.asm FORCE
    27  	+$(call if_changed_rule,vmlinux__)
    28  
    29 -.tmp_vmlinux2: $(vmlinux-objs) .tmp_kallsyms1.o arch/$(ARCH)/kernel/vmlinux.lds.s FORCE
    30 +.tmp_vmlinux2: $(vmlinux-objs) .tmp_kallsyms1.o arch/$(ARCH)/kernel/vmlinux.lds.asm FORCE
    31  	$(call if_changed_rule,vmlinux__)
    32  
    33  endif
    34  
    35  #	Finally the vmlinux rule
    36  
    37 -vmlinux: $(vmlinux-objs) $(kallsyms.o) arch/$(ARCH)/kernel/vmlinux.lds.s FORCE
    38 +vmlinux: $(vmlinux-objs) $(kallsyms.o) arch/$(ARCH)/kernel/vmlinux.lds.asm FORCE
    39  	$(call if_changed_rule,vmlinux)
    40  
    41  #	The actual objects are generated when descending, 
    42  #	make sure no implicit rule kicks in
    43  
    44 -$(sort $(vmlinux-objs)) arch/$(ARCH)/kernel/vmlinux.lds.s: $(vmlinux-dirs) ;
    45 +$(sort $(vmlinux-objs)) arch/$(ARCH)/kernel/vmlinux.lds.asm: $(vmlinux-dirs) ;
    46  
    47  # 	Handle descending into subdirectories listed in $(vmlinux-dirs)
    48  
    49 @@ -640,7 +640,7 @@
    50  # Single targets
    51  # ---------------------------------------------------------------------------
    52  
    53 -%.s: %.c scripts FORCE
    54 +%.asm: %.c scripts FORCE
    55  	$(Q)$(MAKE) $(build)=$(@D) $@
    56  %.i: %.c scripts FORCE
    57  	$(Q)$(MAKE) $(build)=$(@D) $@
    58 @@ -650,7 +650,7 @@
    59  	$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) $(build)=$(@D)
    60  %.lst: %.c scripts FORCE
    61  	$(Q)$(MAKE) $(build)=$(@D) $@
    62 -%.s: %.S scripts FORCE
    63 +%.asm: %.S scripts FORCE
    64  	$(Q)$(MAKE) $(build)=$(@D) $@
    65  %.o: %.S scripts FORCE
    66  	$(Q)$(MAKE) $(build)=$(@D) $@
    67 diff -ur linux-2.6.7/arch/alpha/Makefile linux-2.6.7-mod/arch/alpha/Makefile
    68 --- linux-2.6.7/arch/alpha/Makefile	Fri Jun 18 22:51:03 2004
    69 +++ linux-2.6.7-mod/arch/alpha/Makefile	Sat Jun 19 12:46:32 2004
    70 @@ -114,10 +114,10 @@
    71  
    72  prepare: include/asm-$(ARCH)/asm_offsets.h
    73  
    74 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
    75 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
    76  				   include/config/MARKER
    77  
    78 -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
    79 +include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
    80  	$(call filechk,gen-asm-offsets)
    81  
    82  archclean:
    83 diff -ur linux-2.6.7/arch/alpha/kernel/Makefile linux-2.6.7-mod/arch/alpha/kernel/Makefile
    84 --- linux-2.6.7/arch/alpha/kernel/Makefile	Mon May 10 04:32:29 2004
    85 +++ linux-2.6.7-mod/arch/alpha/kernel/Makefile	Sat Jun 19 12:46:48 2004
    86 @@ -2,7 +2,7 @@
    87  # Makefile for the linux kernel.
    88  #
    89  
    90 -extra-y		:= head.o vmlinux.lds.s
    91 +extra-y		:= head.o vmlinux.lds.asm
    92  EXTRA_AFLAGS	:= $(CFLAGS)
    93  EXTRA_CFLAGS	:= -Werror -Wno-sign-compare
    94  
    95 diff -ur linux-2.6.7/arch/arm/Makefile linux-2.6.7-mod/arch/arm/Makefile
    96 --- linux-2.6.7/arch/arm/Makefile	Fri Jun 18 22:51:04 2004
    97 +++ linux-2.6.7-mod/arch/arm/Makefile	Sat Jun 19 12:47:07 2004
    98 @@ -175,10 +175,10 @@
    99  i:;	$(Q)$(MAKE) $(build)=$(boot) install
   100  zi:;	$(Q)$(MAKE) $(build)=$(boot) zinstall
   101  
   102 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
   103 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
   104  				   include/asm-arm/.arch
   105  
   106 -include/asm-$(ARCH)/constants.h: arch/$(ARCH)/kernel/asm-offsets.s
   107 +include/asm-$(ARCH)/constants.h: arch/$(ARCH)/kernel/asm-offsets.asm
   108  	$(call filechk,gen-asm-offsets)
   109  
   110  define archhelp
   111 diff -ur linux-2.6.7/arch/arm/kernel/Makefile linux-2.6.7-mod/arch/arm/kernel/Makefile
   112 --- linux-2.6.7/arch/arm/kernel/Makefile	Mon May 10 04:33:19 2004
   113 +++ linux-2.6.7-mod/arch/arm/kernel/Makefile	Sat Jun 19 12:47:25 2004
   114 @@ -27,7 +27,7 @@
   115  head-y			:= head.o
   116  obj-$(CONFIG_DEBUG_LL)	+= debug.o
   117  
   118 -extra-y := $(head-y) init_task.o vmlinux.lds.s
   119 +extra-y := $(head-y) init_task.o vmlinux.lds.asm
   120  
   121  # Spell out some dependencies that aren't automatically figured out
   122  $(obj)/entry-armv.o: 	$(obj)/entry-header.S include/asm-arm/constants.h
   123 diff -ur linux-2.6.7/arch/arm26/Makefile linux-2.6.7-mod/arch/arm26/Makefile
   124 --- linux-2.6.7/arch/arm26/Makefile	Mon May 10 04:32:28 2004
   125 +++ linux-2.6.7-mod/arch/arm26/Makefile	Sat Jun 19 12:48:24 2004
   126 @@ -101,10 +101,10 @@
   127  	fi; \
   128  	)
   129  
   130 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
   131 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
   132  				   include/config/MARKER
   133  
   134 -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
   135 +include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
   136  	$(call filechk,gen-asm-offsets)
   137  
   138  define archhelp
   139 diff -ur linux-2.6.7/arch/arm26/kernel/Makefile linux-2.6.7-mod/arch/arm26/kernel/Makefile
   140 --- linux-2.6.7/arch/arm26/kernel/Makefile	Mon May 10 04:32:29 2004
   141 +++ linux-2.6.7-mod/arch/arm26/kernel/Makefile	Sat Jun 19 12:48:30 2004
   142 @@ -14,5 +14,5 @@
   143  obj-$(CONFIG_FIQ)		+= fiq.o
   144  obj-$(CONFIG_MODULES)		+= armksyms.o
   145  
   146 -extra-y := init_task.o vmlinux.lds.s
   147 +extra-y := init_task.o vmlinux.lds.asm
   148  
   149 diff -ur linux-2.6.7/arch/cris/Makefile linux-2.6.7-mod/arch/cris/Makefile
   150 --- linux-2.6.7/arch/cris/Makefile	Fri Jun 18 22:51:07 2004
   151 +++ linux-2.6.7-mod/arch/cris/Makefile	Sat Jun 19 12:48:47 2004
   152 @@ -107,8 +107,8 @@
   153  	@ln -sf $(SARCH) include/asm-$(ARCH)/arch
   154  	@touch $@
   155  
   156 -arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
   157 +arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
   158  					include/config/MARKER
   159  
   160 -include/asm-$(ARCH)/$(SARCH)/offset.h: arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.s
   161 +include/asm-$(ARCH)/$(SARCH)/offset.h: arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.asm
   162  	$(call filechk,gen-asm-offsets)
   163 diff -ur linux-2.6.7/arch/cris/kernel/Makefile linux-2.6.7-mod/arch/cris/kernel/Makefile
   164 --- linux-2.6.7/arch/cris/kernel/Makefile	Fri Jun 18 22:51:09 2004
   165 +++ linux-2.6.7-mod/arch/cris/kernel/Makefile	Sat Jun 19 12:48:53 2004
   166 @@ -3,7 +3,7 @@
   167  # Makefile for the linux kernel.
   168  #
   169  
   170 -extra-y	:= vmlinux.lds.s
   171 +extra-y	:= vmlinux.lds.asm
   172  
   173  obj-y   := process.o traps.o irq.o ptrace.o setup.o \
   174  	   time.o sys_cris.o semaphore.o
   175 diff -ur linux-2.6.7/arch/h8300/Makefile linux-2.6.7-mod/arch/h8300/Makefile
   176 --- linux-2.6.7/arch/h8300/Makefile	Fri Jun 18 22:51:09 2004
   177 +++ linux-2.6.7-mod/arch/h8300/Makefile	Sat Jun 19 12:49:12 2004
   178 @@ -64,7 +64,7 @@
   179  
   180  prepare: include/asm-$(ARCH)/asm-offsets.h
   181  
   182 -include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \
   183 +include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm \
   184  				   include/asm include/linux/version.h
   185  	$(call filechk,gen-asm-offsets)
   186  
   187 diff -ur linux-2.6.7/arch/h8300/kernel/Makefile linux-2.6.7-mod/arch/h8300/kernel/Makefile
   188 --- linux-2.6.7/arch/h8300/kernel/Makefile	Fri Jun 18 22:51:09 2004
   189 +++ linux-2.6.7-mod/arch/h8300/kernel/Makefile	Sat Jun 19 12:49:32 2004
   190 @@ -2,7 +2,7 @@
   191  # Makefile for the linux kernel.
   192  #
   193  
   194 -extra-y := vmlinux.lds.s
   195 +extra-y := vmlinux.lds.asm
   196  
   197  obj-y := process.o traps.o ptrace.o ints.o \
   198  	 sys_h8300.o time.o semaphore.o signal.o \
   199 diff -ur linux-2.6.7/arch/i386/Makefile linux-2.6.7-mod/arch/i386/Makefile
   200 --- linux-2.6.7/arch/i386/Makefile	Fri Jun 18 22:51:10 2004
   201 +++ linux-2.6.7-mod/arch/i386/Makefile	Sat Jun 19 12:49:43 2004
   202 @@ -141,10 +141,10 @@
   203  prepare: include/asm-$(ARCH)/asm_offsets.h
   204  CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h
   205  
   206 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
   207 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
   208  				   include/config/MARKER
   209  
   210 -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
   211 +include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
   212  	$(call filechk,gen-asm-offsets)
   213  
   214  archclean:
   215 diff -ur linux-2.6.7/arch/i386/kernel/Makefile linux-2.6.7-mod/arch/i386/kernel/Makefile
   216 --- linux-2.6.7/arch/i386/kernel/Makefile	Mon May 10 04:32:02 2004
   217 +++ linux-2.6.7-mod/arch/i386/kernel/Makefile	Sat Jun 19 12:49:54 2004
   218 @@ -2,7 +2,7 @@
   219  # Makefile for the linux kernel.
   220  #
   221  
   222 -extra-y := head.o init_task.o vmlinux.lds.s
   223 +extra-y := head.o init_task.o vmlinux.lds.asm
   224  
   225  obj-y	:= process.o semaphore.o signal.o entry.o traps.o irq.o vm86.o \
   226  		ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_i386.o \
   227 diff -ur linux-2.6.7/arch/ia64/Makefile linux-2.6.7-mod/arch/ia64/Makefile
   228 --- linux-2.6.7/arch/ia64/Makefile	Mon May 10 04:31:59 2004
   229 +++ linux-2.6.7-mod/arch/ia64/Makefile	Sat Jun 19 12:50:12 2004
   230 @@ -88,12 +88,12 @@
   231  
   232  prepare: include/asm-ia64/offsets.h
   233  
   234 -arch/ia64/kernel/asm-offsets.s: include/asm include/linux/version.h include/config/MARKER
   235 +arch/ia64/kernel/asm-offsets.asm: include/asm include/linux/version.h include/config/MARKER
   236  
   237 -include/asm-ia64/offsets.h: arch/ia64/kernel/asm-offsets.s
   238 +include/asm-ia64/offsets.h: arch/ia64/kernel/asm-offsets.asm
   239  	$(call filechk,gen-asm-offsets)
   240  
   241 -arch/ia64/kernel/asm-offsets.s: include/asm-ia64/.offsets.h.stamp
   242 +arch/ia64/kernel/asm-offsets.asm: include/asm-ia64/.offsets.h.stamp
   243  
   244  include/asm-ia64/.offsets.h.stamp:
   245  	mkdir -p include/asm-ia64
   246 diff -ur linux-2.6.7/arch/ia64/kernel/Makefile linux-2.6.7-mod/arch/ia64/kernel/Makefile
   247 --- linux-2.6.7/arch/ia64/kernel/Makefile	Fri Jun 18 22:51:13 2004
   248 +++ linux-2.6.7-mod/arch/ia64/kernel/Makefile	Sat Jun 19 12:52:14 2004
   249 @@ -2,7 +2,7 @@
   250  # Makefile for the linux kernel.
   251  #
   252  
   253 -extra-y	:= head.o init_task.o vmlinux.lds.s
   254 +extra-y	:= head.o init_task.o vmlinux.lds.asm
   255  
   256  obj-y := acpi.o entry.o efi.o efi_stub.o gate-data.o fsys.o ia64_ksyms.o irq.o irq_ia64.o	\
   257  	 irq_lsapic.o ivt.o machvec.o pal.o patch.o process.o perfmon.o ptrace.o sal.o		\
   258 @@ -21,7 +21,7 @@
   259  # The gate DSO image is built using a special linker script.
   260  targets += gate.so gate-syms.o
   261  
   262 -extra-y += gate.so gate-syms.o gate.lds.s gate.o
   263 +extra-y += gate.so gate-syms.o gate.lds.asm gate.o
   264  
   265  # fp_emulate() expects f2-f5,f16-f31 to contain the user-level state.
   266  CFLAGS_traps.o  += -mfixed-range=f2-f5,f16-f31
   267 @@ -32,14 +32,14 @@
   268        cmd_gate = $(CC) -nostdlib $(GATECFLAGS_$(@F)) -Wl,-T,$(filter-out FORCE,$^) -o $@
   269  
   270  GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1
   271 -$(obj)/gate.so: $(obj)/gate.lds.s $(obj)/gate.o FORCE
   272 +$(obj)/gate.so: $(obj)/gate.lds.asm $(obj)/gate.o FORCE
   273  	$(call if_changed,gate)
   274  
   275  $(obj)/built-in.o: $(obj)/gate-syms.o
   276  $(obj)/built-in.o: ld_flags += -R $(obj)/gate-syms.o
   277  
   278  GATECFLAGS_gate-syms.o = -r
   279 -$(obj)/gate-syms.o: $(src)/gate.lds.s $(obj)/gate.o FORCE
   280 +$(obj)/gate-syms.o: $(src)/gate.lds.asm $(obj)/gate.o FORCE
   281  	$(call if_changed,gate)
   282  
   283  # gate-data.o contains the gate DSO image as data in section .data.gate.
   284 diff -ur linux-2.6.7/arch/m68k/Makefile linux-2.6.7-mod/arch/m68k/Makefile
   285 --- linux-2.6.7/arch/m68k/Makefile	Fri Jun 18 22:51:14 2004
   286 +++ linux-2.6.7-mod/arch/m68k/Makefile	Sat Jun 19 12:52:30 2004
   287 @@ -114,10 +114,10 @@
   288  prepare: include/asm-$(ARCH)/offsets.h
   289  CLEAN_FILES += include/asm-$(ARCH)/offsets.h
   290  
   291 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
   292 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
   293  				   include/config/MARKER
   294  
   295 -include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
   296 +include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
   297  	$(call filechk,gen-asm-offsets)
   298  
   299  archclean:
   300 diff -ur linux-2.6.7/arch/m68k/kernel/Makefile linux-2.6.7-mod/arch/m68k/kernel/Makefile
   301 --- linux-2.6.7/arch/m68k/kernel/Makefile	Mon May 10 04:33:10 2004
   302 +++ linux-2.6.7-mod/arch/m68k/kernel/Makefile	Sat Jun 19 12:52:35 2004
   303 @@ -7,7 +7,7 @@
   304  else
   305    extra-y := sun3-head.o
   306  endif
   307 -extra-y	+= vmlinux.lds.s
   308 +extra-y	+= vmlinux.lds.asm
   309  
   310  obj-y		:= entry.o process.o traps.o ints.o signal.o ptrace.o \
   311  			sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.o
   312 diff -ur linux-2.6.7/arch/m68knommu/Makefile linux-2.6.7-mod/arch/m68knommu/Makefile
   313 --- linux-2.6.7/arch/m68knommu/Makefile	Mon May 10 04:32:54 2004
   314 +++ linux-2.6.7-mod/arch/m68knommu/Makefile	Sat Jun 19 12:52:57 2004
   315 @@ -89,7 +89,7 @@
   316  head-y := arch/m68knommu/platform/$(platform-y)/$(board-y)/crt0_$(model-y).o
   317  
   318  CLEAN_FILES := include/asm-$(ARCH)/asm-offsets.h \
   319 -	       arch/$(ARCH)/kernel/asm-offsets.s
   320 +	       arch/$(ARCH)/kernel/asm-offsets.asm
   321  
   322  core-y	+= arch/m68knommu/kernel/ \
   323  	   arch/m68knommu/mm/ \
   324 @@ -102,7 +102,7 @@
   325  archclean:
   326  	$(call descend arch/$(ARCH)/boot, subdirclean)
   327  
   328 -include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \
   329 +include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm \
   330  				   include/asm include/linux/version.h \
   331  				   include/config/MARKER
   332  	$(call filechk,gen-asm-offsets)
   333 diff -ur linux-2.6.7/arch/m68knommu/kernel/Makefile linux-2.6.7-mod/arch/m68knommu/kernel/Makefile
   334 --- linux-2.6.7/arch/m68knommu/kernel/Makefile	Mon May 10 04:32:26 2004
   335 +++ linux-2.6.7-mod/arch/m68knommu/kernel/Makefile	Sat Jun 19 12:53:20 2004
   336 @@ -2,7 +2,7 @@
   337  # Makefile for arch/m68knommu/kernel.
   338  #
   339  
   340 -extra-y := vmlinux.lds.s
   341 +extra-y := vmlinux.lds.asm
   342  
   343  obj-y += dma.o entry.o init_task.o m68k_ksyms.o process.o ptrace.o semaphore.o \
   344  	 setup.o signal.o syscalltable.o sys_m68k.o time.o traps.o
   345 diff -ur linux-2.6.7/arch/mips/Makefile linux-2.6.7-mod/arch/mips/Makefile
   346 --- linux-2.6.7/arch/mips/Makefile	Fri Jun 18 22:51:19 2004
   347 +++ linux-2.6.7-mod/arch/mips/Makefile	Sat Jun 19 12:53:35 2004
   348 @@ -752,12 +752,12 @@
   349  prepare: include/asm-$(ARCH)/offset.h \
   350  	 include/asm-$(ARCH)/reg.h
   351  
   352 -arch/$(ARCH)/kernel/offset.s: include/asm include/linux/version.h \
   353 +arch/$(ARCH)/kernel/offset.asm: include/asm include/linux/version.h \
   354  				   include/config/MARKER
   355  
   356 -include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/offset.s
   357 +include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/offset.asm
   358  	$(call filechk,gen-asm-offset.h)
   359 -include/asm-$(ARCH)/reg.h: arch/$(ARCH)/kernel/reg.s
   360 +include/asm-$(ARCH)/reg.h: arch/$(ARCH)/kernel/reg.asm
   361  	$(call filechk,gen-asm-reg.h)
   362  
   363  CLEAN_FILES += include/asm-$(ARCH)/offset.h.tmp \
   364 diff -ur linux-2.6.7/arch/mips/kernel/Makefile linux-2.6.7-mod/arch/mips/kernel/Makefile
   365 --- linux-2.6.7/arch/mips/kernel/Makefile	Mon May 10 04:32:28 2004
   366 +++ linux-2.6.7-mod/arch/mips/kernel/Makefile	Sat Jun 19 12:53:41 2004
   367 @@ -2,7 +2,7 @@
   368  # Makefile for the Linux/MIPS kernel.
   369  #
   370  
   371 -extra-y		:= head.o init_task.o vmlinux.lds.s
   372 +extra-y		:= head.o init_task.o vmlinux.lds.asm
   373  
   374  obj-y		+= cpu-probe.o branch.o entry.o genex.o irq.o process.o \
   375  		   ptrace.o reset.o semaphore.o setup.o signal.o syscall.o \
   376 diff -ur linux-2.6.7/arch/parisc/Makefile linux-2.6.7-mod/arch/parisc/Makefile
   377 --- linux-2.6.7/arch/parisc/Makefile	Fri Jun 18 22:51:21 2004
   378 +++ linux-2.6.7-mod/arch/parisc/Makefile	Sat Jun 19 12:53:47 2004
   379 @@ -88,10 +88,10 @@
   380  
   381  prepare: include/asm-parisc/offsets.h
   382  
   383 -arch/parisc/kernel/asm-offsets.s: include/asm include/linux/version.h \
   384 +arch/parisc/kernel/asm-offsets.asm: include/asm include/linux/version.h \
   385  				   include/config/MARKER
   386  
   387 -include/asm-parisc/offsets.h: arch/parisc/kernel/asm-offsets.s
   388 +include/asm-parisc/offsets.h: arch/parisc/kernel/asm-offsets.asm
   389  	$(call filechk,gen-asm-offsets)
   390  
   391  CLEAN_FILES	+= lifimage include/asm-parisc/offsets.h
   392 diff -ur linux-2.6.7/arch/parisc/kernel/Makefile linux-2.6.7-mod/arch/parisc/kernel/Makefile
   393 --- linux-2.6.7/arch/parisc/kernel/Makefile	Fri Jun 18 22:51:21 2004
   394 +++ linux-2.6.7-mod/arch/parisc/kernel/Makefile	Sat Jun 19 12:53:53 2004
   395 @@ -4,7 +4,7 @@
   396  
   397  head-y			:= head.o
   398  head-$(CONFIG_PARISC64)	:= head64.o
   399 -extra-y			:= init_task.o $(head-y) vmlinux.lds.s
   400 +extra-y			:= init_task.o $(head-y) vmlinux.lds.asm
   401  
   402  AFLAGS_entry.o	:= -traditional
   403  AFLAGS_pacache.o := -traditional
   404 diff -ur linux-2.6.7/arch/ppc/Makefile linux-2.6.7-mod/arch/ppc/Makefile
   405 --- linux-2.6.7/arch/ppc/Makefile	Fri Jun 18 22:51:22 2004
   406 +++ linux-2.6.7-mod/arch/ppc/Makefile	Sat Jun 19 12:54:09 2004
   407 @@ -78,10 +78,10 @@
   408  
   409  prepare: include/asm-$(ARCH)/offsets.h checkbin
   410  
   411 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
   412 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
   413  				   include/config/MARKER
   414  
   415 -include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
   416 +include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
   417  	$(call filechk,gen-asm-offsets)
   418  
   419  ifdef CONFIG_6xx
   420 @@ -104,4 +104,4 @@
   421  endif
   422  
   423  CLEAN_FILES +=	include/asm-$(ARCH)/offsets.h \
   424 -		arch/$(ARCH)/kernel/asm-offsets.s
   425 +		arch/$(ARCH)/kernel/asm-offsets.asm
   426 diff -ur linux-2.6.7/arch/ppc/kernel/Makefile linux-2.6.7-mod/arch/ppc/kernel/Makefile
   427 --- linux-2.6.7/arch/ppc/kernel/Makefile	Fri Jun 18 22:51:24 2004
   428 +++ linux-2.6.7-mod/arch/ppc/kernel/Makefile	Sat Jun 19 12:43:10 2004
   429 @@ -15,7 +15,7 @@
   430  extra-$(CONFIG_8xx)		:= head_8xx.o
   431  extra-$(CONFIG_6xx)		+= idle_6xx.o
   432  extra-$(CONFIG_POWER4)		+= idle_power4.o
   433 -extra-y				+= vmlinux.lds.s
   434 +extra-y				+= vmlinux.lds.asm
   435  
   436  obj-y				:= entry.o traps.o irq.o idle.o time.o misc.o \
   437  					process.o signal.o ptrace.o align.o \
   438 diff -ur linux-2.6.7/arch/ppc64/Makefile linux-2.6.7-mod/arch/ppc64/Makefile
   439 --- linux-2.6.7/arch/ppc64/Makefile	Fri Jun 18 22:51:26 2004
   440 +++ linux-2.6.7-mod/arch/ppc64/Makefile	Sat Jun 19 12:54:32 2004
   441 @@ -67,10 +67,10 @@
   442  
   443  prepare: include/asm-ppc64/offsets.h
   444  
   445 -arch/ppc64/kernel/asm-offsets.s: include/asm include/linux/version.h \
   446 +arch/ppc64/kernel/asm-offsets.asm: include/asm include/linux/version.h \
   447  				   include/config/MARKER
   448  
   449 -include/asm-ppc64/offsets.h: arch/ppc64/kernel/asm-offsets.s
   450 +include/asm-ppc64/offsets.h: arch/ppc64/kernel/asm-offsets.asm
   451  	$(call filechk,gen-asm-offsets)
   452  
   453  define archhelp
   454 diff -ur linux-2.6.7/arch/ppc64/kernel/Makefile linux-2.6.7-mod/arch/ppc64/kernel/Makefile
   455 --- linux-2.6.7/arch/ppc64/kernel/Makefile	Mon May 10 04:33:20 2004
   456 +++ linux-2.6.7-mod/arch/ppc64/kernel/Makefile	Sat Jun 19 12:54:39 2004
   457 @@ -3,7 +3,7 @@
   458  #
   459  
   460  EXTRA_CFLAGS	+= -mno-minimal-toc
   461 -extra-y		:= head.o vmlinux.lds.s
   462 +extra-y		:= head.o vmlinux.lds.asm
   463  
   464  obj-y               :=	setup.o entry.o traps.o irq.o idle.o dma.o \
   465  			time.o process.o signal.o syscalls.o misc.o ptrace.o \
   466 diff -ur linux-2.6.7/arch/s390/Makefile linux-2.6.7-mod/arch/s390/Makefile
   467 --- linux-2.6.7/arch/s390/Makefile	Mon May 10 04:32:02 2004
   468 +++ linux-2.6.7-mod/arch/s390/Makefile	Sat Jun 19 12:54:46 2004
   469 @@ -68,10 +68,10 @@
   470  
   471  prepare: include/asm-$(ARCH)/offsets.h
   472  
   473 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
   474 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
   475  				   include/config/MARKER
   476  
   477 -include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
   478 +include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
   479  	$(call filechk,gen-asm-offsets)
   480  
   481  CLEAN_FILES += include/asm-$(ARCH)/offsets.h
   482 diff -ur linux-2.6.7/arch/s390/kernel/Makefile linux-2.6.7-mod/arch/s390/kernel/Makefile
   483 --- linux-2.6.7/arch/s390/kernel/Makefile	Mon May 10 04:33:20 2004
   484 +++ linux-2.6.7-mod/arch/s390/kernel/Makefile	Sat Jun 19 12:54:52 2004
   485 @@ -10,7 +10,7 @@
   486  
   487  extra-$(CONFIG_ARCH_S390_31)	+= head.o 
   488  extra-$(CONFIG_ARCH_S390X)	+= head64.o 
   489 -extra-y				+= init_task.o vmlinux.lds.s
   490 +extra-y				+= init_task.o vmlinux.lds.asm
   491  
   492  obj-$(CONFIG_MODULES)		+= s390_ksyms.o module.o
   493  obj-$(CONFIG_SMP)		+= smp.o
   494 diff -ur linux-2.6.7/arch/sh/kernel/Makefile linux-2.6.7-mod/arch/sh/kernel/Makefile
   495 --- linux-2.6.7/arch/sh/kernel/Makefile	Mon May 10 04:32:39 2004
   496 +++ linux-2.6.7-mod/arch/sh/kernel/Makefile	Sat Jun 19 12:55:33 2004
   497 @@ -2,7 +2,7 @@
   498  # Makefile for the Linux/SuperH kernel.
   499  #
   500  
   501 -extra-y	:= head.o init_task.o vmlinux.lds.s
   502 +extra-y	:= head.o init_task.o vmlinux.lds.asm
   503  
   504  obj-y	:= process.o signal.o entry.o traps.o irq.o \
   505  	ptrace.o setup.o time.o sys_sh.o semaphore.o \
   506 diff -ur linux-2.6.7/arch/sparc/Makefile linux-2.6.7-mod/arch/sparc/Makefile
   507 --- linux-2.6.7/arch/sparc/Makefile	Fri Jun 18 22:51:29 2004
   508 +++ linux-2.6.7-mod/arch/sparc/Makefile	Sat Jun 19 12:55:48 2004
   509 @@ -61,14 +61,14 @@
   510  
   511  prepare: include/asm-$(ARCH)/asm_offsets.h
   512  
   513 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
   514 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
   515  				   include/config/MARKER
   516  
   517 -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
   518 +include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
   519  	$(call filechk,gen-asm-offsets)
   520  
   521  CLEAN_FILES +=	include/asm-$(ARCH)/asm_offsets.h	\
   522 -		arch/$(ARCH)/kernel/asm-offsets.s	\
   523 +		arch/$(ARCH)/kernel/asm-offsets.asm	\
   524  		arch/$(ARCH)/boot/System.map
   525  
   526  # Don't use tabs in echo arguments.
   527 diff -ur linux-2.6.7/arch/sparc/kernel/Makefile linux-2.6.7-mod/arch/sparc/kernel/Makefile
   528 --- linux-2.6.7/arch/sparc/kernel/Makefile	Mon May 10 04:33:13 2004
   529 +++ linux-2.6.7-mod/arch/sparc/kernel/Makefile	Sat Jun 19 12:55:52 2004
   530 @@ -2,7 +2,7 @@
   531  # Makefile for the linux kernel.
   532  #
   533  
   534 -extra-y		:= head.o init_task.o vmlinux.lds.s
   535 +extra-y		:= head.o init_task.o vmlinux.lds.asm
   536  
   537  EXTRA_AFLAGS	:= -ansi
   538  
   539 diff -ur linux-2.6.7/arch/sparc64/kernel/Makefile linux-2.6.7-mod/arch/sparc64/kernel/Makefile
   540 --- linux-2.6.7/arch/sparc64/kernel/Makefile	Mon May 10 04:32:02 2004
   541 +++ linux-2.6.7-mod/arch/sparc64/kernel/Makefile	Sat Jun 19 12:56:24 2004
   542 @@ -5,7 +5,7 @@
   543  EXTRA_AFLAGS := -ansi
   544  EXTRA_CFLAGS := -Werror
   545  
   546 -extra-y		:= head.o init_task.o vmlinux.lds.s
   547 +extra-y		:= head.o init_task.o vmlinux.lds.asm
   548  
   549  obj-y		:= process.o setup.o cpu.o idprom.o \
   550  		   traps.o devices.o auxio.o \
   551 diff -ur linux-2.6.7/arch/um/Makefile linux-2.6.7-mod/arch/um/Makefile
   552 --- linux-2.6.7/arch/um/Makefile	Mon May 10 04:32:52 2004
   553 +++ linux-2.6.7-mod/arch/um/Makefile	Sat Jun 19 12:57:07 2004
   554 @@ -77,7 +77,7 @@
   555  # CONFIG_MODE_SKAS + CONFIG_STATIC_LINK case.
   556  
   557  LINK_TT = -static
   558 -LD_SCRIPT_TT := uml.lds.s
   559 +LD_SCRIPT_TT := uml.lds.asm
   560  
   561  ifeq ($(CONFIG_STATIC_LINK),y)
   562    LINK-y += $(LINK_TT)
   563 @@ -103,11 +103,11 @@
   564  	-DELF_FORMAT=\"$(ELF_FORMAT)\" $(CPP_MODE_TT) \
   565  	-DKERNEL_STACK_SIZE=$(STACK_SIZE)
   566  
   567 -AFLAGS_$(LD_SCRIPT-y:.s=).o = $(AFLAGS_vmlinux.lds.o) -P -C -Uum
   568 +AFLAGS_$(LD_SCRIPT-y:.asm=).o = $(AFLAGS_vmlinux.lds.o) -P -C -Uum
   569  
   570  LD_SCRIPT-y := $(ARCH_DIR)/$(LD_SCRIPT-y)
   571  
   572 -$(LD_SCRIPT-y) : $(LD_SCRIPT-y:.s=.S) scripts FORCE
   573 +$(LD_SCRIPT-y) : $(LD_SCRIPT-y:.asm=.S) scripts FORCE
   574  	$(call if_changed_dep,as_s_S)
   575  
   576  linux: vmlinux $(LD_SCRIPT-y)
   577 @@ -122,8 +122,8 @@
   578  # To get a definition of F_SETSIG
   579  USER_CFLAGS += -D_GNU_SOURCE
   580  
   581 -CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/uml.lds.s \
   582 -	$(ARCH_DIR)/dyn_link.ld.s $(GEN_HEADERS)
   583 +CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/uml.lds.asm \
   584 +	$(ARCH_DIR)/dyn_link.ld.asm $(GEN_HEADERS)
   585  
   586  $(ARCH_DIR)/main.o: $(ARCH_DIR)/main.c
   587  	$(CC) $(USER_CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
   588 diff -ur linux-2.6.7/arch/um/kernel/Makefile linux-2.6.7-mod/arch/um/kernel/Makefile
   589 --- linux-2.6.7/arch/um/kernel/Makefile	Mon May 10 04:32:53 2004
   590 +++ linux-2.6.7-mod/arch/um/kernel/Makefile	Sat Jun 19 12:57:15 2004
   591 @@ -3,7 +3,7 @@
   592  # Licensed under the GPL
   593  #
   594  
   595 -extra-y := vmlinux.lds.s
   596 +extra-y := vmlinux.lds.asm
   597  
   598  obj-y = checksum.o config.o exec_kern.o exitcode.o frame_kern.o frame.o \
   599  	helper.o init_task.o irq.o irq_user.o ksyms.o mem.o mem_user.o \
   600 diff -ur linux-2.6.7/arch/v850/Makefile linux-2.6.7-mod/arch/v850/Makefile
   601 --- linux-2.6.7/arch/v850/Makefile	Mon May 10 04:33:21 2004
   602 +++ linux-2.6.7-mod/arch/v850/Makefile	Sat Jun 19 12:57:59 2004
   603 @@ -52,12 +52,12 @@
   604  prepare: include/asm-$(ARCH)/asm-consts.h
   605  
   606  # Generate constants from C code for use by asm files
   607 -arch/$(ARCH)/kernel/asm-consts.s: include/asm include/linux/version.h \
   608 +arch/$(ARCH)/kernel/asm-consts.asm: include/asm include/linux/version.h \
   609  				   include/config/MARKER
   610  
   611 -include/asm-$(ARCH)/asm-consts.h: arch/$(ARCH)/kernel/asm-consts.s
   612 +include/asm-$(ARCH)/asm-consts.h: arch/$(ARCH)/kernel/asm-consts.asm
   613  	$(call filechk,gen-asm-offsets)
   614  
   615  CLEAN_FILES += include/asm-$(ARCH)/asm-consts.h \
   616 -	       arch/$(ARCH)/kernel/asm-consts.s \
   617 +	       arch/$(ARCH)/kernel/asm-consts.asm \
   618  	       root_fs_image.o
   619 diff -ur linux-2.6.7/arch/v850/kernel/Makefile linux-2.6.7-mod/arch/v850/kernel/Makefile
   620 --- linux-2.6.7/arch/v850/kernel/Makefile	Mon May 10 04:33:21 2004
   621 +++ linux-2.6.7-mod/arch/v850/kernel/Makefile	Sat Jun 19 12:58:04 2004
   622 @@ -9,7 +9,7 @@
   623  # for more details.
   624  #
   625  
   626 -extra-y := head.o init_task.o vmlinux.lds.s
   627 +extra-y := head.o init_task.o vmlinux.lds.asm
   628  
   629  obj-y += intv.o entry.o process.o syscalls.o time.o semaphore.o setup.o \
   630  	 signal.o irq.o mach.o ptrace.o bug.o
   631 diff -ur linux-2.6.7/arch/x86_64/Makefile linux-2.6.7-mod/arch/x86_64/Makefile
   632 --- linux-2.6.7/arch/x86_64/Makefile	Mon May 10 04:33:19 2004
   633 +++ linux-2.6.7-mod/arch/x86_64/Makefile	Sat Jun 19 12:58:10 2004
   634 @@ -93,10 +93,10 @@
   635  
   636  prepare: include/asm-$(ARCH)/offset.h
   637  
   638 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
   639 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
   640  				   include/config/MARKER
   641  
   642 -include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/asm-offsets.s
   643 +include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/asm-offsets.asm
   644  	$(call filechk,gen-asm-offsets)
   645  
   646  CLEAN_FILES += include/asm-$(ARCH)/offset.h
   647 diff -ur linux-2.6.7/arch/x86_64/kernel/Makefile linux-2.6.7-mod/arch/x86_64/kernel/Makefile
   648 --- linux-2.6.7/arch/x86_64/kernel/Makefile	Fri Jun 18 22:51:32 2004
   649 +++ linux-2.6.7-mod/arch/x86_64/kernel/Makefile	Sat Jun 19 12:58:17 2004
   650 @@ -2,7 +2,7 @@
   651  # Makefile for the linux kernel.
   652  #
   653  
   654 -extra-y 	:= head.o head64.o init_task.o vmlinux.lds.s
   655 +extra-y 	:= head.o head64.o init_task.o vmlinux.lds.asm
   656  EXTRA_AFLAGS	:= -traditional
   657  obj-y	:= process.o semaphore.o signal.o entry.o traps.o irq.o \
   658  		ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_x86_64.o \
   659 diff -ur linux-2.6.7/scripts/Makefile.build linux-2.6.7-mod/scripts/Makefile.build
   660 --- linux-2.6.7/scripts/Makefile.build	Mon May 10 04:33:13 2004
   661 +++ linux-2.6.7-mod/scripts/Makefile.build	Sat Jun 19 12:43:10 2004
   662 @@ -110,7 +110,7 @@
   663  quiet_cmd_cc_s_c = CC $(quiet_modtag)  $@
   664  cmd_cc_s_c       = $(CC) $(c_flags) -S -o $@ $< 
   665  
   666 -%.s: %.c FORCE
   667 +%.asm: %.c FORCE
   668  	$(call if_changed_dep,cc_s_c)
   669  
   670  quiet_cmd_cc_i_c = CPP $(quiet_modtag) $@
   671 @@ -197,7 +197,7 @@
   672  quiet_cmd_as_s_S = CPP $(quiet_modtag) $@
   673  cmd_as_s_S       = $(CPP) $(a_flags)   -o $@ $< 
   674  
   675 -%.s: %.S FORCE
   676 +%.asm: %.S FORCE
   677  	$(call if_changed_dep,as_s_S)
   678  
   679  quiet_cmd_as_o_S = AS $(quiet_modtag)  $@