diff --git a/build-gem5 b/build-gem5 index 3e321b5..e52ecd0 100755 --- a/build-gem5 +++ b/build-gem5 @@ -125,7 +125,12 @@ https://github.com/cirosantilli/linux-kernel-module-cheat-regression#gem5-unit-t gold_linker_cmd = [] else: extra_env = {} - gold_linker_cmd = ['--gold-linker', LF,] + if self.env['gem5_build_type'] == 'debug': + # A debug build is pointless if I can't... debug! + # https://github.com/cirosantilli/linux-kernel-module-cheat/issues/109 + gold_linker_cmd = [] + else: + gold_linker_cmd = ['--gold-linker', LF] exit_status = self.sh.run_cmd( ( [