This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use .init_array, .fini_array sections for ARM EABI (broke-target=avr)


Joseph S. Myers wrote:
On Sat, 30 Apr 2005, Mark Mitchell wrote:


Joseph S. Myers wrote:


/usr/ccs/bin/ld: Unsatisfied symbols:
  __main (first referenced in build/genmodes.o) (code)
collect2: ld returned 1 exit status
make[2]: *** [build/genmodes] Error 1

Has this configuration always used __main, but now we fail to define it? Or are we now calling it where before we did not?


Previously (with a 2005-04-29 compiler), "int main(){return 0;}" compiles to code not calling __main. Now (with a 2005-04-30 compiler) it compiles to code calling __main.

Thanks. That points at where the problem ust be; I'll take a look right away.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]