#!/bin/sh
export LC_ALL=C
-MUSL=../musl
+MUSL=${MUSL:-../musl}
( cd $MUSL; git log -n1 ) | awk '
BEGIN {
if ($2 ~ /bits\//)
s = $3 " "
else
- s = "<a href=\"http://git.etalabs.net/cgi-bin/gitweb.cgi?p=musl;a=blob;f=include/" $2 ";hb=" hash "#l" $4 "\">" $3 "</a> "
+ s = "<a href=\"http://git.etalabs.net/cgi-bin/gitweb.cgi?p=musl;a=blob;f=include/" $2 "#l" $4 "\">" $3 "</a> "
kind[$1] = kind[$1] $3
kindstr[$1] = kindstr[$1] s
}
legend = legend "<li>nodecl - symbol is in libc.a but not declared in a public header"
legend = legend "<li>missing - neither in include files (see decl) nor in libc.a (see sym)"
legend = legend "</ul><li>sym: external symbol kind as found by `nm libc.a` (symbol kind only reported once)<ul>"
-# legend = legend "<li>A - symbol value is absolute"
-# legend = legend "<li>B - symbol is in the uninitialized data section (known as BSS)"
legend = legend "<li>C - symbol is common (uninitialized data)"
legend = legend "<li>D - symbol is in the initialized data section"
-# legend = legend "<li>G - symbol is in the initialized data section for small objects"
-# legend = legend "<li>I - indirect reference to another symbol"
-# legend = legend "<li>N - debugging symbol"
legend = legend "<li>R - symbol is in the read only data section"
-# legend = legend "<li>S - symbol is in the uninitialized data section for small objects"
legend = legend "<li>T - symbol is in the text section"
-# legend = legend "<li>U - undefined symbol"
legend = legend "<li>V - weak object"
legend = legend "<li>W - weak symbol"
legend = legend "</ul><li>decl: kind of declaration as found by `ctags -R include` (every occurance is reported, arch specific definitions are not linked)<ul>"