about summary refs log tree commit diff
path: root/csu/defs.awk
diff options
context:
space:
mode:
Diffstat (limited to 'csu/defs.awk')
-rw-r--r--csu/defs.awk9
1 files changed, 7 insertions, 2 deletions
diff --git a/csu/defs.awk b/csu/defs.awk
index a006c983e2..7ca5a33646 100644
--- a/csu/defs.awk
+++ b/csu/defs.awk
@@ -1,8 +1,13 @@
-/^[ 	]*\.end/   { need_end = 1 }
+/^[ 	]*\.endp/	 { need_endp = 1 }
+/^[ 	]*\.end/	 { need_end = 1 }
 /^[ 	]*\.align/ { if($2 > max) max = $2; }
 
 END {
-    if(need_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";