,
Piotr MadaliĆski
-Original Message-
From: Liu Hao [mailto:lh_mo...@126.com]
Sent: 2 sierpnia 2017 17:54
To: mingw-w64-public@lists.sourceforge.net; Madalinski Piotr
<piotr.madalin...@zf.com>
Subject: Re: [Mingw-w64-public] FW: Section sizes too big in object files
(possible bug?)
On
> and you get the following from objdump:
>[ 20](sec 4)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x
>test_struct
>[ 21](sec 4)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x0024 a
>[ 22](sec 4)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x0028 b
>With the section size of 0x40. In
gw-w64-public] FW: Section sizes too big in object files
(possible bug?)
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 ...)
>
ou can specify at least .ALIGN in sections, if not padding)
-Original Message-
From: Madalinski Piotr [mailto:piotr.madalin...@zf.com]
Sent: Wednesday, August 02, 2017 7:43 AM
To: mingw-w64-public@lists.sourceforge.net
Subject: [Mingw-w64-public] FW: Section sizes too big in object files
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
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