delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2017/01/25/20:54:34

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=i9YNEeXR67M4XwQDHkmu/1KsJt9ellGzkaODT/LhzqE=;
b=mkyTpJB9sI/MKhzt3v3dUBv0BRpkh/a78PbRN2IO4pg1gcTmPSX8tkpB7cHSWOGmpe
DMJG6XUjiDC9QkMpBt8fXN/Ye/rLcrwDDhbL1DkcquBSqXvu8g6IwmMijWXhA7kQL9qL
LhZxxHv72KZ2cKgzjTrjGhETXqXwjqjcIIuN+it+qaw+d9PzDeCkoEdsM6nHku8+VkDe
kQvpRMdwBopLpuugRflEuEag2mOsGFizytrue7A2XxL+04Ct3kEohJc9PFrK+5LaGmmt
Gu0yXSdfH4kfo3f/o31fPWuNIShHxjom4mxeAkhVJyTEoxSNF1+Z0c0RChXF8rVh+Ibu
9L7g==
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=i9YNEeXR67M4XwQDHkmu/1KsJt9ellGzkaODT/LhzqE=;
b=CIFNmB14Lth4wTD8zYmXdypJw1qfTMfCNHxVd+PzxSELkSNVd3r6QCk8DHI5a6eUYR
9uBnq1Diod60uMnvWCFL9+Xb5CN7coQ/xmEKmHyQ3MS8Ne+FpzbM+scc/P/zSXxMeGIg
AVq93Rx6qXYljVc+HSRVnO/lN0hJiC2EnTz1HlMJEzcf75Y5bcUjtUtaPcNizHsLaGzp
+ophxtlsjak9pJwLHJWFiD4aur77JM5F+cVHcjXsvYjxPsZtuwwU4OlMA7GBjyfJGby9
BdilsGDeBeYxK5XcqD9jD57w6P+BkRKHt0tRk1P/+QIwbpsLABBuRnnCq5RNczKfmbBF
PnbA==
X-Gm-Message-State: AIkVDXJYqLMJGezOBOIZTCt7fz0+2iTQQTv3GAuRNl3RVD5ixV9njbnGwc/hvvoN7xfFTQygEo5Sfh2GUUZIYA==
X-Received: by 10.107.162.194 with SMTP id l185mr771887ioe.184.1485394192232;
Wed, 25 Jan 2017 17:29:52 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <6835ad4a-5978-42dc-8ccf-587040458abb@googlegroups.com>
References: <54e4e15b-fb44-453a-9b1a-0c774a47b307 AT googlegroups DOT com>
<CAA2C=vA+Zj1+ZfG9hmzOxPugyti1Sv8wOrROavObqMiaQCeuAg AT mail DOT gmail DOT com>
<36a727e1-bebe-4332-9ac6-b52fc2d18ef3 AT googlegroups DOT com> <CAA2C=vBjDbEcwz8Ybe2kc0vN_yadJjhMFxg5k_CHKgj9crBNsQ AT mail DOT gmail DOT com>
<6835ad4a-5978-42dc-8ccf-587040458abb AT googlegroups DOT com>
From: "Louis Santillan (lpsantil AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Date: Wed, 25 Jan 2017 17:29:51 -0800
Message-ID: <CAB9Rao-fsSYtRCEEMOD4NbEnHUiOkmCt8a8tZx6__ZHZrQbABw@mail.gmail.com>
Subject: Re: micropython djgpp build
To: "djgpp AT delorie DOT com" <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

--gc-sections functionality could probably be replaced by utilizing
`strip` and/or using deep object inspection with `nm` or other tools.

On Wed, Jan 25, 2017 at 4:12 PM, multisosnooley AT gmail DOT com [via
djgpp AT delorie DOT com] <djgpp AT delorie DOT com> wrote:
> On Wednesday, January 25, 2017 at 6:19:02 PM UTC+3, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] wrote:
>> On 1/25/17, multisosnooley AT gmail DOT com [via djgpp AT delorie DOT com]
>> <djgpp AT delorie DOT com> wrote:
>> > On Wednesday, January 25, 2017 at 3:07:30 PM UTC+3, Ozkan Sezer
>> > (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] wrote:
>> >> On 1/25/17, multisosnooley AT gmail DOT com [via djgpp AT delorie DOT com]
>> >> <djgpp AT delorie DOT com> wrote:
>> >> > Hi!
>> >> >
>> >> > We have a problem with building micropython with djgpp with
>> >> > '--gc-sections'
>> >> > flag active. It segfaults on linking.
>> >> > More info:
>> >> > https://github.com/micropython/micropython/issues/2560
>> >> > https://github.com/micropython/micropython/pull/2644
>> >> >
>> >>
>> >> Possibly related to this?
>> >> https://sourceware.org/bugzilla/show_bug.cgi?id=20401
>> >>
>> >> Which binutils version are you using?
>> >
>> > I don't exactly now which version of binutils was used in previous cases,
>> > but right now newest available is
>> > http://www.delorie.com/pub/djgpp/deleted/v2gnu/bnu226sr3.zip and in bug you
>> > reference fix comes in 2.27, but it is not released yet. Or?
>> >
>>
>> There is a djgpp port of 2.27:
>> http://www.delorie.com/pub/djgpp/current/v2gnu/bnu227s.zip
>> http://www.delorie.com/pub/djgpp/current/v2gnu/bnu227b.zip
>> Besides, the fix is (should be) applicable to 2.26 too.
>>
>> Looking at the links you provided:
>> https://github.com/micropython/micropython/issues/2560#issuecomment-260157891
>> mentions binutils 2.20.1.20100303: if that is version giving you the
>> segfault then I don't know, because but as far as I remember the
>> --gc-sections support for coff and pe targets began with
>> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0f088b2a
>> and that corresponds to either 2.25.1 or 2.26
>
> Just tested:
>
> [poh ~/tmp/upython]$ cat test.c
> int main () { return 0; }
> [poh ~/tmp/upython]$ djgpp-6.2.0/bin/i586-pc-msdosdjgpp-gcc -Wl,--gc-sections test.c
> collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
> compilation terminated.
> [poh ~/tmp/upython]$ djgpp-6.2.0/bin/i586-pc-msdosdjgpp-gcc --version
> i586-pc-msdosdjgpp-gcc (GCC) 6.2.0
> Copyright (C) 2016 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> [poh ~/tmp/upython]$ djgpp-6.2.0/bin/i586-pc-msdosdjgpp-ld --version
> GNU ld (GNU Binutils) 2.26.20160125
> Copyright (C) 2015 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License version 3 or (at your option) a later version.
> This program has absolutely no warranty.
>
> Will try to test with 2.27

- Raw text -


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