Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Stupidity, like virtue, is its own reward.


devel / comp.os.msdos.djgpp / DJGPP build of gcc-10.3.0 and make 4.3 incompatibility

SubjectAuthor
* DJGPP build of gcc-10.3.0 and make 4.3 incompatibilityStefan Ring
`* Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibilityStefan Ring
 `* Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibilityAndris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com]
  +* Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibilityStefan Ring
  |`- Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibilityRayeR
  `* Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibilityJ.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com]
   `* Re: [Suspected Spam] Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibilityAndris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com]
    `* Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibilityJ.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com]
     `- Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibilityJ.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com]

1
DJGPP build of gcc-10.3.0 and make 4.3 incompatibility

<e69c2d84-e2cf-445c-b666-803170f473den@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=105&group=comp.os.msdos.djgpp#105

  copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:6214:27c7:: with SMTP id ge7mr15900218qvb.44.1635758462819;
Mon, 01 Nov 2021 02:21:02 -0700 (PDT)
X-Received: by 2002:a5b:d50:: with SMTP id f16mr19341450ybr.350.1635758462656;
Mon, 01 Nov 2021 02:21:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 1 Nov 2021 02:21:02 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=81.217.199.198; posting-account=RR3OeQoAAACYgn23XqTski3oGOFlt-O1
NNTP-Posting-Host: 81.217.199.198
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e69c2d84-e2cf-445c-b666-803170f473den@googlegroups.com>
Subject: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility
From: stefan...@gmail.com (Stefan Ring)
Injection-Date: Mon, 01 Nov 2021 09:21:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 13
 by: Stefan Ring - Mon, 1 Nov 2021 09:21 UTC

While trying to recreate the DJGPP gcc binaries, by following the excellent instructions in readme.DJGPP, I stumbled across this problem that caused me a lot of grief. I used Windows XP for building and even installed Vista as a possible remedy, but to no avail. The same thing happened there.

The last line in libgcc/Makefile.in does an include of *.dep, but somehow in make 4.3 the expansion of this wildcard expression gets truncated somewhere in the middle, and then it complains about not being able to find the file whose name got truncated. I patched around this by splitting it up into multiple chunks of wildcard matches on multiple lines, but this got me further only by a tiny amount. The next problem was that during an "exit 0" in the configuration stage, make would say "memory fouled" and abort.

After switching to make 4.1r2, the build worked beautifully.

Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility

<4016e9cd-0be1-4758-8f29-db7770508ed6n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=106&group=comp.os.msdos.djgpp#106

  copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:620a:2903:: with SMTP id m3mr7138243qkp.452.1635760104017;
Mon, 01 Nov 2021 02:48:24 -0700 (PDT)
X-Received: by 2002:a25:6f05:: with SMTP id k5mr31581967ybc.15.1635760103749;
Mon, 01 Nov 2021 02:48:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 1 Nov 2021 02:48:23 -0700 (PDT)
In-Reply-To: <e69c2d84-e2cf-445c-b666-803170f473den@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=81.217.199.198; posting-account=RR3OeQoAAACYgn23XqTski3oGOFlt-O1
NNTP-Posting-Host: 81.217.199.198
References: <e69c2d84-e2cf-445c-b666-803170f473den@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4016e9cd-0be1-4758-8f29-db7770508ed6n@googlegroups.com>
Subject: Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility
From: stefan...@gmail.com (Stefan Ring)
Injection-Date: Mon, 01 Nov 2021 09:48:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 19
 by: Stefan Ring - Mon, 1 Nov 2021 09:48 UTC

On Monday, November 1, 2021 at 10:21:03 AM UTC+1, Stefan Ring wrote:
> While trying to recreate the DJGPP gcc binaries, by following the excellent instructions in readme.DJGPP, I stumbled across this problem that caused me a lot of grief. I used Windows XP for building and even installed Vista as a possible remedy, but to no avail. The same thing happened there.
>
> The last line in libgcc/Makefile.in does an include of *.dep, but somehow in make 4.3 the expansion of this wildcard expression gets truncated somewhere in the middle, and then it complains about not being able to find the file whose name got truncated. I patched around this by splitting it up into multiple chunks of wildcard matches on multiple lines, but this got me further only by a tiny amount. The next problem was that during an "exit 0" in the configuration stage, make would say "memory fouled" and abort.
>
> After switching to make 4.1r2, the build worked beautifully.

I forgot to mention: I used Andris Pavenis' builds from the directory "rpms/djcross-gcc-10.3.0" to create gcc1030s.zip and this in turn for building on Windows. And I consider it very likely that at least 10.2.0 will be affected in the same way, but I have not tested this.

Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility

<df91c1b1-43f4-0074-dfd6-b271feb06b39@iki.fi>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=107&group=comp.os.msdos.djgpp#107

  copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 03 Nov 2021 09:43:38 -0500
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
Message-ID: <df91c1b1-43f4-0074-dfd6-b271feb06b39@iki.fi>
Date: Wed, 3 Nov 2021 16:43:23 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.1.1
Subject: Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility
Content-Language: en-US-large
To: djgpp@delorie.com
References: <e69c2d84-e2cf-445c-b666-803170f473den@googlegroups.com>
<4016e9cd-0be1-4758-8f29-db7770508ed6n@googlegroups.com>
From: djg...@delorie.com (Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com])
In-Reply-To: <4016e9cd-0be1-4758-8f29-db7770508ed6n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7Bit
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 48
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-lvmeDv3XSix5jownJt5u1UN6q3SIHfnsX71uogs7ujWyOEOIbnnqs4JWVvUD3zsAVTJlHqyzIKNoSmN!NtWq6rGMMWJzJ1Eqn38ISY+s8ZfZRzSNGQUek/eXpyNrLhDu6heLzHl2P+kZgi3YlS7VXXQf
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4329
 by: Andris Pavenis (andr - Wed, 3 Nov 2021 14:43 UTC

On 11/1/21 11:48, Stefan Ring (stefanrin@gmail.com) [via djgpp@delorie.com] wrote:
> On Monday, November 1, 2021 at 10:21:03 AM UTC+1, Stefan Ring wrote:
>> While trying to recreate the DJGPP gcc binaries, by following the excellent instructions in readme.DJGPP, I stumbled across this problem that caused me a lot of grief. I used Windows XP for building and even installed Vista as a possible remedy, but to no avail. The same thing happened there.
>>
>> The last line in libgcc/Makefile.in does an include of *.dep, but somehow in make 4.3 the expansion of this wildcard expression gets truncated somewhere in the middle, and then it complains about not being able to find the file whose name got truncated. I patched around this by splitting it up into multiple chunks of wildcard matches on multiple lines, but this got me further only by a tiny amount. The next problem was that during an "exit 0" in the configuration stage, make would say "memory fouled" and abort.
>>
>> After switching to make 4.1r2, the build worked beautifully.
> I forgot to mention: I used Andris Pavenis' builds from the directory "rpms/djcross-gcc-10.3.0" to create gcc1030s.zip and this in turn for building on Windows. And I consider it very likely that at least 10.2.0 will be affected in the same way, but I have not tested this.
>
Actually gcc-10.3.0 was built for DJGPP, just not uploaded (both RPMs and DJGPP packages).
Uploading could be easy.

gcc-11 is a different story:

- Ada library does not compile - alignment issues which are likely to cause problems also for other
languages like (c or C++) when SSE or AVX is being used (and maybe even with earlier GCC versions)

- I have build gcc-11 cross-compiler under ArchLinux (leaving Ada out). There was some problems
building RPM but I have not studied them in more details

- Also building native compiler failed (also without Ada)

Problem with cross-compiler:

- libstdc++v3 configure does not check correctly available C library functions and as result they
may not be put into std namespace. I would like to do cross-native build (building DJGPP native
compiler using cross-compiler from Linux but it would have the same problem with libstdc++

Also:

Actually myös SRPM package is generated. Generating script is not in SRPM or gccXXXs.zip but can be
found in my GCC repo fork in GitHub.

For djgpp/native/gcc-10 branch it is:

https://github.com/apavenis/djgpp-gcc/blob/djgpp/native/gcc-10/djgpp/mk-djcross-gcc.sh

Script generates

- SRPM package

- patch to be applied for ArchLinux build

Andris

Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility

<f79e2479-d11a-4716-8416-1e7339d38f1an@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=108&group=comp.os.msdos.djgpp#108

  copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:6214:29c9:: with SMTP id gh9mr44031216qvb.50.1635951060646;
Wed, 03 Nov 2021 07:51:00 -0700 (PDT)
X-Received: by 2002:a05:6902:706:: with SMTP id k6mr21888228ybt.265.1635951060426;
Wed, 03 Nov 2021 07:51:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Wed, 3 Nov 2021 07:51:00 -0700 (PDT)
In-Reply-To: <df91c1b1-43f4-0074-dfd6-b271feb06b39@iki.fi>
Injection-Info: google-groups.googlegroups.com; posting-host=89.144.197.13; posting-account=RR3OeQoAAACYgn23XqTski3oGOFlt-O1
NNTP-Posting-Host: 89.144.197.13
References: <e69c2d84-e2cf-445c-b666-803170f473den@googlegroups.com>
<4016e9cd-0be1-4758-8f29-db7770508ed6n@googlegroups.com> <df91c1b1-43f4-0074-dfd6-b271feb06b39@iki.fi>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f79e2479-d11a-4716-8416-1e7339d38f1an@googlegroups.com>
Subject: Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility
From: stefan...@gmail.com (Stefan Ring)
Injection-Date: Wed, 03 Nov 2021 14:51:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 38
 by: Stefan Ring - Wed, 3 Nov 2021 14:51 UTC

On Wednesday, November 3, 2021 at 3:43:44 PM UTC+1, Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com] wrote:
> Actually gcc-10.3.0 was built for DJGPP, just not uploaded (both RPMs and DJGPP packages).
> Uploading could be easy.
>
> Problem with cross-compiler:
>
> - libstdc++v3 configure does not check correctly available C library functions and as result they
> may not be put into std namespace. I would like to do cross-native build (building DJGPP native
> compiler using cross-compiler from Linux but it would have the same problem with libstdc++
>
> Also:
>
> Actually myös SRPM package is generated. Generating script is not in SRPM or gccXXXs.zip but can be
> found in my GCC repo fork in GitHub.
>
> For djgpp/native/gcc-10 branch it is:
>
> https://github.com/apavenis/djgpp-gcc/blob/djgpp/native/gcc-10/djgpp/mk-djcross-gcc.sh
>
> Script generates
>
> - SRPM package
>
> - patch to be applied for ArchLinux build

Yeah, I figured out most of this, and I already used the SRPM to build the zip and build that on Windows. I just noticed that it does not work with (djgpp) make 4.3, but it does with make 4.1r2 (from the directory "deleted", IIRC).

I also did a cross-native build of gcc-10.3, and it seemed to work ok, but I did not test it on anything more sophisticated than a C++ "Hello World".

Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility

<4d67bec4-20fb-41f5-b155-48b0e4ceb162n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=109&group=comp.os.msdos.djgpp#109

  copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:ad4:54ca:: with SMTP id j10mr31926408qvx.2.1636075795100;
Thu, 04 Nov 2021 18:29:55 -0700 (PDT)
X-Received: by 2002:a05:6902:706:: with SMTP id k6mr34467064ybt.265.1636075794943;
Thu, 04 Nov 2021 18:29:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Thu, 4 Nov 2021 18:29:54 -0700 (PDT)
In-Reply-To: <f79e2479-d11a-4716-8416-1e7339d38f1an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=89.177.38.126; posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp
NNTP-Posting-Host: 89.177.38.126
References: <e69c2d84-e2cf-445c-b666-803170f473den@googlegroups.com>
<4016e9cd-0be1-4758-8f29-db7770508ed6n@googlegroups.com> <df91c1b1-43f4-0074-dfd6-b271feb06b39@iki.fi>
<f79e2479-d11a-4716-8416-1e7339d38f1an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4d67bec4-20fb-41f5-b155-48b0e4ceb162n@googlegroups.com>
Subject: Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility
From: rayer...@gmail.com (RayeR)
Injection-Date: Fri, 05 Nov 2021 01:29:55 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 16
 by: RayeR - Fri, 5 Nov 2021 01:29 UTC

Another user have problem with Make 4.3 when compiling Mplayer for DOS:
http://www.bttr-software.de/forum/forum_entry.php?id=18363

H:\DJGPP\BUILD\MPLAYER\MPLAYER>make
Exiting due to signal SIGSEGV
Page fault at eip=0002b22e, error=0004
eax=00000001 ebx=00000030 ecx=000fec10 edx=000febe0 esi=000d9578 edi=00000000
ebp=000d9558 esp=000d9550 program=H:\DJGPP\BIN\MAKE.EXE
cs: sel=00a7 base=00400000 limit=0011ffff
ds: sel=00af base=00400000 limit=0011ffff
es: sel=00af base=00400000 limit=0011ffff
fs: sel=008f base=00018190 limit=0000ffff
gs: sel=00bf base=00000000 limit=0010ffff
ss: sel=00af base=00400000 limit=0011ffff
App stack: [000daa50..0005aa50] Exceptn stack: [0005a96c..00058a2c]

Neither increasing of transfer buffer in stub didn't help.

Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility

<9788a12e-c532-b273-a13d-ae12d2eed8a7@gmail.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=110&group=comp.os.msdos.djgpp#110

  copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!news.swapon.de!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 08 Nov 2021 03:54:00 -0600
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=xlwXbynpf4KV9ggDbgqG/hr26Z0Z7ICGfAnh0D1K6Kg=; b=LWUAOQe8P7kz1pHfL6XKEaCnE+ycfTPZu8T1soRTtBEM9hOWlJrUM1TIQJIjaIZaGM lN0xeQxm/2YUOS6MEFg97NymPSKAlBWTr9iJa3GQ7VFgLtGyUZ2hN8xa2qtKIy9otFO8 HmOnIf6Q7HwyHcr/RpZ/6zEnfvz0CtnLftA6T0XWY9nfeEM/3tssa5YgSDzmEcGZv3nQ nQoKpCtRw6kKJsMwX7oGZg9RswEDNJju9ukvrLBPOFiLnjMjqSBtsVVKXcKdrW1Z62Jv 0mWt40KugyllnlxF98LKN+bu5JFvil0OiQ4RIIRnzP7fsrLR4PLuU38ytV6XG2Uzxu9e 1+gA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=xlwXbynpf4KV9ggDbgqG/hr26Z0Z7ICGfAnh0D1K6Kg=; b=NJRUeCUzSCbcUMZ7k03CrpWnjeCQUUrAnor6nYSbob0IBNcD55UnFwn0xpP3JZhI3F xwgXjlDcL4c2i+wAb5aECmprgrnIVhbc5izcjdvonFbfp7YOJu36CQisVDUMmg8K5mGa VajO3Z7DQEzE6/YFbkT5yAGmUfFIxJrk4GsODczv9Dr57uIaoxkBVLsQHk7Dxei1dbvK p/WIeBYS10NfgPH92JiRcxc3Hjy6PdzCdQSzk1/Q3DLlRKZzlAygF79Or7Zy9pWHsJQ8 yVpgvWV9NY6AMpPW+/QvdHwjlLVJelFgDHXnjWdRvGSN23Io54NSNfIo+DGqONPCe5Yu VDJA==
X-Gm-Message-State: AOAM532dNiAhD7tBsV7hMKFDkAWkDEbrDrC96+d5uXUjLhY+pOjSoCCr KkPXzCHzJVNHOzirfWHWZLtVBxvBfzQ=
X-Google-Smtp-Source: ABdhPJzaUBvuVi0dhxJbmCS3pFQB1COhAeTfzZd59w4DJJlUvc2urd/tNeKrDk1Usaog93zb3d3ISg==
X-Received: by 2002:aa7:d3cf:: with SMTP id o15mr26797385edr.265.1636365229087; Mon, 08 Nov 2021 01:53:49 -0800 (PST)
Message-ID: <9788a12e-c532-b273-a13d-ae12d2eed8a7@gmail.com>
Date: Mon, 8 Nov 2021 10:53:46 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0
Subject: Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility
Content-Language: en-US
To: djgpp@delorie.com
References: <e69c2d84-e2cf-445c-b666-803170f473den@googlegroups.com> <4016e9cd-0be1-4758-8f29-db7770508ed6n@googlegroups.com> <df91c1b1-43f4-0074-dfd6-b271feb06b39@iki.fi>
From: djg...@delorie.com (J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com])
In-Reply-To: <df91c1b1-43f4-0074-dfd6-b271feb06b39@iki.fi>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 20
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-oVUZKLaE9VSxz2gAAApYyl7zYCeId4NPpM5w+VL2XO2pZhZCYJPIUl1uOb4fXbBxcly7kELN9HGzGuA!TPhV+yHpgUHNKB6c7/XwK5uc1tOzDPv7hrzbopK09tNtW68+aUfSsnrIfeRBCjaYOr+5pWMGD19u
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4785
 by: J.W. Jagersma (jwjag - Mon, 8 Nov 2021 09:53 UTC

On 2021-11-03 15:43, Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com] wrote:
> Actually gcc-10.3.0 was built for DJGPP, just not uploaded (both RPMs and DJGPP packages). Uploading could be easy.

I've been waiting for djcross-gcc-10.3.0.tar.bz2, please do upload :)

> gcc-11 is a different story:
>
> - Ada library does not compile - alignment issues which are likely to cause problems also for other languages like (c or C++) when SSE or AVX is being used (and maybe even with earlier GCC versions)

What sort of alignment issues? I already ran into alignment trouble with SSE
(at run-time, not compile-time). To work around it, in the linker script I put
SUBALIGN(0x10) on the .text and .bss sections. For .data this is not possible
because it leaves gaps in the ctors/dtors list, so I ended up linking
*(.data .data.* .gnu.linkonce.d*) in .text. A bit of a hack but .text is
writable. I suppose the input section alignment could be changed in binutils
somewhere though.

Also in libc I had to put attribute __attribute__((force_align_arg_pointer)) on
__crt1_startup() to align the stack for ctors & main(). Alternatively this
alignment could be performed manually in crt0.S.

Re: [Suspected Spam] Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility

<2239fa27-8162-ac1c-d7ac-12bf7443493e@iki.fi>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=111&group=comp.os.msdos.djgpp#111

  copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 09 Nov 2021 10:44:07 -0600
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
Message-ID: <2239fa27-8162-ac1c-d7ac-12bf7443493e@iki.fi>
Date: Tue, 9 Nov 2021 18:43:53 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1
Subject: Re: [Suspected Spam] Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility
Content-Language: en-US-large
To: djgpp@delorie.com
References: <e69c2d84-e2cf-445c-b666-803170f473den@googlegroups.com> <4016e9cd-0be1-4758-8f29-db7770508ed6n@googlegroups.com> <df91c1b1-43f4-0074-dfd6-b271feb06b39@iki.fi> <9788a12e-c532-b273-a13d-ae12d2eed8a7@gmail.com>
From: djg...@delorie.com (Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com])
In-Reply-To: <9788a12e-c532-b273-a13d-ae12d2eed8a7@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from Quoted-Printable to 8bit by delorie.com id 1A9Ghxxd017581
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 40
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-g0N6THHAbMNYfLSIdTnLRE8qh2fz84BV7GsZOYpjgqs9kumecfnlxYLO/mdfyImhyeO8YFyUXuaG2Rj!4q5S2K8bMjSvoMxWh+RK8jCE5bOJH1hwuJ9huBXrmTQk7I9aKPi9Ve2Hcmv3QeDb8V/TxZoG
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3664
 by: Andris Pavenis (andr - Tue, 9 Nov 2021 16:43 UTC

On 11/8/21 11:53, J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com] wrote:
> On 2021-11-03 15:43, Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com] wrote:
>> Actually gcc-10.3.0 was built for DJGPP, just not uploaded (both RPMs and DJGPP packages).
>> Uploading could be easy.
>
> I've been waiting for djcross-gcc-10.3.0.tar.bz2, please do upload :)

File was already inside SRPM file so it was available. Just download size was big, Extracted and
uploaded

>
>> gcc-11 is a different story:
>>
>> - Ada library does not compile - alignment issues which are likely to cause problems also for
>> other languages like (c or C++) when SSE or AVX is being used (and maybe even with earlier GCC
>> versions)
>
> What sort of alignment issues?  I already ran into alignment trouble with SSE
> (at run-time, not compile-time).  To work around it, in the linker script I put
> SUBALIGN(0x10) on the .text and .bss sections.  For .data this is not possible
> because it leaves gaps in the ctors/dtors list, so I ended up linking
> *(.data .data.* .gnu.linkonce.d*) in .text.  A bit of a hack but .text is
> writable.  I suppose the input section alignment could be changed in binutils
> somewhere though.
>
> Also in libc I had to put attribute __attribute__((force_align_arg_pointer)) on
> __crt1_startup() to align the stack for ctors & main(). Alternatively this
> alignment could be performed manually in crt0.S.

I was thinking about possible runtime alignment problems.I have not tested it myself. Ada library
has some alignment checks and as far as I understand refuses to compile as max. available alignment
is not sufficient (error message is not clear).

Andris

Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility

<1d9e4c7e-baef-bf45-3a05-f28b426f2f37@gmail.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=112&group=comp.os.msdos.djgpp#112

  copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 10 Nov 2021 05:44:41 -0600
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to :references:from:subject:in-reply-to:content-transfer-encoding; bh=3lXAtZcP/JLmSX2uNEDaf0IuWpECGc6z5ijHlpLcRxo=; b=YPvT9F46fudlmGrjyn3ox9TV6y76WOdf/d5O+SJUGbudEO27+T+P6AFe8QoceqPq1G JJkBol34e1QHteqRZJb4TPDj6qtiMXDRP19M/eySwzNruuLznXOFs0SZvJGNA8UDn4Uk Kwb+RCXO+UD2BT3V3gnuc9sgF2NzkjU4vSZsKPihqfED50i9Y365XXeeAYNt7c024xSg /ITPnoDHArIKwJvXLuv0IHzY9H+AX6bla5PA9FqBZ8BxCQmNdX0WM/7zhudW0rb7v7gg bVyYf/SEElNurFrzWIHO8uXywMHhu+55nOzqmcI/EkY6ZA7dQa3BQwB+MaRQBgY7rwFt 4WpA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:references:from:subject:in-reply-to :content-transfer-encoding; bh=3lXAtZcP/JLmSX2uNEDaf0IuWpECGc6z5ijHlpLcRxo=; b=o1vLorX9rKhixH0BPPwkZu6PWjfsowcSDWLd6D6Tiq73teT1z9XO78g/a9eODekts+ PhGsCdBG16yMRYM8aDOP9dZIH+Qafwa+uoORl7zVeCLG1hv5yx7Hl82Lk/Yosxofk/At pJKXjBfWFB6c2CbN0w1iEYXfOQnF5CebFgSDKOFXJny/bITj6o4XB8K/aEZxwd/CdsMa GWWenIcdr8ELTIPsazfhkuyr6GVRN6TyMuMp8eELemJHU1xuY2dKPjvQ3mCHHW9dcrfl uYvf9hATDNVtNmECCEKiBIVE02fKcskUTqkVgbnkIJwGntzSfxJz0RYAPsi0N2CRajSB vyAg==
X-Gm-Message-State: AOAM531QhG6lpGLU9/75ScoN4dJfsmD/hw40HjqsXvuQPcffB6WkJELs 9y/G3x9XVYRLFkwD567HwTGgDOdakQU=
X-Google-Smtp-Source: ABdhPJxMGEzasgeCn22aVC+Z08sTDMdAt//cf9cXuIyrd/yj3poL8tkCaN1ENlYcnnkf5WGepqmo1A==
X-Received: by 2002:a17:907:ea0:: with SMTP id ho32mr19358527ejc.191.1636544667139; Wed, 10 Nov 2021 03:44:27 -0800 (PST)
Message-ID: <1d9e4c7e-baef-bf45-3a05-f28b426f2f37@gmail.com>
Date: Wed, 10 Nov 2021 12:44:18 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0
Content-Language: en-US
To: djgpp@delorie.com
References: <e69c2d84-e2cf-445c-b666-803170f473den@googlegroups.com> <4016e9cd-0be1-4758-8f29-db7770508ed6n@googlegroups.com> <df91c1b1-43f4-0074-dfd6-b271feb06b39@iki.fi> <9788a12e-c532-b273-a13d-ae12d2eed8a7@gmail.com> <2239fa27-8162-ac1c-d7ac-12bf7443493e@iki.fi>
From: djg...@delorie.com (J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com])
Subject: Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility
In-Reply-To: <2239fa27-8162-ac1c-d7ac-12bf7443493e@iki.fi>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 81
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-8NJr+zd88SjacpJReReuxf/FmcnW8IWwX058kDFnbQqfRJCBnpaKauDn/k9tFK4/YReOgZlwSJbPgHj!PjiNhNEnpw6vXyN5FFLkatt5fFFOSwewimvFEDsZd+EGYz0YYn2/oGT9CB6GKuP1OgYd0+1b5b9C
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 8024
 by: J.W. Jagersma (jwjag - Wed, 10 Nov 2021 11:44 UTC

On 2021-11-09 17:43, Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com] wrote:
> On 11/8/21 11:53, J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com] wrote:
>> On 2021-11-03 15:43, Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com] wrote:
>>> Actually gcc-10.3.0 was built for DJGPP, just not uploaded (both RPMs and DJGPP packages). Uploading could be easy.
>>
>> I've been waiting for djcross-gcc-10.3.0.tar.bz2, please do upload :)
>
>
> File was already inside SRPM file so it was available. Just download size was big, Extracted and uploaded

Thanks!

>>
>>> gcc-11 is a different story:
>>>
>>> - Ada library does not compile - alignment issues which are likely to cause problems also for other languages like (c or C++) when SSE or AVX is being used (and maybe even with earlier GCC versions)
>>
>> What sort of alignment issues?  I already ran into alignment trouble with SSE
>> (at run-time, not compile-time).  To work around it, in the linker script I put
>> SUBALIGN(0x10) on the .text and .bss sections.  For .data this is not possible
>> because it leaves gaps in the ctors/dtors list, so I ended up linking
>> *(.data .data.* .gnu.linkonce.d*) in .text.  A bit of a hack but .text is
>> writable.  I suppose the input section alignment could be changed in binutils
>> somewhere though.
>>
>> Also in libc I had to put attribute __attribute__((force_align_arg_pointer)) on
>> __crt1_startup() to align the stack for ctors & main(). Alternatively this
>> alignment could be performed manually in crt0.S.
>
> I was thinking about possible runtime alignment problems.I have not tested it myself. Ada library has some alignment checks and as far as I understand refuses to compile as max. available alignment is not sufficient (error message is not clear).

I expect it would require 16-byte alignment as with SSE. GCC has also used
16-byte default stack alignment for a while now, amd64 ABI also enforces this.
I'm curious to know how the Ada compiler detects it though.

Currently in binutils only '.text' and '.data' are 16-byte aligned, as well as
'.gnu.linkonce.{d,t,r}*', but not named sections such as '.text.unlikely', etc.
If you compile with -ffunction-sections -fdata-sections then nothing will be
aligned at all.
Also '.bss*', '.gnu.linkonce.b*', '.const*' and '.rodata*' are only 4-byte
aligned since there is no alignment entry defined for them.

Following patch should fix all this without ldscript hacks. Stack alignment
still needs to be done in libc of course, and I also noticed the ALIGN macro
for malloc would need to be increased (nmalcdef.h:191).

(I don't know if the .const entry here is necessary, the linker script uses it
but gcc only seems to produce .rodata...)

diff --git a/bfd/coff-go32.c b/bfd/coff-go32.c
index d73c32b215d..3139ce07ac7 100644
--- a/bfd/coff-go32.c
+++ b/bfd/coff-go32.c
@@ -28,9 +28,15 @@
#define COFF_LONG_FILENAMES

#define COFF_SECTION_ALIGNMENT_ENTRIES \
-{ COFF_SECTION_NAME_EXACT_MATCH (".data"), \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".data"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
-{ COFF_SECTION_NAME_EXACT_MATCH (".text"), \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".text"), \
+ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".const"), \
+ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".rodata"), \
+ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".bss"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
{ COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.d"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
@@ -38,6 +44,8 @@
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
{ COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.r"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
+{ COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.b"), \
+ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
{ COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \
{ COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi"), \

Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility

<ef96294f-7dbe-93c9-776c-dcf80b48d35e@gmail.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=119&group=comp.os.msdos.djgpp#119

  copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 20 Nov 2021 07:40:42 -0600
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:subject:content-language
:from:to:references:in-reply-to:content-transfer-encoding;
bh=FNw4aa0mjdACu1QndH0u6hFOJBsQw3heDBgMO+HhuMs=;
b=U848AZ66IUtswdPMdIgcDwAyiuV1yzrGBxt07ueuprNJ6gUH0Xr0g08IifMQuw0Bak
emwMSydoPDMg++F2ymn9WUpFdzQEJPKyPyusQrZzRbErvPiw3vBvFGxOdJZj4tN3Pevj
3rp/noJbXGnP9BVvlxVk5ZEKAWo4JuJtQ4MGy3sRW9OPr0Zk6pMvgzkg8AeqFmOyJDYL
pUUN4+fLrRfBJldRV3t+QgZdCe4fUwK3Eg+aXBBpgcht00O3hP3Y0Jj91N/OiLx7N4Xw
n/SwKMN8XOjjh5Juaqdcbl5tptdNpi+vvv9dr6guPpGsEQ8Ybib6LwOtfyEFXWY5rUTF
hdTA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:from:to:references:in-reply-to
:content-transfer-encoding;
bh=FNw4aa0mjdACu1QndH0u6hFOJBsQw3heDBgMO+HhuMs=;
b=UcfRXe2tFXY/Ts9LADoqA4OimqmZI9EGbrl1PFth7Ct4HayE3BKy69fSdIr8DZprs0
7mdEIOP1Lj4TXSYwxwNUBGX/Ea2E1PdseCDTFImqjdZMjPdJ2dhvrF0rxIyj3XzjrLq2
nW4QqyxE0iA93JnvXawHQjHn10xIiDf96VEG/FOEk/cXoq5MuLtzmItFLh6RO2IiAO8J
YqevJxVNGCzwvRSJXTuuiX/yMJJuJCPzP7RkxofpEnm6uPnbW/Freu9q4vtyKpRRUAJ8
WMvyp39cv9vCtQ+Q9vs4xxYWEI4X7yG2cTejNUR34iRrVXcAZBqdbPmAnYYqc1mCSW4s
K2mA==
X-Gm-Message-State: AOAM533OFYcWGeJfXSDpSb05SQWf6PW5LqmTWodtvtyv1Rh74h5SGjwP
N4yFw3F57cQyZLJ17gfbEq/8LqPqxdA=
X-Google-Smtp-Source: ABdhPJyKKaQRUg9wVszK39hqJcs6yfLpXJFlBoS0Dag7MIzOhwDDI/hpAHgoifuspsBQ+0Ks2PvodQ==
X-Received: by 2002:a05:6402:2926:: with SMTP id ee38mr38184334edb.71.1637415628118;
Sat, 20 Nov 2021 05:40:28 -0800 (PST)
Message-ID: <ef96294f-7dbe-93c9-776c-dcf80b48d35e@gmail.com>
Date: Sat, 20 Nov 2021 14:40:24 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.1
Subject: Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility
Content-Language: en-US
From: djg...@delorie.com (J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com])
To: djgpp@delorie.com
References: <e69c2d84-e2cf-445c-b666-803170f473den@googlegroups.com>
<4016e9cd-0be1-4758-8f29-db7770508ed6n@googlegroups.com>
<df91c1b1-43f4-0074-dfd6-b271feb06b39@iki.fi>
<9788a12e-c532-b273-a13d-ae12d2eed8a7@gmail.com>
<2239fa27-8162-ac1c-d7ac-12bf7443493e@iki.fi>
<1d9e4c7e-baef-bf45-3a05-f28b426f2f37@gmail.com>
In-Reply-To: <1d9e4c7e-baef-bf45-3a05-f28b426f2f37@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 56
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-bC4lCeamQdikTyqq2dnD3kOCRGCS8r36JfgRi9+b3hmarHN8zvxQK8bpUtv7yspCBEuLt5eRcNckHNF!gZ0S+N7iTg2iG9U7yRWeIl42cO9MgT0ixlmBMFcsyhUESEBSUWzO1B+zPyDrceAOLr6vxxtyLw7Y
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 6872
 by: J.W. Jagersma (jwjag - Sat, 20 Nov 2021 13:40 UTC

On 2021-11-10 12:44, J.W. Jagersma wrote:
> On 2021-11-09 17:43, Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com] wrote:
>> I was thinking about possible runtime alignment problems.I have not tested it myself. Ada library has some alignment checks and as far as I understand refuses to compile as max. available alignment is not sufficient (error message is not clear).
>
> I expect it would require 16-byte alignment as with SSE.  GCC has also used
> 16-byte default stack alignment for a while now, amd64 ABI also enforces this.
> I'm curious to know how the Ada compiler detects it though.
>
> Currently in binutils only '.text' and '.data' are 16-byte aligned, as well as
> '.gnu.linkonce.{d,t,r}*', but not named sections such as '.text.unlikely', etc.
> If you compile with -ffunction-sections -fdata-sections then nothing will be
> aligned at all.
> Also '.bss*', '.gnu.linkonce.b*', '.const*' and '.rodata*' are only 4-byte
> aligned since there is no alignment entry defined for them.
>
> Following patch should fix all this without ldscript hacks.  Stack alignment
> still needs to be done in libc of course, and I also noticed the ALIGN macro
> for malloc would need to be increased (nmalcdef.h:191).
>
> (I don't know if the .const entry here is necessary, the linker script uses it
> but gcc only seems to produce .rodata...)
>
> diff --git a/bfd/coff-go32.c b/bfd/coff-go32.c
> index d73c32b215d..3139ce07ac7 100644
> --- a/bfd/coff-go32.c
> +++ b/bfd/coff-go32.c
> @@ -28,9 +28,15 @@
>  #define COFF_LONG_FILENAMES
>
>  #define COFF_SECTION_ALIGNMENT_ENTRIES \
> -{ COFF_SECTION_NAME_EXACT_MATCH (".data"), \
> +{ COFF_SECTION_NAME_PARTIAL_MATCH (".data"), \
>    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
> -{ COFF_SECTION_NAME_EXACT_MATCH (".text"), \
> +{ COFF_SECTION_NAME_PARTIAL_MATCH (".text"), \
> +  COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
> +{ COFF_SECTION_NAME_PARTIAL_MATCH (".const"), \
> +  COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
> +{ COFF_SECTION_NAME_PARTIAL_MATCH (".rodata"), \
> +  COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
> +{ COFF_SECTION_NAME_PARTIAL_MATCH (".bss"), \
>    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
>  { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.d"), \
>    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
> @@ -38,6 +44,8 @@
>    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
>  { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.r"), \
>    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
> +{ COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.b"), \
> +  COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
>  { COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \
>    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \
>  { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi"), \

Any objections if I submit this to binutils? Even if it doesn't fix Ada, we
still need this for reliable SSE support.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor