comparison loader/loader_objfix.sh @ 11804:1c9a9a1f89ed

support for newer openbsd versions, which are fully elf based
author alex
date Mon, 19 Jan 2004 17:36:30 +0000
parents a04a7dc31ebb
children
comparison
equal deleted inserted replaced
11803:507476964de0 11804:1c9a9a1f89ed
1 #!/bin/sh 1 #!/bin/sh
2 # This script fixes up symbol mangling in GNU as code of stubs.s. 2 # This script fixes up symbol mangling in GNU as code of stubs.s.
3 # This file is licensed under the GPL, more info at http://www.fsf.org/ 3 # This file is licensed under the GPL, more info at http://www.fsf.org/
4 if ! [ 'file stubs.o | grep ELF ' ] ; then
4 for i in "export_names" \ 5 for i in "export_names" \
5 "printf" \ 6 "printf" \
6 "exp_EH_prolog" \ 7 "exp_EH_prolog" \
7 "unk_exp1" 8 "unk_exp1"
8 do 9 do
9 echo "fixing: $i=_$i" 10 echo "fixing: $i=_$i"
10 objcopy --redefine-sym "$i=_$i" stubs.o 11 objcopy --redefine-sym "$i=_$i" stubs.o
11 done 12 done
13 fi