summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kot <to@myrrc.dev>2023-03-12 19:33:40 +0300
committerGitHub <noreply@github.com>2023-03-12 16:33:40 +0000
commit8d0e894fd3c6535687220fe3a51e0ef509b3e020 (patch)
treec149c8a7824865b6988d7b6ad99b26ec10d5ae52
parent2f76c924bbc38fdea6663ef37525adae8db8e8d2 (diff)
Don't generate useless .eh_frame and .eh_frame_hdr.
We don't use exceptions, attribute(cleanup) or similar techniques, so such sections just add up to binary size.
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 1920a16..56e09d2 100644
--- a/meson.build
+++ b/meson.build
@@ -87,6 +87,9 @@ add_project_arguments(
'-Wno-unused-parameter',
'-D_GNU_SOURCE',
'-D_FORTIFY_SOURCE=2',
+ # Disable these unwind tables for binary size, as we don't use exceptions
+ # or anything else that requires them.
+ '-fno-asynchronous-unwind-tables',
],
language: 'c'
)