Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92987
b: refs/heads/master
c: 2d04b5a
h: refs/heads/master
i:
  92985: cb604ab
  92983: acc1fc9
v: v3
  • Loading branch information
Richard Hacker authored and Sam Ravnborg committed Apr 25, 2008
1 parent 7f39feb commit 09f1536
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 35bb5b1e0e84cfa1a8906f7e6a77f391ff315791
refs/heads/master: 2d04b5ae1bf527201a7505c9be7526c43ebd2930
23 changes: 22 additions & 1 deletion trunk/scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,11 @@ static void write_markers(const char *fname)
write_if_changed(&buf, fname);
}

struct ext_sym_list {
struct ext_sym_list *next;
const char *file;
};

int main(int argc, char **argv)
{
struct module *mod;
Expand All @@ -2029,8 +2034,10 @@ int main(int argc, char **argv)
char *markers_write = NULL;
int opt;
int err;
struct ext_sym_list *extsym_iter;
struct ext_sym_list *extsym_start = NULL;

while ((opt = getopt(argc, argv, "i:I:cmsSo:awM:K:")) != -1) {
while ((opt = getopt(argc, argv, "i:I:e:cmsSo:awM:K:")) != -1) {
switch (opt) {
case 'i':
kernel_read = optarg;
Expand All @@ -2042,6 +2049,14 @@ int main(int argc, char **argv)
case 'c':
cross_build = 1;
break;
case 'e':
external_module = 1;
extsym_iter =
NOFAIL(malloc(sizeof(*extsym_iter)));
extsym_iter->next = extsym_start;
extsym_iter->file = optarg;
extsym_start = extsym_iter;
break;
case 'm':
modversions = 1;
break;
Expand Down Expand Up @@ -2075,6 +2090,12 @@ int main(int argc, char **argv)
read_dump(kernel_read, 1);
if (module_read)
read_dump(module_read, 0);
while (extsym_start) {
read_dump(extsym_start->file, 0);
extsym_iter = extsym_start->next;
free(extsym_start);
extsym_start = extsym_iter;
}

while (optind < argc)
read_symbols(argv[optind++]);
Expand Down

0 comments on commit 09f1536

Please sign in to comment.