From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27482 invoked by alias); 2 Jan 2013 16:57:18 -0000 Received: (qmail 27462 invoked by uid 22791); 2 Jan 2013 16:57:13 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-ob0-f172.google.com (HELO mail-ob0-f172.google.com) (209.85.214.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Jan 2013 16:57:05 +0000 Received: by mail-ob0-f172.google.com with SMTP id za17so13072913obc.31 for ; Wed, 02 Jan 2013 08:57:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=1XoP86NVH0pK1FscC+jF/u6X5wNp5YnxUM7FT/zr+R4=; b=GdrIkg7fvxN8wVsX4/o+LpPn4SD70u+zv+2hGff5hYwsyjYp04s4xbOe2nK4VDjCIK qpvTJfW+DudKjmTCY5RFWyvq2hEI8NMzpeX+h4IFV38uYNSYn/2j7JZmhofw5c6j7dvD LvILg5G/msl6rgbYtRo6oj5ZhAP8AoM6HpCKjRwDeuml/Km6xHU0StG3SreTTqwmEOLm uxgDbmwBStAKp77nFME6A2fxvRbMIXXCwwPDZ0fhWhtsjFGipiKduw9t6AAOZTDOvmxp ETtA4oPhWj4LeaOKY09ly5UMq8210wWPQcDTIOOHXfQA7oW/VL0KCqCuRna16fMQZovj dbuw== MIME-Version: 1.0 Received: by 10.182.95.205 with SMTP id dm13mr38325282obb.9.1357145825017; Wed, 02 Jan 2013 08:57:05 -0800 (PST) Received: by 10.182.7.38 with HTTP; Wed, 2 Jan 2013 08:57:04 -0800 (PST) In-Reply-To: <20130102090144.GA26841@debian.localdomain> References: <20130102090144.GA26841@debian.localdomain> Date: Wed, 02 Jan 2013 16:57:00 -0000 Message-ID: Subject: Re: compile linux kernel 2.6.0 failed From: Ian Lance Taylor To: horseriver Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQn0YEGz+RLPJM+RGC8UVJ9WflDK7gtYdBLNqMWoW2hrUddftsqRJdHQxx9CNT2onUU5zLzOv7HeolF/A5hzh4svPMPEYusK24ktLl3wFYESfgoDf1RvNIvWVXKl5syMDgSZGEHSwvEjmt7voqi+ZcSlMaLmZqtUlSVI4y+56MRjtwroQXpdPxALAGAEoNAsRrwo/a1h X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg00002.txt.bz2 On Wed, Jan 2, 2013 at 1:16 AM, horseriver wrote: > > I am compiling 2.6.0 kernel with gcc 4.4.5 and link with ld 2.20 version. > > when linking .so , output this error : > > /usr/bin/ld: arch/i386/kernel/vsyscall-int80.so: Not enough room for program headers, try linking with -N > > does gcc generate the program headers ? why not enough room for it ? > > I guess it is because gcc version is not compitable with ld version > > is there some advice ? GCC does not generate the program headers. The linker does. This is unlikely to be an issue of compatibility between GCC and ld. In fact this probably has nothing to do with GCC at all. It is more likely to be an issue of compatibility between the kernel's linker script and the version of ld that you are using. I don't know why this fails for you, but since GNU binutils 2.23 has been released, I would recommend trying that. Alternatively, since 2.6.0 is relatively old, trying using an older version of the GNU binutils. Ian