diff options
Diffstat (limited to 'loader/loader_objfix.sh')
-rwxr-xr-x | loader/loader_objfix.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/loader/loader_objfix.sh b/loader/loader_objfix.sh new file mode 100755 index 0000000000..99eb27a7f0 --- /dev/null +++ b/loader/loader_objfix.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# This script fixes up symbol mangling in GNU as code of stubs.s. +# This file is licensed under the GPL, more info at http://www.fsf.org/ +for i in "export_names" \ + "printf" \ + "exp_EH_prolog" \ + "unk_exp1" +do +echo "fixing: $i=_$i" +objcopy --redefine-sym "$i=_$i" stubs.o +done |