Hi Jon,
> > and send me the resulting "main.s"?
> ...
> See attached file.
Thanks! Looking at it, it seems a long way to go ...
Besides the "@plt" issue, there are other differences. For example,
symbol names are prefixed with an additional underscore.
But let's start with the first step, removing the "@plt" stuff.
Last time you inserted these three clauses into "src64/Makefile":
x86-64.darwin.base.s: lib/asm.l arch/x86-64.l $(baseFiles)
sys/x86-64.darwin.code.l
./mkAsm x86-64 darwin Darwin base $(lib)/tags -fpic $(baseFiles)
sys/x86-64.darwin.code.l
x86-64.darwin.ext.s: lib/asm.l arch/x86-64.l ext.l
./mkAsm x86-64 darwin Darwin ext "" -fpic ext.l
x86-64.darwin.ht.s: lib/asm.l arch/x86-64.l ht.l
./mkAsm x86-64 darwin Darwin ht "" -fpic ht.l
Please change them, by appending 'sed' calls:
x86-64.darwin.base.s: lib/asm.l arch/x86-64.l $(baseFiles)
sys/x86-64.darwin.code.l
./mkAsm x86-64 darwin Darwin base $(lib)/tags -fpic $(baseFiles)
sys/x86-64.darwin.code.l
sed -i 's/@plt//' x86-64.darwin.base.s
x86-64.darwin.ext.s: lib/asm.l arch/x86-64.l ext.l
./mkAsm x86-64 darwin Darwin ext "" -fpic ext.l
sed -i 's/@plt//' x86-64.darwin.ext.s
x86-64.darwin.ht.s: lib/asm.l arch/x86-64.l ht.l
./mkAsm x86-64 darwin Darwin ht "" -fpic ht.l
sed -i 's/@plt//' x86-64.darwin.ht.s
Then let's see what errors we get ;-)
Cheers,
- Alex
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe