mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: "David S. Miller" <davem@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Re: crc32 and lib.a (was Re: [PATCH] nbd in 2.5.3 does
Date: Fri, 01 Feb 2002 22:25:20 +1100	[thread overview]
Message-ID: <10884.1012562720@ocs3.intra.ocs.com.au> (raw)
In-Reply-To: Your message of "Fri, 01 Feb 2002 03:03:45 -0800." <20020201.030345.70220779.davem@redhat.com>

On Fri, 01 Feb 2002 03:03:45 -0800 (PST), 
"David S. Miller" <davem@redhat.com> wrote:
>   From: Keith Owens <kaos@ocs.com.au>
>   Date: Fri, 01 Feb 2002 21:28:52 +1100
>
>   On Fri, 01 Feb 2002 11:07:42 +0100, 
>   Horst von Brand <brand@jupiter.cs.uni-dortmund.de> wrote:
>   >libc.a was invented precisely to handle such stuff automatically when
>   >linking... if it doesn't work, it should be fixed. I.e., making .a --> .o
>   >is a step in the wrong direction IMVHO.
>   
>   There are two contradictory requirements.  crc32.o must only be linked
>   if anything in the kernel needs it, linker puts crc32.o after the code
>   that uses it.  crc32.o must be linked before anything that uses it so
>   the crc32 __init code can initialize first.
>   
>Horst isn't even talking about the initcall issues, he's talking about
>how linking with libc works in that it only brings in the routines you
>actually reference.

Go back and read the entire thread Dave.  It started with

http://www.lib.uaa.alaska.edu/linux-kernel/archive/2002-Week-04/1235.html

  "Besides problem with segfaulting crc32 (it is initialized after
  net/ipv4/ipconfig.c due to lib/lib.a being a library... I had to
  hardcode lib/crc32.o before --start-group in main Makefile, but it is
  another story)"

http://www.lib.uaa.alaska.edu/linux-kernel/archive/2002-Week-04/1384.html

  "included patch (for 2.5.3) fixes problems with late initialization
  of lib/crc32.o - as it was part of .a library file, it was picked by
  link process AFTER at least one .o file required it - for example
  when ipv4 autoconfiguration file needed it. So crc32's initalization
  function was invoked after ipconfig's one - and it crashed inside of
  ipconfig due to this problem."

Horst was not talking about initcall but his suggestion of using lib.a
for crc32.o had already been proven not to work, because of the
(surprise) initcall problem.  I was merely pointing out to Horst why
lib.a was not working and why other options had to be considered.

>Will you get over the initcall thing already, you must be dreaming
>about it at this point. I mean really, just GET OVER IT. :-)

Nightmare is more like it.


  reply	other threads:[~2002-02-01 11:26 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-31 20:27 crc32 and lib.a (was Re: [PATCH] nbd in 2.5.3 does not Petr Vandrovec
2002-01-31 20:31 ` Jeff Garzik
2002-01-31 22:53   ` [PATCH] " Petr Vandrovec
2002-01-31 22:59   ` David S. Miller
2002-01-31 23:08     ` Jeff Garzik
2002-01-31 23:43       ` David Lang
2002-01-31 23:24     ` [PATCH] Re: crc32 and lib.a (was Re: [PATCH] nbd in 2.5.3 does Alan Cox
2002-01-31 23:21       ` Arnaldo Carvalho de Melo
2002-02-02 16:32         ` Denis Vlasenko
2002-02-02 12:57           ` Jens Axboe
2002-02-02 13:16             ` arjan
2002-02-02 13:52               ` Jens Axboe
2002-02-03 11:37           ` David Woodhouse
2002-01-31 23:43       ` Jeff Garzik
2002-02-01  8:14       ` David Woodhouse
2002-02-02  2:12       ` Chris Wedgwood
2002-02-02  3:01         ` Andrew Morton
2002-02-02  7:30           ` Chris Wedgwood
2002-02-02  7:42             ` Daniel Jacobowitz
2002-02-02  8:08               ` Jeff Garzik
2002-02-02 19:20                 ` Daniel Jacobowitz
2002-02-02  8:06             ` Jeff Garzik
2002-02-02  8:08             ` Keith Owens
2002-02-02  8:40               ` David Woodhouse
2002-02-02  8:59                 ` Keith Owens
2002-02-02  9:14                   ` David Woodhouse
2002-02-03  4:14       ` Eric W. Biederman
2002-02-03  7:01         ` Ralf Baechle
2002-02-03  9:13           ` Chris Wedgwood
2002-02-03 12:16           ` David Woodhouse
2002-02-03 12:33             ` Chris Wedgwood
2002-02-03 12:47             ` David Woodhouse
2002-02-03 13:40           ` Alan Cox
2002-01-31 23:45     ` David S. Miller
2002-02-01  0:32       ` Alan Cox
2002-02-01 10:07       ` Horst von Brand
2002-02-01 10:28         ` Keith Owens
2002-02-01 11:03         ` David S. Miller
2002-02-01 11:25           ` Keith Owens [this message]
2002-02-01 14:56             ` Jeff Garzik
2002-02-01  0:42 Alan Cox
     [not found] ` <20020131.162549.74750188.davem@redhat.com>
2002-02-01  0:30   ` David S. Miller
2002-02-01  3:46     ` Jeff Garzik
2002-02-01  4:18     ` H. Peter Anvin
2002-02-01  4:35       ` Jeff Garzik
2002-02-01  4:25     ` David S. Miller
2002-02-01  4:48       ` Jeff Garzik
2002-02-01  5:10       ` Keith Owens
2002-02-01  5:12         ` Jeff Garzik
2002-02-01  5:18           ` Keith Owens
2002-02-01 13:42             ` Horst von Brand
2002-02-03 23:34               ` Keith Owens
2002-02-04 20:14                 ` Horst von Brand
2002-02-01  5:59       ` David S. Miller
2002-02-01  6:01       ` David S. Miller
2002-02-01  6:11         ` Keith Owens
2002-02-01  6:26         ` David S. Miller
2002-02-01  6:43           ` Keith Owens
2002-02-01 15:03           ` Alan Cox
2002-02-01 14:55             ` Jeff Garzik
2002-02-01 15:12               ` Petr Vandrovec
2002-02-01 16:08               ` David Woodhouse
2002-02-04 13:24               ` Horst von Brand
2002-02-05  7:51                 ` Jeff Garzik
2002-02-01 15:19     ` Alan Cox
2002-02-01 19:37     ` Rob Landley
2002-02-01 19:50       ` Jeff Garzik

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=10884.1012562720@ocs3.intra.ocs.com.au \
    --to=kaos@ocs.com.au \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®