[llvm-commits] ARM ELF disassembly with integrated-as
Tim Northover
t.p.northover at gmail.com
Thu Nov 29 12:49:58 PST 2012
> I was under the impression that for ELF, the assembler source code
> would have explicit $a, $t and $d labels that specify the regions. That's
> not the case?
Afraid not. The two examples I have are GCC and armcc. Both of those
have assemblers which infer the symbols. Neither GAS nor armasm have
explicit region delimiters.
> That's an excellent example of why I don't like the assembler trying to
> be smart about this stuff. It can't ever tell the difference between a .long
> in the code stream that's a manually encoded instruction and a .long that's
> a data payload.
It's not immediately clear to me that explicitly delineated regions
are better than some kind of ".dci" directive for when you *do* want
to insert a hard-coded instruction. I suppose it is more orthogonal,
but I'm sure there's enough paint here for a whole fleet of bikesheds.
Tim.
More information about the llvm-commits
mailing list