mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
3452aba811
2000-07-25 Mark Kettenis <kettenis@gnu.org> * nss/nss_files/files-netgrp.c (strip_whitespace): New function. (_nss_netgroup_parseline): Use strip_whitespace to strip off any leading and trailing spaces from host, user and domain name. 2000-07-25 Jes Sorensen <jes@linuxcare.com> * csu/defs.awk: Add support for need_endp. 2000-07-25 Mark Kettenis <kettenis@gnu.org> * resolv/resolv.h: Remove __P from res_send_qhook and res_send_rhook typedefs. 2000-07-25 Bruno Haible <haible@clisp.cons.org> * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
28 lines
570 B
Awk
28 lines
570 B
Awk
/^[ ]*\.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__)";
|
|
}
|