summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sysdeps/pthread/defs.awk
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-16 02:49:53 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-16 02:49:53 +0000
commitf9df27a905a3a067ccec2bc23d4c1f1e6db9000c (patch)
tree008e632e06826be196b9702ce9f47d3096a6b2f2 /libpthread/nptl/sysdeps/pthread/defs.awk
parent657bc14240cde95ac1c99909df7c6ee0dd0159d4 (diff)
downloaduClibc-alpine-f9df27a905a3a067ccec2bc23d4c1f1e6db9000c.tar.bz2
uClibc-alpine-f9df27a905a3a067ccec2bc23d4c1f1e6db9000c.tar.xz
Sync up with glibc NPTL and clean up unused source files.
Diffstat (limited to 'libpthread/nptl/sysdeps/pthread/defs.awk')
-rw-r--r--libpthread/nptl/sysdeps/pthread/defs.awk26
1 files changed, 26 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/pthread/defs.awk b/libpthread/nptl/sysdeps/pthread/defs.awk
new file mode 100644
index 000000000..763c2e57d
--- /dev/null
+++ b/libpthread/nptl/sysdeps/pthread/defs.awk
@@ -0,0 +1,26 @@
+/^[ ]*\.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>";
+}