svn commit: branches/uClibc-nptl/extra/scripts

sjhill at uclibc.org sjhill at uclibc.org
Fri Aug 18 03:48:14 UTC 2006


Author: sjhill
Date: 2006-08-17 20:48:14 -0700 (Thu, 17 Aug 2006)
New Revision: 15822

Log:
I don't even want to talk about this.


Added:
   branches/uClibc-nptl/extra/scripts/defs.awk


Changeset:
Added: branches/uClibc-nptl/extra/scripts/defs.awk
===================================================================
--- branches/uClibc-nptl/extra/scripts/defs.awk	2006-08-18 03:46:56 UTC (rev 15821)
+++ branches/uClibc-nptl/extra/scripts/defs.awk	2006-08-18 03:48:14 UTC (rev 15822)
@@ -0,0 +1,27 @@
+/^[ 	]*\.endp/	 { need_endp = 1 }
+/^[ 	]*\.end/	 { need_end = 1 }
+/^[ 	]*\.align/ { if($2 > max) max = $2; }
+
+END {
+    if(need_endp)
+    {
+	print "#define END_INIT .endp _init";
+	print "#define END_FINI .endp _fini";
+    } else if(need_end)
+    {
+	print "#define END_INIT .end _init";
+	print "#define END_FINI .end _fini";
+    }
+    else
+    {
+	print "#define END_INIT";
+	print "#define END_FINI";
+    }
+    if(max)
+	print "#define ALIGN .align", max;
+    else
+	print "#define ALIGN";
+
+    print "#include <libc-symbols.h>";
+    #print "weak_extern (__gmon_start__)";
+}




More information about the uClibc-cvs mailing list