[uClibc]uclibc/powerpc status ?
John Traill
john.traill at motorola.com
Wed Apr 3 13:30:36 UTC 2002
Erik Andersen wrote:
> On Wed Apr 03, 2002 at 11:27:01AM +0000, John Traill wrote:
>
>>When I compile "out of the box" the resultant init section of crtn.S
>>contains a single blr instruction sending the ppc into oblivion. Defining
>
>
> Grr. I think the compiler is trying to be sneaky on us
> and is optimizing away everything. For powerpc it should
> really look something like:
> lwz r0,20(r1)
> mtlr r0
> addi r1,r1,16
> blr
>
> Could you try adding this in and let me know if that fixes things
> for you?
>
> --- initfini.c 21 Mar 2002 17:21:42 -0000 1.2
> +++ initfini.c 3 Apr 2002 13:10:25 -0000
> @@ -84,6 +84,14 @@ _init (void)
> module which has a constructor; but then user code's constructors
> would come first, and not be profiled. */
> call_gmon_start ();
> +#else
> + {
> + /* Let GCC know that _fini is not a leaf function by having a dummy
> + * function call here. We arrange for this call to be omitted from
> + * either crt file. */
> + extern void i_am_not_a_leaf (void);
> + i_am_not_a_leaf ();
> + }
> #endif
>
crtn.S now looks fine but I now have an undefined reference for i_am_not_a_leaf in crti.S which doesn't get resolved
causing all compiles to fail.
>
>>starts but with errors. I still have to give the absolute path names to all
>>shell commands - If not I get a Permission denied error.
>><snip>
>># ls
>>ls: Permission denied
>># /bin/ls /
>
>
> Interesting indeed... No clue on that one. Care to run an ltrace
> on the shell to watch what it is doing?
Diddy question - How can I run ltrace on my embedded platform without having a working shell/environment ? What magic am
I missing here.
>
> -Erik
>
> --
> Erik B. Andersen http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons--
--
Regards, John
___________________________________________________________________________
John Traill Motorola
Ph. : +44 (0)1355 355494 Colvilles Road
Fax. : +44 (0)1355 261790 East Kilbride G75 OTG
email : johnt at burton.sps.mot.com Scotland
: R17296 at email.sps.mot.com
[x] General Business Use
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
More information about the uClibc
mailing list