Skip to content

Commit

Permalink
i#1684 xarch-IR: Fix drwrap host!=target undef sym (#4359)
Browse files Browse the repository at this point in the history
Fixes an undefined symbol in drwrap when host!=target.
Only some compilers complain about it.

Issue: #1684
  • Loading branch information
derekbruening committed Jul 6, 2020
1 parent acdeec8 commit 9fddeb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/drwrap/drwrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,10 @@ drwrap_replace_native_fini(void *drcontext)
*/
volatile app_pc app_retaddr;
byte *xsp = (byte *)dr_read_saved_reg(drcontext, DRWRAP_REPLACE_NATIVE_SP_SLOT);
#ifdef AARCHXX
#ifdef DR_HOST_NOT_TARGET
byte *cur_xsp = NULL;
ASSERT(false, "cross-arch execution is not supported");
#elif defined(AARCHXX)
byte *cur_xsp = get_cur_xsp();
#endif
ASSERT(xsp != NULL, "did client clobber TLS slot?");
Expand Down

0 comments on commit 9fddeb8

Please sign in to comment.