diff mbox series

[v3,14/32] Mini-OS: add EXPORT_SYMBOL() instances to main.c

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

Commit Message

Jürgen Groß Nov. 27, 2023, 10:25 a.m. UTC
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(+)

Comments

Samuel Thibault Nov. 27, 2023, 8:01 p.m. UTC | #1
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 mbox series

Patch

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)
 {