RE: [uClinux-dev] Can't get simple C++ "Hello world" application to work - BINFMT_FLAT: reloc outside program error

2007-09-23 Thread Gavin Lambert
Quoth Bob Grimes: > Okay, I think I accomplished all this, with much gnashing of teeth on > this end. At one point, nearly everything was giving me the > BINFMT_FLT errors!!! But I've finally gotten it rebuilt, and things > seem somewhat better. For example, another program I wrote in C looks >

Re: [uClinux-dev] [patch] allow ftlhdr -s option to take hex values

2007-09-23 Thread David McCullough
Jivin Mike Frysinger lays it down ... > On Sunday 23 September 2007, David McCullough wrote: > > Jivin Mike Frysinger lays it down ... > > > had this sitting around in Blackfin svn for ~1.5 years ;) > > > > > > this allows the stack option of flthdr to be specified in hex > > > > See how this vers

Re: [uClinux-dev] [patch] allow arches to specify ABI symbol prefixes

2007-09-23 Thread Mike Frysinger
On Sunday 23 September 2007, David McCullough wrote: > Jivin Mike Frysinger lays it down ... > > On Friday 29 December 2006, Mike Frysinger wrote: > > > some architecture (like the blackfin) have an ABI where all symbols get > > > a lovely prefix ... in our case, it's a "_" > > > > > > the attached

Re: [uClinux-dev] [patch] allow ftlhdr -s option to take hex values

2007-09-23 Thread Mike Frysinger
On Monday 24 September 2007, David McCullough wrote: > Jivin Mike Frysinger lays it down ... > > On Sunday 23 September 2007, David McCullough wrote: > > > Jivin Mike Frysinger lays it down ... > > > > > > > had this sitting around in Blackfin svn for ~1.5 years ;) > > > > > > > > this allows the s

[uClinux-dev] [patch] pull in stdint.h for flat.h

2007-09-23 Thread Mike Frysinger
the flat.h header uses things like uint32_t but does not pull in the appropriate stdint.h header -mike signature.asc Description: This is a digitally signed message part. Index: flat.h === RCS file: /var/cvs/elf2flt/flat.h,v retriev

Re: [uClinux-dev] [patch] allow ftlhdr -s option to take hex values

2007-09-23 Thread David McCullough
Jivin Mike Frysinger lays it down ... > On Sunday 23 September 2007, David McCullough wrote: > > Jivin Mike Frysinger lays it down ... > > > had this sitting around in Blackfin svn for ~1.5 years ;) > > > > > > this allows the stack option of flthdr to be specified in hex > > > > See how this vers

Re: [uClinux-dev] [patch] allow ftlhdr -s option to take hex values

2007-09-23 Thread Mike Frysinger
On Sunday 23 September 2007, David McCullough wrote: > Jivin Mike Frysinger lays it down ... > > had this sitting around in Blackfin svn for ~1.5 years ;) > > > > this allows the stack option of flthdr to be specified in hex > > See how this version works for you, didnt realize that %i also scans

Re: [uClinux-dev] [patch] allow arches to specify ABI symbol prefixes

2007-09-23 Thread Robin Getz
On Sun 23 Sep 2007 18:46, David McCullough pondered: > Any comment on BF has decided to go with the whole leading underscore > thing ? Seems the only reason anyone does it anymore if for > compatibility with old commercial toolchains :-) That is the reason. We try to play nice with the folks tha

Re: [uClinux-dev] Can't get simple C++ "Hello world" application to work - BINFMT_FLAT: reloc outside program error

2007-09-23 Thread Bob Grimes
On 9/23/07, Gavin Lambert <[EMAIL PROTECTED]> wrote: > > After disabling both XIP and shared libs in the arch file, you need to do a > clean and rebuild. Then it should work. Basically any combination of C++ > and -msep-data and friends seems to break horribly. > Okay, I think I accomplished all

Re: Re: [uClinux-dev] boa ssi,please advise

2007-09-23 Thread advan
Stano, Thank you very much , I have understood how to do. I wrote a sample (configure.cgi) and invoke via flag ,It's able to show data saved and html context ,I found this method was very trouble and difficulty to show complex html page inclulding text,option,java script,radio and so on . Now

Re: [uClinux-dev] [patch] allow ftlhdr -s option to take hex values

2007-09-23 Thread David McCullough
Jivin Mike Frysinger lays it down ... > had this sitting around in Blackfin svn for ~1.5 years ;) > > this allows the stack option of flthdr to be specified in hex See how this version works for you, Cheers, Davidm -- David McCullough, [EMAIL PROTECTED], Ph:+61 734352815 Secure Computing -

Re: [uClinux-dev] [patch] del unused var in flthdr

2007-09-23 Thread David McCullough
Jivin Mike Frysinger lays it down ... > the short_format var isnt used in flthdr.c, so delete it Applied, thanks, Davidm -- David McCullough, [EMAIL PROTECTED], Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com _

RE: [uClinux-dev] Can't get simple C++ "Hello world" application to work - BINFMT_FLAT: reloc outside program error

2007-09-23 Thread Gavin Lambert
Quoth Bob Grimes > BINFMT_FLAT: reloc outside program 0x73735f74 (0 - > 0xffa52e54/0xd900), killing hello! [...] > I've also seen some suggestions about disabling XIP, and I tried to > change that in vendors/Freescale/M5329EVB/config.arch, but I didn't > see any evidence that it had any differ

Re: [uClinux-dev] [patch] allow arches to specify ABI symbol prefixes

2007-09-23 Thread David McCullough
Jivin Mike Frysinger lays it down ... > On Friday 29 December 2006, Mike Frysinger wrote: > > some architecture (like the blackfin) have an ABI where all symbols get a > > lovely prefix ... in our case, it's a "_" > > > > the attached patch turns the elf2flt.ld file into a configure output so > >

[uClinux-dev] Can't get simple C++ "Hello world" application to work - BINFMT_FLAT: reloc outside program error

2007-09-23 Thread Bob Grimes
Am I up the proverbial creek on this one? I'm trying to port a bunch of C++ code to uClinux, and I can't get things to work. Starting small, I'm trying to build and run the "Hello world" application here: #include int main(int argc, char** argv) { printf("Hello world\n");