소스 검색

kbuild: fix false section mismatch with ARCH=um build

Ignoring references to .init.text, .exit.text from the .plt section brought
the false positives down to two warnings for a defconfig build of ARCH=um
on x86_64.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Sam Ravnborg 19 년 전
부모
커밋
909252d279
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      scripts/mod/modpost.c

+ 2 - 0
scripts/mod/modpost.c

@@ -822,6 +822,7 @@ static int init_section_ref_ok(const char *name)
 		".pdr",
 		".pdr",
 		"__param",
 		"__param",
 		".smp_locks",
 		".smp_locks",
+		".plt",  /* seen on ARCH=um build on x86_64. Harmless */
 		NULL
 		NULL
 	};
 	};
 	/* Start of section names */
 	/* Start of section names */
@@ -894,6 +895,7 @@ static int exit_section_ref_ok(const char *name)
 		".eh_frame",
 		".eh_frame",
 		".stab",
 		".stab",
 		".smp_locks",
 		".smp_locks",
+		".plt",  /* seen on ARCH=um build on x86_64. Harmless */
 		NULL
 		NULL
 	};
 	};
 	/* Start of section names */
 	/* Start of section names */