Patching 1.1 assembler to accept '$'
Rich Skrenta
skrenta at amix.commodore.com
Wed Jun 19 13:44:04 AEST 1991
G++ and some Fortran compilers would like to emit $'s in their identifiers.
The 1.1 assembler rejects these. The 2.0 assembler will accept them, but
in the meantime, here is a binary patch for your 1.1 assembler.
NOTE: This patch only works for the version of /usr/ccs/bin/as on Amiga
Unix 1.1.
Log in as root.
# cd /usr/ccs/bin
# cp as as.backup # save a good copy of your assembler!
# adb -w as
80025692?w 0120
^D
Test the patch:
# as /dev/stdin -o /tmp/foo
foo$bar: long 0
^D
# nm -vx /tmp/foo
Symbols from /tmp/foo:
[Index] Value Size Type Bind Other Shndx Name
[1] |0x00000000|0x00000000|SECT |LOCL |0 |2 |
[2] |0x00000000|0x00000000|NOTY |LOCL |0 |2 |foo$bar
Rich Skrenta
--
skrenta at amix.commodore.com
More information about the Comp.unix.amiga
mailing list