Message ID | 20230628001356.2706-7-namit@vmware.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | .debug ignore - to squash with efi:keep efi | expand |
diff --git a/lib/efi.c b/lib/efi.c index 2e127a4..2091771 100644 --- a/lib/efi.c +++ b/lib/efi.c @@ -19,6 +19,8 @@ extern int __argc, __envc; extern char *__argv[100]; extern char *__environ[200]; +extern char _text; + extern int main(int argc, char **argv, char **envp); efi_system_table_t *efi_system_table = NULL; @@ -363,6 +365,8 @@ efi_status_t efi_main(efi_handle_t handle, efi_system_table_t *sys_tab) goto efi_main_error; } + printf("Address of image is: 0x%lx\n", (unsigned long)&_text); + /* Run the test case */ ret = main(__argc, __argv, __environ);