|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-ia64-devel
[Xen-ia64-devel] [PATCH] fixed asm-offset.h asm-xsi-offset.h	generation
 
Hi
Vanilla binutils refuse to assemble -imm0 - -imm1 as a syntax error,
so that linux-2.6-sparse/arch/ia64/xen/xenivt.S can't be compiled.
This patch adds parens to fix it.
Although it seems that some distributions modify their binutils
to accept such syntax(at least redhat, debian),
I think xen should be able to be compiled with vanilla binutils.
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
--
diff -r 1a6e70e434ad -r 7e68cdd9a405 xen/Makefile
--- a/xen/Makefile      Thu Dec  1 18:19:35 2005 +0900
+++ b/xen/Makefile      Thu Dec  1 18:19:47 2005 +0900
@@ -116,7 +116,7 @@
          echo "#ifndef __ASM_OFFSETS_H__"; \
          echo "#define __ASM_OFFSETS_H__"; \
          echo ""; \
-         sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 
/* \3 */:; s:->::; p;}"; \
+         sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 (\2) 
/* \3 */:; s:->::; p;}"; \
          echo ""; \
          echo "#endif") <$< >$@
 
diff -r 1a6e70e434ad -r 7e68cdd9a405 xen/arch/ia64/Makefile
--- a/xen/arch/ia64/Makefile    Thu Dec  1 18:19:35 2005 +0900
+++ b/xen/arch/ia64/Makefile    Thu Dec  1 18:19:47 2005 +0900
@@ -58,7 +58,7 @@
          echo "#ifndef __ASM_XSI_OFFSETS_H__"; \
          echo "#define __ASM_XSI_OFFSETS_H__"; \
          echo ""; \
-         sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 
/* \3 */:; s:->::; p;}"; \
+         sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 (\2) 
/* \3 */:; s:->::; p;}"; \
          echo ""; \
          echo "#endif") <$< >$@
 
-- 
yamahata
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-ia64-devel] [PATCH] fixed asm-offset.h asm-xsi-offset.h	generation,
Isaku Yamahata <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |