delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2017/05/26/16:50:19

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Recipient: djgpp-workers AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=mime-version:from:date:message-id:subject:to:cc;
bh=Nhram7Hhq6b+z5LZhScnLvSdxDvYulHT5k6AqLTtpV8=;
b=IY0ptFXEXqZI0F/OYo/oQ6FFeuUU83VaP/6fEkVGzPdpEyf0zlEq+wkgYVN4OHixQk
NsIn+DZaFRgStFL8TV/zxKAfE/2bxsbi8Ms2h8aLcTJEy4+u9ue2O5iYf0oTxzdyFDuD
3OfiAuZcDZwkR5Ixm4reqBmQqNYBhAnt2PlaMXUwSiShw5SiGXEpNRNwJSCSA9liM8MQ
D7zeR5HweiLZISY3UVoil0uXXsIUWa7SfAUueL+yirOtBXPVoWSzWgmROMGGIGeNr+vw
Lc1KEJLW0Gx3hfBB0/cstSGPsZ4Bdgdy2Atv0RngJEj94uku/DvKi9KvXe7pDDGWIz20
ybVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc;
bh=Nhram7Hhq6b+z5LZhScnLvSdxDvYulHT5k6AqLTtpV8=;
b=FU7JG9y+1WM321gpso2qg/lKBX1HF/vYsV4IpGRtNDdOf3gh0vCvMiAlj3bPvXWIdW
mz8jYts8aNbWZUSTGCdoKwl1fRDeJxjrVa08wBCbsLBckQad9kc10I0oSisXWlPZOYkh
FM7Bor/4LlOKSE99BFwTDbSBxVVlZ0UpySj9Xq8Lx9rECQzYskkOlzs+TA+NF1vhqI/m
fPGtrGisJsQpQTFqxednUxXLxy8+MHcb0DOVGF740PVrz8LtUQ+WVva314s/ndTk8d9e
lkPPZgwDv9BDZkKf151/GVZch5fC64JUx17iaydfQy08XOeOEIlppPMiI8AVp0HkH6NH
eyQA==
X-Gm-Message-State: AODbwcAH8jULa+lMsSiG0si894ozHob+Bb4RCVK0G94GlyFdlEunu+sc
W5RD5pI9qIKgztjWXo7GsUpkOtYVfA==
X-Received: by 10.55.42.212 with SMTP id q81mr3901092qkq.228.1495831805245;
Fri, 26 May 2017 13:50:05 -0700 (PDT)
MIME-Version: 1.0
From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp-workers AT delorie DOT com]" <djgpp-workers AT delorie DOT com>
Date: Fri, 26 May 2017 23:50:04 +0300
Message-ID: <CAA2C=vCKAaT=HRe1QOGye6x9xPr80fyQqL809faKRs1tjEsjQg@mail.gmail.com>
Subject: [PATCH] dxe.ld: handle .bss.* sections separately
To: djgpp AT delorie DOT com, djgpp-workers AT delorie DOT com
Cc: andris DOT pavenis AT iki DOT fi
Reply-To: djgpp-workers AT delorie DOT com

Please review the the following patch.  If there are no objections, I'd
like to apply it to the cvs.  Without this, generation of dxes from c++
projects using gcc7 and linking to libstdc++.a and libgcc.a fails with
the "more than one section" error.

--
O.S.


* dxe.ld: handle .bss.* sections separately. (c.f. djgpp.djl)

  this allows generation of dxes from c++ projects using gcc7.

diff --git a/lib/dxe.ld b/lib/dxe.ld
index f75e96b..d1d71a5 100644
--- a/lib/dxe.ld
+++ b/lib/dxe.ld
@@ -22,13 +22,14 @@ SECTIONS {
     djgpp_last_dtor = . ;
     *(.data)
     *(.data.*)
+    *(.bss.*)
     *(.gcc_exc*)
     ___EH_FRAME_BEGIN__ = . ;
     *(.eh_fram*)
     ___EH_FRAME_END__ = . ;
     LONG(0);
     *(.gnu.linkonce.d*)
-    *(.bss .bss.* .gnu.linkonce.b.*)
+    *(.bss .gnu.linkonce.b.*)
     *(COMMON)
   }
   /DISCARD/ : { *(gnu.lto_*) }

- Raw text -


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