summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addr2line.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/addr2line.c b/addr2line.c
index 94adf85..cda6744 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -623,9 +623,9 @@ rb_dump_backtrace_with_lines(int num_traces, void **traces, char **syms)
intptr_t main_fbase;
char *main_path;
{
- extern int main(int argc, char **argv); /* a function in the main executalbe */
+ extern void _start(void); /* a function in the main executalbe */
Dl_info info;
- dladdr(main, &info);
+ dladdr(_start, &info);
main_fbase = (intptr_t)info.dli_fbase;
}
{