From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Thu, 16 Sep 2010 13:49:12 +0200 Subject: [U-Boot] [PATCH] examples/standalone: Use gcc's -fno-toplevel-reorder In-Reply-To: <1284353283.6265.27.camel@ptyser-laptop> (Peter Tyser's message of "Sun, 12 Sep 2010 23:48:03 -0500") References: <1284149249.26713.2926.camel@petert> <1284331129-12911-1-git-send-email-ptyser@xes-inc.com> <1284353283.6265.27.camel@ptyser-laptop> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Peter, > I agree we should be using main() as the entry point either way. I'll > add that to the TODO list. If we did go with -fno-toplevel-reorder I > could add the following to each application to make it clear what's > going on: > /* Define main() protoype first to ensure its the first function in the image */ when linked with -fno-toplevel-reorder > int main(int argc, char * const argv[]); This would be appreciated. Cheers Detlev -- SWYM XYZ (Sympathize with your machinery). [..] In fact it is often called a no-op, because it performs no operation. It does, however, keep the machine running smoothly, just as real-world swimming helps to keep programmers healthy. -- Donald Knuth, Fascicle 1 -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de