genmoddep: Check that no modules provide the same symbol.
The semantics of 2 modules providing the same symbol are undefined. So ensure that it doesn't happen.
This commit is contained in:
parent
26e5aea941
commit
3732816bc0
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ BEGIN {
|
||||||
|
|
||||||
{
|
{
|
||||||
if ($1 == "defined") {
|
if ($1 == "defined") {
|
||||||
|
if ($3 in symtab) {
|
||||||
|
printf "%s in %s is duplicated in %s\n", $3, $2, symtab[$3] >"/dev/stderr";
|
||||||
|
error++;
|
||||||
|
}
|
||||||
symtab[$3] = $2;
|
symtab[$3] = $2;
|
||||||
modtab[$2] = "" modtab[$2]
|
modtab[$2] = "" modtab[$2]
|
||||||
} else if ($1 == "undefined") {
|
} else if ($1 == "undefined") {
|
||||||
|
|
Loading…
Reference in a new issue