summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorJin Kyu Song <jin.kyu.song@intel.com>2013-11-29 00:38:29 -0800
committerJin Kyu Song <jin.kyu.song@intel.com>2013-12-04 20:06:23 -0800
commitbb8cf3fa77e63f7c6a02d23bbfe3426beff26358 (patch)
tree99545a9b4797aa0706776d99b1b53eb2c6e78815 /nasm.c
parent0873ef5626d7cdfcb87bf4c8643cc508e79549b8 (diff)
downloadnasm-bb8cf3fa77e63f7c6a02d23bbfe3426beff26358.tar.gz
nasm-bb8cf3fa77e63f7c6a02d23bbfe3426beff26358.tar.bz2
nasm-bb8cf3fa77e63f7c6a02d23bbfe3426beff26358.zip
bnd: Show warning when bnd prefix is dropped
When bnd prefix is dropped as jmp is encoded as jmp short, nasm shows a warning message, which can be suppressed with a new command line option, -w-bnd. Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nasm.c b/nasm.c
index b83810d..d10ddbc 100644
--- a/nasm.c
+++ b/nasm.c
@@ -166,6 +166,7 @@ static const struct warning {
{"user", "%warning directives", true},
{"lock", "lock prefix on unlockable instructions", true},
{"hle", "invalid hle prefixes", true},
+ {"bnd", "invalid bnd prefixes", true},
};
static bool want_usage;