From mboxrd@z Thu Jan 1 00:00:00 1970
From: Pierre AUBERT
Date: Tue, 14 Jan 2003 10:16:39 +0100
Subject: [U-Boot-Users] Re: PATCH: Add strtoul in syscall table
References: <20030113224555.86AD6C608E@atlas.denx.de>
Message-ID: <3E23D577.6DE4AB87@staubli.com>
List-Id:
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
To: u-boot@lists.denx.de
Wolfgang Denk wrote:
> In message <3DF45C39.EE4FD65C@staubli.com> you wrote:
> >
> > The following patch adds the strtoul entry in the syscall table. This
> > function is
> > very usefull for analyzing the command line arguments in standalone
> > applications.
>
> Why do you think this is necessary?
>
> simple_strtoul() is part of the generic library (implemented in
> lib_generic/vsprintf.c). Any standalone application that needs this
> function can simply link against this library, so I don;t see the
> benefit from calling this through the syscall interface.
> Maybe I'm missing something?
I've tried to link my standalone application againt the libgeneric
library. I've got a lot
of undefined references (to printf, putc, udelay, do_reset) during the
link because the
function simple_strtoul is in the file vsprintf.c which contains other
functions (panic, sprintf, ...).
If we want to use this function in a standalone application, we need to
separate the
vsprintf.c in several pieces. What is the best solution ?
>
> Best regards,
>
> Wolfgang Denk
Best regards