diff options
| author | 2025-10-25 10:49:05 +0200 | |
|---|---|---|
| committer | 2025-10-25 13:22:50 +0200 | |
| commit | dacc801be75fa716b240a0c36d33db1d1cb06b58 (patch) | |
| tree | 077a0311a9d58474bb22e5da116d266aa1fffe9f /test/reloc.c | |
| parent | 33fc6630490f89014b78ea7839e0ec7c060c03dc (diff) | |
c: avoid generating relocations in .rodata (putting such objects in .data instead for now)
Diffstat (limited to 'test/reloc.c')
| -rw-r--r-- | test/reloc.c | 2 |
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}; |