URL:
  <http://savannah.nongnu.org/bugs/?19050>

                 Summary: gcrt1.S should call main rather than jumping to it
                 Project: AVR C Runtime Library
            Submitted by: joerg_wunsch
            Submitted on: Tuesday 02/13/2007 at 13:29
                Category: Library
                Severity: 4 - Important
                Priority: 5 - Normal
              Item Group: Startup code
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
        Originator Email: [EMAIL PROTECTED]
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Now with GCC 4.x, main() is treated as a normal function.  As
such, it must no longer be jumped to, but needs to be called
(with XCALL), and the value returned needs to be passed to
exit().  As the user can override exit() and thus implement
an exit() function that erroneously returns, we should
probably also supply an infinite loop in gcrt1.S that the
code falls into in case exit() ever returns -- much better
than having the program counter run into the wild.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?19050>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to