use objcopy instead of creating mod-*.c and mod-*.o

This commit is contained in:
BVK Chaitanya 2010-08-29 16:43:07 +05:30
parent ea943e89a3
commit 6b5f780f05
5 changed files with 86 additions and 22 deletions

View file

@ -17,9 +17,10 @@ BEGIN {
lineno = 0;
while (getline <"/dev/stdin") {
lineno++;
if ($1 == "defined")
if ($1 == "defined") {
symtab[$3] = $2;
else if ($1 == "undefined") {
modtab[$2] = "" modtab[$2]
} else if ($1 == "undefined") {
if ($3 in symtab)
modtab[$2] = modtab[$2] " " symtab[$3];
else if ($3 != "__gnu_local_gp") {