While dealing with the opensource tool using assembly for some tasks, I encountered the following error messages:
Unknown pseudo-op: .balign
Unknown pseudo-op: .hidden
Unknown pseudo-op: .type
They seem all come from the fact that my assembler is pretty old. I'm using the apple binutils. My system assembler as its version being Apple Computer, Inc. version cctools-622.9~2, GNU assembler version 1.38, my gentoo-prefix reports it's Apple Inc version cctools-698.1, GNU assembler version 1.38, so not much younger.
.balign seems to allign the location counter until it is aligned. That would make loading of code more efficient. It could be done manually as well by inserting no-operation instructions so that the instruction pointer moves manually to the next aligned position.
.hidden changes the visibility to "hidden". That works only on systems using ELF as their binary formats, so it can safely be omitted on MacOSX. On other systems it could be probably removed, when the linker can issue warnings on duplicate symbols.
.type sets the type of a symbol, for example "int". ELF formats seem to support more types that COFF, but MacOSX uses dwarf-2, especially with Xcode, and I have no clue what the options are there.
|< Prev||Next >|