Skip to content

Commit

Permalink
i#975 static DR: fix Mac build (#2856)
Browse files Browse the repository at this point in the history
Fixes a Mac build error introduced by 3bc3315.
Fixes a Mac test build error that shows up on newer toolchains.

Issue: #975
  • Loading branch information
derekbruening authored Mar 1, 2018
1 parent 3bc3315 commit 70998c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/unix/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
*/

#include "../globals.h"
#include "module_private.h"
#include "../module_shared.h"
#include "module_private.h"
#include "os_private.h"
#include "../utils.h"
#include "instrument.h"
Expand Down
7 changes: 4 additions & 3 deletions suite/tests/client-interface/memval-test.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2017 Google, Inc. All rights reserved.
* Copyright (c) 2017-2018 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -90,9 +90,10 @@ GLOBAL_LABEL(FUNCNAME:)
mov REG_XDI, REG_XBP
sub REG_XDI, 12
mov [REG_XBP - 80], REG_XBP
jmp test
/* We can't use "test" as a label on Mac NASM. */
jmp test_start

test:
test_start:
mov REG_XCX, [REG_XDI + 12]
mov REG_XDX, [REG_XBP - 72]
mov REG_XBX, [REG_XBP - 80]
Expand Down

0 comments on commit 70998c5

Please sign in to comment.