Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23723
b: refs/heads/master
c: 9209aed
h: refs/heads/master
i:
  23721: 4c6852e
  23719: 927b7ef
v: v3
  • Loading branch information
Sam Ravnborg committed Mar 4, 2006
1 parent a2af81c commit 7cab4a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 62070fa42c4ac23d1d71146a4c14702302b80245
refs/heads/master: 9209aed0726c77ad13b8d83e73a3cf9f59a8c2b2
9 changes: 7 additions & 2 deletions trunk/scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ static int strrcmp(const char *s, const char *sub)
* this pattern.
* The pattern is identified by:
* tosec = .init.data
* fromsec = .data
* fromsec = .data*
* atsym =__param*
*
* Pattern 2:
Expand Down Expand Up @@ -512,7 +512,7 @@ static int secref_whitelist(const char *tosec, const char *fromsec,
/* Check for pattern 1 */
if (strcmp(tosec, ".init.data") != 0)
f1 = 0;
if (strcmp(fromsec, ".data") != 0)
if (strncmp(fromsec, ".data", strlen(".data")) != 0)
f1 = 0;
if (strncmp(atsym, "__param", strlen("__param")) != 0)
f1 = 0;
Expand Down Expand Up @@ -743,9 +743,12 @@ static int init_section_ref_ok(const char *name)
/* Absolute section names */
const char *namelist1[] = {
".init",
".opd", /* see comment [OPD] at exit_section_ref_ok() */
".toc1", /* used by ppc64 */
".stab",
".rodata",
".text.lock",
"__bug_table", /* used by powerpc for BUG() */
".pci_fixup_header",
".pci_fixup_final",
".pdr",
Expand Down Expand Up @@ -812,8 +815,10 @@ static int exit_section_ref_ok(const char *name)
".exit.data",
".init.text",
".opd", /* See comment [OPD] */
".toc1", /* used by ppc64 */
".altinstructions",
".pdr",
"__bug_table", /* used by powerpc for BUG() */
".exitcall.exit",
".eh_frame",
".stab",
Expand Down

0 comments on commit 7cab4a0

Please sign in to comment.