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:from:date:message-id:subject:to; bh=VQrRTfWwNmKftlQY7xT17DDOPI/m8A2s5f2B/iwYvTE=; b=G9V1Fkqusdjg3ciPY71A2fxYsYZu0YxoEdzsMCkcapRwI4osZPYGEQ3PgnzMClGlzT RLPRrPlI0+InEhZBRjQTxBoPlfRsNiVHoejCFinVZ5UN3ZjfBlHKudXtq/zGKHg8b+Vc FoWh7XOZqbU85dy57y+Kz8zX1X47MI31AevyMNBcbboT5PHlZ0VFtlb6LpjD1hETtDze Jj0sh7HIlwGdxKkOD7VekBmGEnPBJOI+PrTrUEG4fPhwbGVbxIx7ssdhb8TkMtbkWpL2 1WBL1nQqx406V9+0jGShUcrAjB+ytTqkz9b/uS94RxySmcf3yz0KmmFcnSR97TboHdOh wxIQ== 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; bh=VQrRTfWwNmKftlQY7xT17DDOPI/m8A2s5f2B/iwYvTE=; b=HavMlVi86tRGut0z7SYXKpy7iHmX/9I7QBL9qbZTiQE29uyJgjd/HfQa2HXKPGKzOr NT0dkysCGl3Q1r8rpbfTJs0N/GoYCO425cQwxlEUhH0yHLprZr15tu8QmBZ18BJ5T25s DpzsUUVsmi16rkVkeHwi0l2bDfEe5tajNro4mdywoapZrAbVBqQErMCXmiJl7VeIJerN Z7UzTPKoRtEar5ZhtzuBB8+60ot8wvpcfi+dYHjuZ/6Aw3at3zTM4B/UfslEkoD1xlVy ScGvMAx5tR+P2MfZbycE9b4nt3pHJLbsKTBg5VjuneopKAtyWA3ywc4/nxvriyiC50/p 6yCA== X-Gm-Message-State: AN3rC/5J271DaaJLI1Wgj4CjnmXR55nYDJLa/8AYSOvjCHU/0/88bqBQ AIWFrY0qCV0MXPtnmfXEecZutA8YRg== X-Received: by 10.237.32.238 with SMTP id 101mr28951176qtb.162.1493104031580; Tue, 25 Apr 2017 00:07:11 -0700 (PDT) MIME-Version: 1.0 From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Tue, 25 Apr 2017 10:07:11 +0300 Message-ID: Subject: dxe.ld doesn't handle linkonce.b sections To: djgpp Content-Type: text/plain; charset=UTF-8 Reply-To: djgpp AT delorie DOT com 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? -- O.S.