177 Commits

Author SHA1 Message Date
Mark Charney
00b797722a Update README.md 2016-12-23 11:38:57 -05:00
Mark Charney
a8af6e4275 xed-decode.c: added back 15B limit check.
Change-Id: Idd0a05996bd608780a5b04e21439f206a1aeb6b2
v10.0
2016-12-23 10:33:32 -05:00
Mark Charney
85e545d229 remove leading/trailing underscores C-prepoc header guards
* generated header
    * static headers
    * example headers
    * datafile headers

(cherry picked from commit 02147122b27ba3ab53bd3c45d3766da0b971bc29)
2016-12-23 10:33:32 -05:00
Mark Charney
a20deac7ef examples/xed-disas-elf.c: mmap() limit check before disassembly.
* limit checks on disasm region cut all but 16 of 397 fails
     reported from ELF fuzzer
     https://github.com/intelxed/xed/issues/20

   * symbol table and string table pointer checks remove the rest.

Change-Id: I712f613dca5fecfe94082a3d1b6b06b142a0b6bc
(cherry picked from commit 9597d6b97c9b54ca51bc2aabfb3db23d87e4d461)
2016-12-23 10:33:32 -05:00
Mark Charney
fd5d37e1b5 README.md: example build info 2016-12-22 00:59:12 -05:00
Mark Charney
f4f450215b xed-disas-pecoff.cpp: include main header rather than generatred defines
* if required could make a new public static header to refer to the
      generated defines header
2016-12-21 13:53:14 -05:00
Mark Charney
fcd2d41b2b moving headers to xed/ directory for install & kit. DISRUPTIVE CHANGE
* compiled kit users must refer to "#include "xed/xed-interface.h"
      and xed/ on any other public headers that they reference as part
      of the kit or new /usr/local installs.  Or they can change their
      -I flag to include the xed/ path component.  All the examples
      use xed/ in the #include statements now.

    * new knob --prefix=/usr/local (for example) that puts the
      compiled library in /usr/local/lib and the headers in
      /usr/local/include/xed .

    * To install in /usr/local, one typically must sudo.  If you do
      the whole build at sudo, then it'll create root-owned files in
      your build directory whic you might not want.  So I suggest
      first building as the local user and then sudo only for the
      final install.

         > ./mfile.py
	 > sudo ./mfile.py --prefix=/usr/local

    * There is also a --prefix-lib-dir knob to specify something other
      than "lib" for /usr/local/lib. Some systems use lib, lib32 or
      lib64 and I don't know how to tell which is which so I give
      users a knob so they can decide for themselves.

         > ./mfile.py --host-cpu=ia32
	 > sudo ./mfile.py --prefix=/usr/local --prefix-lib-dir=lib32
         > ./mfile.py --host-cpu=intel64
	 > sudo ./mfile.py --prefix=/usr/local --prefix-lib-dir=lib64

    * added xed-util.h to xed-interface.h

    * moved headers from include/public to include/public/xed

    * genutil minor cleanup

Change-Id: I3786d2280f24ff8d7e075fa7a75d90f3b28dd8c3
2016-12-21 13:53:14 -05:00
Mark Charney
9da8d893e8 fix compilation for windows. variable defn after executable code
Change-Id: Id1dd721744b2370e2e2872c3a7f8b5498634a15b
2016-12-20 16:04:38 -05:00
Mark Charney
ac509e1c15 Update README.md
added simple build recipe to README.md
2016-12-20 14:01:05 -05:00
Mark Charney
5b18ead7a8 Merge pull request #14 from rscohn2/feature/ci-script
Move ci logic to ci.py
2016-12-20 07:46:44 -05:00
Robert Cohn
ed8210639a Move ci logic to ci.py
Easier to maintain. We lose parallelism, but it was not helping much
because setup time was longer than build time.
2016-12-20 12:31:39 +00:00
Mark Charney
0a22614cc6 Merge pull request #8 from nonakap/fix/build_on_netbsd
build on NetBSD.
2016-12-19 22:50:37 -05:00
Mark Charney
c0b0290810 Merge pull request #13 from rscohn2/feature/appveyor-shared-static
add --shared/--static to windows appveyor configs
2016-12-19 22:43:03 -05:00
Mark Charney
a063f5d4fc Merge pull request #12 from rscohn2/feature/limit-travisci
specify travis-ci configs
2016-12-19 22:42:32 -05:00
Robert Cohn
0da782e794 disable static osx because they fail in travis 2016-12-20 01:42:01 +00:00
Robert Cohn
b00ebd5f87 add --shared/--static for windows appveyor tests 2016-12-20 01:36:01 +00:00
Robert Cohn
ea4f2baf68 specify travis-ci configs 2016-12-20 00:50:24 +00:00
Mark Charney
d5d801e341 Merge pull request #11 from intelxed/mjc/jrcxz-test
jrcxz test: omit quoted around BRDISP operand. fix win test fail
2016-12-19 11:49:57 -05:00
Mark Charney
66706b864f jrcxz test: omit quoted around BRDISP operand. fix win test fail 2016-12-19 10:37:02 -05:00
Mark Charney
b70d24cb02 Merge pull request #5 from rscohn2/feature/32bit
travis-ci for 32/64 x linux/osx x clang/gcc
2016-12-19 08:53:58 -05:00
Mark Charney
1cdf2208a7 Merge pull request #4 from rscohn2/feature/appveyor
appveyor
2016-12-19 08:20:12 -05:00
Kimihiro Nonaka
8e0ed2e1e7 fix build on NetBSD/amd64. 2016-12-19 17:05:24 +09:00
Robert Cohn
d8a18dc08b if mbuild is installed, do not look for it 2016-12-17 15:07:00 -06:00
Robert Cohn
c5f93b2f3c use pip instead of clone to get mbuild 2016-12-17 15:07:00 -06:00
Robert Cohn
c92cbbc0b0 appveyor 2016-12-17 11:30:10 -06:00
Robert Cohn
a818a69313 travis ci 2016-12-17 11:27:07 -06:00
Mark Charney
ffd94e705c initial commit
Change-Id: I32a6db1a17988d9df8ff69aa1672dbf08b108e8a
2016-12-16 16:09:38 -05:00