------- Additional Comments From giecrilj at stegny dot 2a dot pl 2009-11-10 16:14 ------- Subject: RE: The entry point is mainCRTStartup
That patch is right, thanks, except that that PE is rather surprising because is not used as a target symbol within gcc docs. I cannot tell about BeOS because I never got in touch with one. I am going to report a bug against MinGW as soon as the ld documentation is fixed to specify the startup symbols supported. That information should probably go to the platform-specific section of ld also, except that I hope it is subject to change because the implementation should be augmented to support wide-character applications properly (or at least as properly as MSVCRT allows, which means UTF-16LE and BMP only). Cheers, Chris -----Original Message----- From: nickc at redhat dot com [mailto:sourceware-bugzi...@sourceware.org] Sent: Tuesday, November 10, 2009 5:00 PM To: giecr...@stegny.2a.pl Subject: [Bug ld/10865] The entry point is mainCRTStartup ------- Additional Comments From nickc at redhat dot com 2009-11-10 16:00 ------- Hi Christopher, The uploaded patch changes the documentation to read: There are several ways to set the entry point. The linker will set the entry point by trying each of the following methods in order, and stopping when one of them succeeds: * the `-e' ENTRY command-line option; * the `ENTRY(SYMBOL)' command in a linker script; * the value of a target specific symbol, if it is defined; For many targets this is `start', but PE and BeOS based systems for example check a list of possible entry symbols, matching the first one found. * the address of the first byte of the `.text' section, if present; * The address `0'. Does this seem OK to you ? Cheers Nick -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING http://sourceware.org/bugzilla/show_bug.cgi?id=10865 ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10865 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils