LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Balint Cristian<cristian.balint@o...>
    Date: Mon Aug 29 21:53:04 CEST 2005
    Subject: [openrisc] about ld can't open crt0.o
    Top

    ----- Original Message -----
    From: "Stephan" <stephan@m...>
    To: <openrisc@o...>
    Sent: Monday, August 29, 2005 10:14 PM
    Subject: Re: [openrisc] about ld can't open crt0.o


    >* gameboy_1999@h... <gameboy_1999@h...> [2005-08-04
    >12:53:15]:
    >
    >> i am a newbie in or32. i just compiled my or32-elf-gcc on my fedora 3 pc
    >> as this tutoria http://www.asisi.co.uk/or1kecos_0_5.htmll. when i
    >> compile my hello program, showed error message as below:
    >> ...ld: can't open crt0.o
    >>
    >> maybe this question had been discussed for hundred times. i had see
    >> the archives very carefully but still cannot resolve the problem. is
    >> that
    >> because my OS is fedora 3? must i use SuSE Linux 7.2? couled anyone
    >> hlep me? very thanx

    I annonced on the list the aviability of third party toolchain in rpm format
    for fedora 4,
    but a slight src.rpm [which is very easy]recompile will help to make it for
    fedora 3,2,1.

    http://openrisc.rdsor.ro/ToolChain


    I work in progress for gdb/newlib.

    >> _______________________________________________
    >> http://www.opencores.org/mailman/listinfo/openrisc
    >
    > 'crt0.o' is the default startup file that gets used by 'ld'. If you're
    > using
    > the 'or32-elf' target, you have to write your own startup routine.
    > There's some
    > info near the end of 'or1k/or1ksim/README.gdb' that should get you
    > started.
    >
    > What you have to do is pass the '-nostartfiles' option to gcc so that it
    > doesn't
    > try to link to 'crt0.o'. In your case, since you seem to be using eCos,
    > there
    > is already a startup routine provided in
    > 'or1k/ecos-2.0/packages/hal/openrisc/arch/current/src/vectors.S'.
    >
    > As a minimum, you need to make sure you put something useful in 0x100
    > which is
    > the reset vector. In general, you would want the 'reset' routine to
    > perform
    > some initializations and then jump to your program 'main'.
    >
    > I did a quick search on google and found a useful link that details how
    > the
    > linker works:
    > http://docs.hp.com/en/B2355-90655/ch02s05.html
    >
    > Hope this helps,
    > Stephan
    >
    >
    > _______________________________________________
    > http://www.opencores.org/mailman/listinfo/openrisc
    >
    >


    ReferenceAuthor
    [openrisc] about ld can't open crt0.oStephan

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.