mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-14 05:34:56 -04:00
Use Read-Only DATA (__RODATA) instead of __DATA
Co-authored-by: Weijia Wang <contact@weijia.wang> Signed-off-by: Torrekie Gen <me@torrekie.dev>
This commit is contained in:
parent
d135666e88
commit
f430ba5bd5
2 changed files with 4 additions and 4 deletions
|
|
@ -38,7 +38,7 @@ struct test {
|
|||
} __attribute__ ((aligned (16)));
|
||||
|
||||
#if __APPLE__
|
||||
#define TEST_SECTION "__DATA,test_section"
|
||||
#define TEST_SECTION "__RODATA,test_section"
|
||||
#else
|
||||
#define TEST_SECTION "test_section"
|
||||
#endif
|
||||
|
|
@ -123,4 +123,4 @@ set_cloexec_or_close(int fd)
|
|||
err:
|
||||
close(fd);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue