diff options
author | James H. Hill <hilljh82@gmail.com> | 2011-08-01 18:17:25 +0000 |
---|---|---|
committer | James H. Hill <hilljh82@gmail.com> | 2011-08-01 18:17:25 +0000 |
commit | b694aade2aaf786f5d10fd65ad0569347db992b2 (patch) | |
tree | dc6bcba498719c640190df358e8f2e29902e4d70 | |
parent | 8c60efd0d3024a6669a173aee665edac582c434b (diff) | |
download | MPC-b694aade2aaf786f5d10fd65ad0569347db992b2.tar.gz |
Mon Aug 1 18:16:21 UTC 2011 James H. Hill <hillj at cs dot iupui dot edu>
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | config/pintools_32bit.mpb | 49 |
2 files changed, 56 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Mon Aug 1 18:16:21 UTC 2011 James H. Hill <hillj at cs dot iupui dot edu> + + * config/pintools_32bit.mpb: + + New base project for building a Pintool. This base project + only supports 32-bit Linux and Windows operating systems. + Thu Jun 30 06:58:25 UTC 2011 Johnny Willemsen <jwillemsen@remedy.nl> * config/ndds_example_ts_defaults.mpb: diff --git a/config/pintools_32bit.mpb b/config/pintools_32bit.mpb new file mode 100644 index 00000000..94367756 --- /dev/null +++ b/config/pintools_32bit.mpb @@ -0,0 +1,49 @@ +// $Id$ + +project { + specific (prop:windows) { + macros += BIGARRAY_MULTIPLIER=1 TARGET_IA32 HOST_IA32 TARGET_WINDOWS USING_XED _SECURE_SCL=0 + + // Hack to ensure libraries are linked in the correct order + // since MPC does not honor the order in the list below!! ;-) + pure_libs += "ntdll-32.lib libxed.lib pin.lib pinvm.lib libcmt.lib libcpmt.lib" + + runtime_library = 0 + DisableSpecificWarning += 4530 + IgnoreAllDefaultLibraries = true + link_options += /EXPORT:main /ENTRY:Ptrace_DllMainCRTStartup@12 + } + + specific (gnuace, make) + macros += BIGARRAY_MULTIPLIER=1 TARGET_IA32 HOST_IA32 TARGET_LINUX USING_XED _SECURE_SCL=0 + compile_flags += -fomit-frame-pointer -fno-strict-aliasing + + libs += pin xed dwarf elf + linkflags += -Wl,--hash-style=sysv -Wl,-Bsymbolic -Wl,--version-script=$(PIN_ROOT)/source/include/pintool.ver + } + + includes += $(PIN_ROOT)/extras/components/include \ + $(PIN_ROOT)/extras/xed2-ia32/include \ + $(PIN_ROOT)/source/include/gen \ + $(PIN_ROOT)/source/include + + + libpaths += $(PIN_ROOT)/ia32/lib \ + $(PIN_ROOT)/ia32/lib-ext \ + $(PIN_ROOT)/extras/xed2-ia32/lib + + verbatim (gnuace, top) { + // We have to disable hidden symbols since we are + // not manually exporting the main() function. + no_hidden_visibility = 1 + } + + verbatim (make, top) { + // We have to disable hidden symbols since we are + // not manually exporting the main() function. + no_hidden_visibility = 1 + } +} + + + |