From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 15 Jun 2010 22:54:23 +0200 Subject: [U-Boot] [PATCH] examples/standalone: Remove relocation compile flags for PowerPC In-Reply-To: <4C17E4F2.70309@freescale.com> References: <1276572325-12642-1-git-send-email-ptyser@xes-inc.com> <4C17CE2F.9050208@freescale.com> <4C17CEEC.8000409@freescale.com> <1276630601.32134.1501.camel@petert> <4C17D851.4010307@freescale.com> <1276632905.32134.1535.camel@petert> <20100615202813.A1816153659@gemini.denx.de> <4C17E4F2.70309@freescale.com> Message-ID: <20100615205423.37749153659@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 Timur Tabi, In message <4C17E4F2.70309@freescale.com> you wrote: > > Doing this at the top of my source file: > > static int __flash_wp(int argc, char *argv[]); > > int flash_wp(int argc, char *argv[]) > { > return __flash_wp(argc, argv); > } > > and then adding this line: > > CFLAGS += -fno-toplevel-reorder > > was all I needed to get my entry point to appear at 40000 without needing to > define any more forward references or caring about the order of the > functions in the file. I think the "static int __flash_wp()" thing is not even needed assuming that flash_wp() is the first function in your file. 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 The use of anthropomorphic terminology when dealing with computing systems is a symptom of professional immaturity. -- Edsger Dijkstra