Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56723
b: refs/heads/master
c: cd54779
h: refs/heads/master
i:
  56721: 2843664
  56719: 248b53f
v: v3
  • Loading branch information
Li Yang authored and Sam Ravnborg committed May 19, 2007
1 parent e442363 commit d023974
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: f892b7d480eec809a5dfbd6e65742b3f3155e50e
refs/heads/master: cd5477911fc9f5cc64678e2b95cdd606c59a11b5
15 changes: 11 additions & 4 deletions trunk/scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,10 @@ static int strrcmp(const char *s, const char *sub)
* tosec = .init.text
*
* Pattern 10:
* ia64 has machvec table for each platform. It is mixture of function
* pointer of .init.text and .text.
* fromsec = .machvec
* ia64 has machvec table for each platform and
* powerpc has a machine desc table for each platform.
* It is mixture of function pointers of .init.text and .text.
* fromsec = .machvec | .machine.desc
**/
static int secref_whitelist(const char *modname, const char *tosec,
const char *fromsec, const char *atsym,
Expand Down Expand Up @@ -751,7 +752,8 @@ static int secref_whitelist(const char *modname, const char *tosec,
return 1;

/* Check for pattern 10 */
if (strcmp(fromsec, ".machvec") == 0)
if ((strcmp(fromsec, ".machvec") == 0) ||
(strcmp(fromsec, ".machine.desc") == 0))
return 1;

return 0;
Expand Down Expand Up @@ -887,6 +889,11 @@ static void warn_sec_mismatch(const char *modname, const char *fromsec,
elf->strtab + before->st_name, refsymname))
return;

/* fromsec whitelist - without a valid 'before'
* powerpc has a GOT table in .got2 section */
if (strcmp(fromsec, ".got2") == 0)
return;

if (before && after) {
warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s "
"(between '%s' and '%s')\n",
Expand Down

0 comments on commit d023974

Please sign in to comment.