All of lore.kernel.org
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] *.lds for examples
Date: Fri, 08 Oct 2004 02:12:44 +0200	[thread overview]
Message-ID: <877jq2gj9f.fsf@deepthought.outer.space.org> (raw)
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")

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

      reply	other threads:[~2004-10-08  0:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-07 23:21 [U-Boot-Users] *.lds for examples Robin Getz
2004-10-08  0:12 ` Detlev Zundel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877jq2gj9f.fsf@deepthought.outer.space.org \
    --to=dzu@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.