From 49ab71e38a09b7ef8763bd3fbb97d831d82cda96 Mon Sep 17 00:00:00 2001 From: Theodore Dubois Date: Sun, 27 Oct 2024 11:04:19 -0700 Subject: [PATCH] Use -ld_classic to link ish+linux due to a bug in new linker (FB15608166) The bug is that it ignores empty sections entirely even when they would significantly affect the output, e.g. by influencing section ordering or defining symbols. --- deps/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/deps/meson.build b/deps/meson.build index 9f115af6b5..591660350e 100644 --- a/deps/meson.build +++ b/deps/meson.build @@ -74,6 +74,7 @@ if get_option('kernel') == 'linux' if host_machine.system() == 'darwin' liblinux_link_args = [ + '-Wl,-ld_classic', '-sectalign', '__DATA', '__percpu_first', '1000', '-sectalign', '__DATA', '__tracepoints', '20', ]