307bcd7783
1997-04-18 02:18 Ulrich Drepper <drepper@cygnus.com> * csu/initfini.c: Rewrite by Zack Weinberg <zack@rabi.phys.columbia.edu>. * csu/Makefile: Add rules for rewrite. * csu/defs.awk: Helper script to generate derived header.
23 lines
413 B
Awk
23 lines
413 B
Awk
/.end/ { need_end = 1 }
|
|
/.align/ { if($2 > max) max = $2; }
|
|
|
|
END {
|
|
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__)";
|
|
}
|