Re: [Mingw-w64-public] [PATCH] Add a dlltool machine flag for targeting arm

2017-08-02 Thread Martin Storsjö
On Wed, 2 Aug 2017, JonY via Mingw-w64-public wrote: On 07/30/2017 07:46 PM, Martin Storsjö wrote: The GNU binutils dlltool doesn't actually support this target, but llvm-dlltool does. --- mingw-w64-crt/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-c

Re: [Mingw-w64-public] [PATCH] Add the sincos* functions on arm, calling into sin/cos separately

2017-08-02 Thread JonY via Mingw-w64-public
On 07/30/2017 07:45 PM, Martin Storsjö wrote: > On arm (unless --enable-experimental=softmath is set), we pass > sin/cos function calls straight through to msvcrt. We normally > provide implementations of the sincos family of functions, that > provide both return values at once. Provide implementat

Re: [Mingw-w64-public] [PATCH] Add a dlltool machine flag for targeting arm

2017-08-02 Thread JonY via Mingw-w64-public
On 07/30/2017 07:46 PM, Martin Storsjö wrote: > The GNU binutils dlltool doesn't actually support this > target, but llvm-dlltool does. > --- > mingw-w64-crt/Makefile.am | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am

Re: [Mingw-w64-public] [PATCH] Handle __CTOR_LIST__ for clang

2017-08-02 Thread Martin Storsjö
Hi Martell, André and Kai, On Sun, 28 Aug 2016, André Hentschel wrote: Am 09.08.2016 um 11:16 schrieb Kai Tietz: Hallo Martell, patch is ok. Wouldn't it be better to have those symbols in linker scrpt instead? That is actually the way used in ld for it. Thanlks, Kai 2016-08-06 5:14 GMT+02

Re: [Mingw-w64-public] FW: Section sizes too big in object files (possible bug?)

2017-08-02 Thread Doug Semler
Ah, it was -malign-data, not -falign-data no wonder I didn't find it. DUH -Original Message- From: Liu Hao [mailto:lh_mo...@126.com] Sent: Wednesday, August 02, 2017 11:54 AM To: mingw-w64-public@lists.sourceforge.net; Madalinski Piotr Subject: Re: [Mingw-w64-public] FW: Section sizes

Re: [Mingw-w64-public] FW: Section sizes too big in object files (possible bug?)

2017-08-02 Thread Doug Semler
If I remember correctly, the default alignment for structure starts on a 32 byte boundary, to help prevent data member misalignments with SSE type instructions. What you are seeing is the result of padding. I add an integer in the same section __attribute__((section("test_section"))) test_struct_t

Re: [Mingw-w64-public] FW: Section sizes too big in object files (possible bug?)

2017-08-02 Thread Liu Hao
On 2017/8/2 19:42, Madalinski Piotr wrote: Hi all, I'm having trouble with getting correct section sizes under MinGW. The example below demonstrates the issue: (... abridgement ...) Adding align(1) attribute to the data definition is a workaround, that fixes the problem, but due to external f

[Mingw-w64-public] FW: Section sizes too big in object files (possible bug?)

2017-08-02 Thread Madalinski Piotr
Hi all, I'm having trouble with getting correct section sizes under MinGW. The example below demonstrates the issue: test.c: #include #include typedef struct { uint16_t a; uint16_t b[16]; uint8_t c[2]; } test_struct_t; __attribute__((section("test_section"))) test_struct_t test_