OSDN Git Service

Subzero: Support non-IRT immediate calls with -filetype=iasm.
authorJim Stichnoth <stichnot@chromium.org>
Fri, 20 Mar 2015 06:23:00 +0000 (23:23 -0700)
committerJim Stichnoth <stichnot@chromium.org>
Fri, 20 Mar 2015 06:23:00 +0000 (23:23 -0700)
commit927f7ccc6beac42ae894c43cbc75b82919052cb5
tree88bb928ce65ce2ed2b9a97f894c6abfe0346568c
parent5bfe21578536c437ef17052038c5d85eaf1bd484
Subzero: Support non-IRT immediate calls with -filetype=iasm.

This is done by emitting the following:
  .byte 0xe8
  .long __Sz_AbsoluteZero -4 - .

The linker is passed an argument like
  --defsym=__Sz_AbsoluteZero=0
to force the symbol's value to 0.

This special symbol is needed due to an llvm-mc parsing bug.

BUG= none
R=jvoung@chromium.org

Review URL: https://codereview.chromium.org/1027593002
pydir/crosstest.py
pydir/szbuild.py
src/IceFixups.cpp
src/IceFixups.h
src/assembler.cpp