Mercurial > mplayer.hg
annotate loader/loader_objfix.sh @ 19908:b6aa47caeb72
§Ænitial button value is -1. Only (button>0) is a correct button selection.
Initialized "dvdnav_status_t status" explicitly for clarity.
author | jonas |
---|---|
date | Tue, 19 Sep 2006 21:42:43 +0000 |
parents | 1c9a9a1f89ed |
children |
rev | line source |
---|---|
5880
a04a7dc31ebb
openbsd updates by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
diff
changeset
|
1 #!/bin/sh |
a04a7dc31ebb
openbsd updates by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
diff
changeset
|
2 # This script fixes up symbol mangling in GNU as code of stubs.s. |
a04a7dc31ebb
openbsd updates by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
diff
changeset
|
3 # This file is licensed under the GPL, more info at http://www.fsf.org/ |
11804
1c9a9a1f89ed
support for newer openbsd versions, which are fully elf based
alex
parents:
5880
diff
changeset
|
4 if ! [ 'file stubs.o | grep ELF ' ] ; then |
5880
a04a7dc31ebb
openbsd updates by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
diff
changeset
|
5 for i in "export_names" \ |
a04a7dc31ebb
openbsd updates by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
diff
changeset
|
6 "printf" \ |
a04a7dc31ebb
openbsd updates by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
diff
changeset
|
7 "exp_EH_prolog" \ |
a04a7dc31ebb
openbsd updates by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
diff
changeset
|
8 "unk_exp1" |
a04a7dc31ebb
openbsd updates by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
diff
changeset
|
9 do |
a04a7dc31ebb
openbsd updates by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
diff
changeset
|
10 echo "fixing: $i=_$i" |
a04a7dc31ebb
openbsd updates by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
diff
changeset
|
11 objcopy --redefine-sym "$i=_$i" stubs.o |
a04a7dc31ebb
openbsd updates by Bj«Órn Sandell <biorn@dce.chalmers.se>
arpi
parents:
diff
changeset
|
12 done |
11804
1c9a9a1f89ed
support for newer openbsd versions, which are fully elf based
alex
parents:
5880
diff
changeset
|
13 fi |