gem5: don't use gold linker on debug builds because it breaks debugging

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-12-23 00:00:02 +00:00
parent 31dcf128c4
commit 44bf3820f9

View File

@@ -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(
(
[