|
@@ -870,9 +870,12 @@ static void warn_sec_mismatch(const char *modname, const char *fromsec,
|
|
return;
|
|
return;
|
|
|
|
|
|
/* fromsec whitelist - without a valid 'before'
|
|
/* fromsec whitelist - without a valid 'before'
|
|
- * powerpc has a GOT table in .got2 section */
|
|
|
|
|
|
+ * powerpc has a GOT table in .got2 section
|
|
|
|
+ * and also a .toc section */
|
|
if (strcmp(fromsec, ".got2") == 0)
|
|
if (strcmp(fromsec, ".got2") == 0)
|
|
return;
|
|
return;
|
|
|
|
+ if (strcmp(fromsec, ".toc") == 0)
|
|
|
|
+ return;
|
|
|
|
|
|
if (before && after) {
|
|
if (before && after) {
|
|
warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s "
|
|
warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s "
|