linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* asmutils libc fun and games
@ 2002-05-17 13:24 Paul Furber
  2002-05-18 23:58 ` h-peter recktenwald
  2002-05-30 17:51 ` asmutils - Linux 2.4.18 h-peter recktenwald
  0 siblings, 2 replies; 8+ messages in thread
From: Paul Furber @ 2002-05-17 13:24 UTC (permalink / raw)
  To: linux-assembly

Hello fellow asm heads,
I've discovered the joys of the asmutils boot disk and now want to make 
it possible to include statically linked code written in C and the 
asmutils libc library on the distro. But I can't get the static versions 
working. Here's the problem:

In the Makefile (in asmutils-0.16/lib/) I have:

BUILD_STATIC = y
BUILD_SHARED = y

But when building the static test proggie I get:

gcc -D__CPU__=386 -Wall -O1 -m386 -g -D__NO_STRING_INLINES -fno-builtin 
-nostartfiles -nostdlib  -static -o test1-static test1.c libc_stub.o libc.a
libc.a(libc.o): In function `_start':
libc.o(.text+0x4): multiple definition of `_start'
libc_stub.o(.text+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [test1] Error 1

If I comment out STUB_OBJS and remake the static portion, then some of 
the static versions are compiled but output the __libc_banner file which 
reads:
A r e  y ou   s i c k ?

To which I reply yes! :) I would like a tiny libc written in asmutils 
that links statically so as to include some demo-style progs on the 
bootdisk. Am Imissing the point of this libc? Even the shared libraries 
that build correctly are dynamically linked to libNoVersion and GNU libc 
when you ldd them. What's up with that?

Paul.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-09-22 15:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-17 13:24 asmutils libc fun and games Paul Furber
2002-05-18 23:58 ` h-peter recktenwald
2002-05-30 17:51 ` asmutils - Linux 2.4.18 h-peter recktenwald
2002-09-13  8:09   ` Is this list dead? halfdead
2002-09-13  9:20     ` Frederic Marmond
2002-09-22 12:29       ` kernel vulnerabilities halfdead
2002-09-22 15:19         ` Robin Miyagi
2002-09-13  9:55     ` Is this list dead? lx

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).