From: H. P. A. <hp...@zy...> - 2013-10-16 08:29:40
|
On 10/16/2013 12:36 AM, anonymous coward wrote: >> BND prefix support is also added. I did not know of a case using bnd and jcc8 >> at the same time. So I left that unresolved. Please let me know if this should >> be resolved. > > BND works for these: > > Jcc Jb/Jz, CALL/JMP Jz/Ev, RET(N), RET(N) Iw > > BND should warn for anything else, including JMP Jb. > BND JMP is actually a bit of a headache. JMP Jb doesn't require BND because JMP Jb is used for intramodule jumps, so arguably: BND JMP foo ... should drop the BND prefix if the JMP is relaxed to the Jb form, as the programmer doesn't know a priori if the Jb or Jz form will be generated. BND JMP short foo ... should be a warning, though. -hpa |