Skip to content

Commit

Permalink
kbuild, modpost: fix unexpected non-allocatable warning with mips
Browse files Browse the repository at this point in the history
mips emit the following debug sections:
.mdebug* and .pdr

They were included in the check for non-allocatable section
and caused modpost to warn.

Manuel Lauss suggested to fix this by adding the relevant
sections to the list of sections we do not check.

Signed-off-by: Sam Ravnborg <[email protected]>
Reported-by: Manuel Lauss <[email protected]>
  • Loading branch information
sravnborg committed May 4, 2009
1 parent 028eceb commit 4391ed6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,17 @@ int match(const char *sym, const char * const pat[])

/* sections that we do not want to do full section mismatch check on */
static const char *section_white_list[] =
{ ".comment*", ".debug*", ".stab*", ".note*", ".got*", ".toc*", NULL };
{
".comment*",
".debug*",
".mdebug*", /* alpha, score, mips etc. */
".pdr", /* alpha, score, mips etc. */
".stab*",
".note*",
".got*",
".toc*",
NULL
};

/*
* This is used to find sections missing the SHF_ALLOC flag.
Expand Down

0 comments on commit 4391ed6

Please sign in to comment.