diff options
| author | Ulf Hermann <[email protected]> | 2017-04-07 13:34:10 +0200 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2017-05-02 12:43:15 +0000 |
| commit | 764dfcb97f5728cb7f4a20f38b3df5f8bd00e05f (patch) | |
| tree | 30b16069a01cdb363bdccd53b6b1f73f03ea9bdd /libdw/memory-access.h | |
| parent | cb951df3eaff5228d3900f38b71e550425b72670 (diff) | |
Make sure packed structs follow the gcc memory layout
On windows gcc by default generates code that follows the MSVC layout.
We don't want that as it adds extra padding.
Change-Id: I92efe5da2a2ad818783707ee96a9b8e0eb606dbd
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'libdw/memory-access.h')
| -rw-r--r-- | libdw/memory-access.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdw/memory-access.h b/libdw/memory-access.h index a749b5a9..afb651fc 100644 --- a/libdw/memory-access.h +++ b/libdw/memory-access.h @@ -170,7 +170,7 @@ union unaligned int16_t s2; int32_t s4; int64_t s8; - } __attribute__ ((packed)); + } attribute_packed; # define read_2ubyte_unaligned(Dbg, Addr) \ read_2ubyte_unaligned_1 ((Dbg)->other_byte_order, (Addr)) |
