From: Alessandro Rubini <rubini@gnudd.com>
To: ramkumarj2000@gmail.com
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Compiling applications using cross compiler packs libc
Date: Mon, 12 May 2008 12:27:28 +0200 [thread overview]
Message-ID: <20080512102728.GA26806@mail.gnudd.com> (raw)
In-Reply-To: <4f8c3030805120212r730ded9dv23dfcc29119ebfe5@mail.gmail.com>
> the glibc is also packed
> up as a part of application though I never make any calls to the glibc
> libraries.
As already pointed out by Marco Stornelli, you shouldn't get concerned
about glibc as it's a standard library and you expect it to be part of
the target system (again, use uclibc if size is an issue).
If however you really want to build an application without library, you
should change the linker script. The kernel is not calling main() directly,
there is some initial setup involved, and this is where glibc (or uclibc)
is involved, even if you do no library calls yourself.
Look at a boot loader, or at the kernel, and then to proper
documentation, to find how to provide your own linker script to avoid
a library. But I doubt you really need it.
/alessandro
next prev parent reply other threads:[~2008-05-12 10:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-12 9:12 Compiling applications using cross compiler packs libc Ramkumar J
2008-05-12 10:02 ` Marco Stornelli
2008-05-12 10:27 ` Alessandro Rubini [this message]
2008-05-14 5:57 ` David H. Lynch Jr.
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=20080512102728.GA26806@mail.gnudd.com \
--to=rubini@gnudd.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=ramkumarj2000@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).