From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 12 Oct 2010 22:47:16 +0200 Subject: [U-Boot] [PATCH] examples/standalone: Use gcc's -fno-toplevel-reorder In-Reply-To: <1284331129-12911-1-git-send-email-ptyser@xes-inc.com> References: <1284149249.26713.2926.camel@petert> <1284331129-12911-1-git-send-email-ptyser@xes-inc.com> Message-ID: <20101012204716.83CFC1508A2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Peter Tyser, In message <1284331129-12911-1-git-send-email-ptyser@xes-inc.com> you wrote: > Using -fno-toplevel-reorder causes gcc to not reorder functions. This > ensures that an application's entry point will be the first function in > the application's source file. > > This change, along with commit 620bbba524fbaa26971a5004793010b169824f1b > should cause a standalone application's entry point to be at the base of > the compiled binary. Previously, the entry point could change depending > on gcc version and flags. > > Note -fno-toplevel-reorder is only available in gcc version 4.2 or > greater. > > Signed-off-by: Peter Tyser > --- > I didn't have a version of gcc < 4.2. The change is pretty trivial so > it should work, but it'd be appreciated if someone with an old toolchain > installed could give the patch a shot. > > examples/standalone/Makefile | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It is a good thing for an uneducated man to read books of quotations. - Sir Winston Churchill _My Early Life_ ch. 9