Message ID | 20231127102523.28003-15-jgross@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Mini-OS: hide mini-os internal symbols | expand |
Juergen Gross, le lun. 27 nov. 2023 11:25:05 +0100, a ecrit: > Add the needed instances of EXPORT_SYMBOL() to main.c. > > Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> > --- > V3: > - new patch > --- > main.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/main.c b/main.c > index a93bc9d6..c5c1c420 100644 > --- a/main.c > +++ b/main.c > @@ -38,10 +38,12 @@ int main(int argc, char *argv[], char *envp[]) > void _init(void) > { > } > +EXPORT_SYMBOL(_init); > > void _fini(void) > { > } > +EXPORT_SYMBOL(_fini); > > extern char __app_bss_start, __app_bss_end; > static void call_main(void *p) > @@ -189,6 +191,7 @@ void _exit(int ret) > } > do_exit(); > } > +EXPORT_SYMBOL(_exit); > > int app_main(void *p) > { > -- > 2.35.3 >
diff --git a/main.c b/main.c index a93bc9d6..c5c1c420 100644 --- a/main.c +++ b/main.c @@ -38,10 +38,12 @@ int main(int argc, char *argv[], char *envp[]) void _init(void) { } +EXPORT_SYMBOL(_init); void _fini(void) { } +EXPORT_SYMBOL(_fini); extern char __app_bss_start, __app_bss_end; static void call_main(void *p) @@ -189,6 +191,7 @@ void _exit(int ret) } do_exit(); } +EXPORT_SYMBOL(_exit); int app_main(void *p) {
Add the needed instances of EXPORT_SYMBOL() to main.c. Signed-off-by: Juergen Gross <jgross@suse.com> --- V3: - new patch --- main.c | 3 +++ 1 file changed, 3 insertions(+)