From dacc801be75fa716b240a0c36d33db1d1cb06b58 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 25 Oct 2025 10:49:05 +0200 Subject: c: avoid generating relocations in .rodata (putting such objects in .data instead for now) --- test/reloc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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}; -- cgit v1.2.3