aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-25 10:49:05 +0200
committerlemon <lsof@mailbox.org>2025-10-25 13:22:50 +0200
commitdacc801be75fa716b240a0c36d33db1d1cb06b58 (patch)
tree077a0311a9d58474bb22e5da116d266aa1fffe9f /test
parent33fc6630490f89014b78ea7839e0ec7c060c03dc (diff)
c: avoid generating relocations in .rodata (putting such objects in .data instead for now)
Diffstat (limited to 'test')
-rw-r--r--test/reloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/reloc.c b/test/reloc.c
index 0695770..ccc03ec 100644
--- a/test/reloc.c
+++ b/test/reloc.c
@@ -1,5 +1,7 @@
+const void *const relro = &relro;
+
float get_value(unsigned x)
{
static const float values [] = {1.1f, 1.2f, 1.3f, 1.4f};