linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] static klibc udev does not link against crt0.o
@ 2003-11-18 22:33 Olaf Hering
  2003-11-19  6:52 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Olaf Hering @ 2003-11-18 22:33 UTC (permalink / raw)
  To: linux-hotplug

no crt0.o means no _start which means no environ which means segfault in
start in getenv.c


--- Makefile~   2003-11-18 23:12:28.000000000 +0100
+++ Makefile    2003-11-18 23:30:43.839448790 +0100
@@ -166,7 +166,7 @@


 $(ROOT): $(GEN_HEADERS) $(OBJS)
-       $(CC) $(LDFLAGS) -o $(ROOT) $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
+       $(CC) $(LDFLAGS) -o $(ROOT) $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS) $(CRT0)
        $(STRIPCMD) $(ROOT)

 clean:


Or is there a reason to not link agaisnt crt0.o? Would be bad for ppc32.

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, n√úRNBERG


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: [PATCH] static klibc udev does not link against crt0.o
  2003-11-18 22:33 [PATCH] static klibc udev does not link against crt0.o Olaf Hering
@ 2003-11-19  6:52 ` Greg KH
  2003-11-22  9:04 ` Olaf Hering
  2003-11-23  6:00 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2003-11-19  6:52 UTC (permalink / raw)
  To: linux-hotplug

On Tue, Nov 18, 2003 at 11:33:39PM +0100, Olaf Hering wrote:
> no crt0.o means no _start which means no environ which means segfault in
> start in getenv.c

Use Makefile.klibc to build with klibc.  If you look at the bk tree this
is all fixed up.  I'll try to make a release in a few days.

thanks,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: [PATCH] static klibc udev does not link against crt0.o
  2003-11-18 22:33 [PATCH] static klibc udev does not link against crt0.o Olaf Hering
  2003-11-19  6:52 ` Greg KH
@ 2003-11-22  9:04 ` Olaf Hering
  2003-11-23  6:00 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Olaf Hering @ 2003-11-22  9:04 UTC (permalink / raw)
  To: linux-hotplug

 On Wed, Nov 19, Greg KH wrote:

> > I did 'make KLIBC=true' in the current bk tree.
> 
> try 'make -f Makefile.klibc' in the current tree.  For some reason I
> couldn't figure out how to have Makefile work for both KLIBC=true and
> KLIBCúlse.  But I didn't try too hard :)

I dont understand that.

please do rm -f Makefile.klibc; apply this patch and tell me what fails.
works for me.


--- Makefile
+++ Makefile	2003/11/19 18:40:40
@@ -166,7 +166,7 @@
 
 
 $(ROOT): $(GEN_HEADERS) $(OBJS)
-	$(CC) $(LDFLAGS) -o $(ROOT) $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
+	$(CC) $(LDFLAGS) -o $(ROOT) $(CRT0) $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
 	$(STRIPCMD) $(ROOT)
 
 clean:
@@ -215,7 +215,7 @@
 	$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
 	$(INSTALL_DATA) udev.config $(DESTDIR)$(configdir)
 	$(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir)
-	- rm $(DESTDIR)$(hotplugdir)/udev.hotplug
+	- rm -f $(DESTDIR)$(hotplugdir)/udev.hotplug
 	- ln -s $(sbindir)/$(ROOT) $(DESTDIR)$(hotplugdir)/udev.hotplug
 
 uninstall:

%build
make KLIBC=%{use_klibc} DEBUGúlse
cp -av udev udev.static
make KLIBC=%{use_klibc} DEBUGúlse clean
make KLIBCúlse DEBUG=true
cp -av udev udev.debug
cd libsysfs
ar cru libsysfs.a *.o ../logging.o
ranlib libsysfs.a
cd ..
make -C extras/scsi_id CC="gcc $RPM_OPT_FLAGS -I`pwd`/libsysfs -L`pwd`/libsysfs"

this is what I use.

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: [PATCH] static klibc udev does not link against crt0.o
  2003-11-18 22:33 [PATCH] static klibc udev does not link against crt0.o Olaf Hering
  2003-11-19  6:52 ` Greg KH
  2003-11-22  9:04 ` Olaf Hering
@ 2003-11-23  6:00 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2003-11-23  6:00 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Nov 22, 2003 at 10:04:03AM +0100, Olaf Hering wrote:
>  On Wed, Nov 19, Greg KH wrote:
> 
> > > I did 'make KLIBC=true' in the current bk tree.
> > 
> > try 'make -f Makefile.klibc' in the current tree.  For some reason I
> > couldn't figure out how to have Makefile work for both KLIBC=true and
> > KLIBCúlse.  But I didn't try too hard :)
> 
> I dont understand that.
> 
> please do rm -f Makefile.klibc; apply this patch and tell me what fails.
> works for me.

Doh, thanks, I've applied this and deleted Makefile.klibc.  Thanks a lot
for this.

> %build
> make KLIBC=%{use_klibc} DEBUGúlse
> cp -av udev udev.static
> make KLIBC=%{use_klibc} DEBUGúlse clean
> make KLIBCúlse DEBUG=true
> cp -av udev udev.debug
> cd libsysfs
> ar cru libsysfs.a *.o ../logging.o
> ranlib libsysfs.a
> cd ..
> make -C extras/scsi_id CC="gcc $RPM_OPT_FLAGS -I`pwd`/libsysfs -L`pwd`/libsysfs"
> 
> this is what I use.

Nice to see scsi_id building properly.

thanks,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2003-11-23  6:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-18 22:33 [PATCH] static klibc udev does not link against crt0.o Olaf Hering
2003-11-19  6:52 ` Greg KH
2003-11-22  9:04 ` Olaf Hering
2003-11-23  6:00 ` Greg KH

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