From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Tue, 15 Jun 2010 15:39:14 -0500 Subject: [U-Boot] [PATCH] examples/standalone: Remove relocation compile flags for PowerPC In-Reply-To: <20100615202813.A1816153659@gemini.denx.de> 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> Message-ID: <4C17E4F2.70309@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > I think the "timer" code is sufficient to show the problem, and that > your fix helps. If Timur confirms it's working for his secret code > too we should apply this. 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.