Skip to content

Commit

Permalink
Use -ld_classic to link ish+linux due to a bug in new linker (FB15608…
Browse files Browse the repository at this point in the history
…166)

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.
  • Loading branch information
tbodt committed Oct 27, 2024
1 parent 02f4749 commit 49ab71e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deps/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]
Expand Down

0 comments on commit 49ab71e

Please sign in to comment.