www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2017/04/25/13:03:20

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
bh=b4FJoMPQ5B+JomEbbJbpWnnOci9bTZqBZopef8wAyVs=;
b=iFStSjyhg/MaS6YcjjSYFQd/pzzUKNFhA3S3rDXf6Q4JxbWkU4ad2WUXY8rTswJUqs
IEA6t+LWjcYw9Jsic5joGTOl1XtrLTbsz4ZxS6C2WNEsb+6jeChwpY+VPbTscppZ9G9v
CkWS8J4DwIGUyxGaTvBJBGFAKEflGzZuUOFX1a6PPrWdVcciCIYOMVzN8o918OsOTVCh
gJNlrRxZwB/Qhp85KOSgh+KR5AcITstXPenxO7WQQ/MABXz/CciF6geS4saQAz8372zX
K0BelrBVo7QAIgx9Z8Bq/L2sFevfiORzlu0f6RbKrjFBa38J5ftV4IKqXpRIWvRitu0w
AJLA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to;
bh=b4FJoMPQ5B+JomEbbJbpWnnOci9bTZqBZopef8wAyVs=;
b=NtrzVA3kPDLmAvwu3zjzAA2LejlL155+J4Y0rjO2A42/Aw1/F8Av4D/dsoA8EshO1C
RUvUgIoB4ZHAZ0giirHAhxgAhiwgQx97AI5D0fAj5BYSo5oCUBP2qeygrHIqRHSL9miV
F5IEwYlGMFzI/5d9GXp0C/joWDu3zloW3EyzvGeM6hX5vCVqnVsgT4QVbvXWRCVkcuFs
41q/mUwHNkAUuulKSUkWg6/E5HEXjmhyOo9J0EJa4LXSjObasQFXCyT2nhqVAfRcdmvM
1peoFLP08ePkoN0aNjeI3vILfO76XI1OR5x5tB318eWpxt4p13ZjmAufRS06UhgEXEfK
IMFg==
X-Gm-Message-State: AN3rC/7bKAdh+JLNWM3TFjBUEcboDTUzUoAQKd19l+bBzrfFoxJD0b9o
677Rbko2qIv+pLP9s1EgfuBQUNpPo44N
X-Received: by 10.200.53.45 with SMTP id y42mr32642177qtb.136.1493139791051;
Tue, 25 Apr 2017 10:03:11 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <CAA2C=vBoV2C2PVKuzo86kQ0Joa6LdH5Ee6FFNjM8oak+KRNM2w@mail.gmail.com>
References: <CAA2C=vBoV2C2PVKuzo86kQ0Joa6LdH5Ee6FFNjM8oak+KRNM2w AT mail DOT gmail DOT com>
From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Date: Tue, 25 Apr 2017 20:03:10 +0300
Message-ID: <CAA2C=vCQyzt4uiahXm_EeHYTq_Zna4RGYCWgKv_VPXk7g5Xzcw@mail.gmail.com>
Subject: Re: dxe.ld doesn't handle linkonce.b sections
To: djgpp <djgpp AT delorie DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 4/25/17, Ozkan Sezer <sezeroz AT gmail DOT com> wrote:
> Our current dxe.ld doesn't handle .gnu.linkonce.b.* sections.
> Objects built with -ffunction-sections -fdata-sections fail,
> because the current dxe.ld doesn't handle .bss.* either.
> Never needed/used it, but lto sections possibly need discarding
> as in djgpp.ld.
>
> Is the following patch correct?  Haven't actually run-tested it
> yet, but posting it for review for now:
>
> --- dxe.ld	23 Apr 2003 05:59:20 -0000	1.4
> +++ dxe.ld	25 Apr 2017 07:03:50 -0000
> @@ -28,7 +28,8 @@
>      ___EH_FRAME_END__ = . ;
>      LONG(0);
>      *(.gnu.linkonce.d*)
> -    *(.bss)
> +    *(.bss .bss.* .gnu.linkonce.b.*)
>      *(COMMON)
>    }
> +  /DISCARD/ : { *(gnu.lto_*) }
>  }
>
>
> The .bss.*sections are handled diferently in djgpp.ld, though:
> Should we do the same in dxe.ld?

Just tested the above patch by creating a dxe with it
(a dxe which otherwise would fail to build before), and
running it: things work fine for me.

Should apply this to CVS?  Any other suggestions?

--
O.S.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019