Skip to content

Commit

Permalink
finally fix alignment issues, maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
pipcet committed Jan 26, 2021
1 parent 1e1e406 commit 013f7e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lds/wasm32.cpp-lds
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ SECTIONS
__wasm_data_segment = .;
*(.header);
}
.data : SUBALIGN (1)
.data (16384 + 64) :
{
__data_start = .;
*(.got*)
Expand Down
3 changes: 3 additions & 0 deletions testsuite/018-data-alignment/001.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#include <stdio.h>

double x __attribute__((aligned(128)));

int main(void)
{
printf("%p\n", &x);
return 0;
}

0 comments on commit 013f7e1

Please sign in to comment.