Tarmik wrote:
But with your output above, my first guess would be that the linker just
isn't finding the gcc files to link against. It might help if you showed
the command line that generated that output, or set a verbose option on
it and see where it's looking.

I' not sure how to make verbose - so I've turned -debug=v flag on in
make command:
make --debug=v 2>make_log.txt 1>&2

Result is here:
http://www.geocities.com/tapika/make_log.txt

From that file:
Must remake target `gcc_dehydra.so'.
cc -lm /cygdrive/c/projects6/code_analysis/mozilla/js/src/Linux_All_DBG.OBJ/libjs.so -shared -o gcc_dehydra.so dehydra_plugin.o dehydra_builtins.o dehydra_ast.o dehydra.o util.o dehydra_types.o
dehydra_plugin.o: In function `dfs_process_chain':
/cygdrive/c/projects6/code_analysis/dehydra_clean/dehydra-0.9/dehydra_plugin.c:29: undefined reference to `_tree_code_type'
+ lots more undefined reference errors. I tried running the link step in my build without the '-shared' option and I got the same set of errors. Does '-shared' work in Cygwin gcc? Some random web page [1] suggests that it does, but I thought I saw in 'man ld' that the correct option is -Bdynamic.

You might also want to try running the link step with the -v option (show the real command being run) or the -t option (show the files being loaded by the linker.

[1] http://www.cygwin.com/cygwin-ug-net/dll.html

I'm looking for a way not only to reverse engineere source codes into
trees (like gcc / dehydra does)
but to be able to produce source code out of that tree as well.

CIL link which your document mentiones is one approach to source code
regeneration, however
new language always bit scares me. No matter how advanced it is.
CIL users like it a lot, but it is C only.

GCC has some pretty-printing functions, but if you really want that, Elsa/Pork might be a better choice. It comes with a pretty-printer that I hear is fairly good. See

  http://developer.mozilla.org/en/Pork
If you can give me any practical compilation assitance with cygwin, it
would be great.
_______________________________________________
Unfortunately, I am totally not a Cygin expert.
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to