From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Fri, 08 Oct 2004 02:12:44 +0200 Subject: [U-Boot-Users] *.lds for examples In-Reply-To: <6.1.1.1.0.20041007160529.01e172c0@wheresmymailserver.com> (Robin Getz's message of "Thu, 07 Oct 2004 16:21:37 -0700") References: <6.1.1.1.0.20041007160529.01e172c0@wheresmymailserver.com> Message-ID: <877jq2gj9f.fsf@deepthought.outer.space.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Robin, > I was trying to add an example, and was unable to get things to work > properly. To start I tried just copying the hello_world.c to a > smc91111_eeprom.c, and making what I thought were the correct entries > in the examples/Makefile and top level Makefile (for make clean only). Did you change the function name to smc9111_eeprom too? > So, where is the entry point set? > > The actual make looked OK to me (sorry for the long lines): > bfin-elf-gcc -O0 -ffixed-P5 -D__KERNEL__ -DTEXT_BASE=0x20000000 > -I/home/rgetz/u-boot/u-boot_1.1.1/include -fno-built in -ffreestanding > -nostdinc -isystem > /home/rgetz/uClinux/toolchainoutput/lib/gcc-lib/bfin-elf/3.3.3/include > -pipe -D_ > _BLACKFIN__ -mno-underscore -DCONFIG_blackfin -D__blackfin__ > -I/home/rgetz/u-boot/u-boot_1.1.1 -Wall -Wstrict-prototyp es -c -o > hello_world.o hello_world.c bfin-elf-ld -g -Ttext 0x1000 \ > -o hello_world -e hello_world hello_world.o libstubs.a \ ^^^^^^^^^^^^^^ here > -L/home/rgetz/uClinux/toolchainoutput/lib/gcc-lib/bfin-elf/3.3.3 > -lgcc The -e option (see info(ld)) is generated in the Makefile from the object file name so probably the function in your object file was still called 'hello_world'.... Cheers Detlev -- Zivilisation ist der Zaubertrick, der uns unsere wahre Natur verbirgt. -- Salman Rushdie