DescriptionUse 'ud2' assembly mnemonic instead of assembling the opcode as data
The new assembler only applies the bundling logic to things it knows are
machine instructions, not to data literals (even if they are in sections
that also contain machine instructions). For __builtin_trap, the compiler
was emitting ".value 0x0b0f" instead of "ud2", so with bad luck it could
wind up that this two-byte instruction straddles a bundle boundary.
Using the mnemonic instead avoids that problem.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3792
TEST= toolchain trybots
R=sehr@chromium.org
Committed: https://git.chromium.org/gitweb?p=native_client/nacl-gcc.git;a=commit;h=ea8b744
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|