Re: [rvm-research] Resolving External References
Erik Brangs <[email protected]> Wed, 6 Dec 2017 06:46:56 +0100
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 06.12.2017 06:17, Khaled Z Mahmoud wrote: > I am now just experimenting with a simple function system call "int k_poc_sys_call" > I have added relevant declarations in : > > ./rvm/src/org/jikesrvm/runtime/SysCall.java > > ./rvm/src/org/jikesrvm/runtime/BootRecord.java > > ./rvm/src/org/jikesrvm/tools/header_gen/GenerateInterfaceDeclarations.java > > ./tools/bootloader/sys.h > > ./tools/bootImageRunner/sys.C This looks wrong. You should have either tools/bootloader or tools/bootImageRunner both not both. Also, you probably shouldn't need to modify GenerateInterfaceDeclarations. > And I am still getting the error of : [exec] /home/kmahmou1/jikes/jikesrvm/target/FullAdaptiveMarkSweep_x86_64-linux/libjvm.so: undefined reference to `k_poc_sys_call' > > This function simply returns 0. There is no reference to any external library. If you can produce a minimal diff against git HEAD for what you're trying to do, I could take a look. IIRC I also have an example patch somewhere that adds a new syscall. I could use that to write some documentation in the user guide but I might need a few days to make time for that. Kind regards, Erik Brangs ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jikesrvm-researchers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers