ruby-changes:33333
From: naruse <ko1@a...>
Date: Wed, 26 Mar 2014 03:44:37 +0900 (JST)
Subject: [ruby-changes:33333] naruse:r45412 (trunk): main is not a pubic function, use _start instead
naruse 2014-03-26 03:44:32 +0900 (Wed, 26 Mar 2014) New Revision: 45412 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45412 Log: main is not a pubic function, use _start instead Modified files: trunk/addr2line.c Index: addr2line.c =================================================================== --- addr2line.c (revision 45411) +++ addr2line.c (revision 45412) @@ -623,9 +623,9 @@ rb_dump_backtrace_with_lines(int num_tra https://github.com/ruby/ruby/blob/trunk/addr2line.c#L623 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; } { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/