Hi Xuhao,

I'm not exactly sure how it would work, but in principle you'd need to have the 
dynamic loader (e.g. ld.so) and the libraries available somewhere for the 
target you're using.  I believe that ld.so is a elf binary and when passed the 
appropriate command line arguments it loads the elf binary into memory and 
execs it. If you run ld.so (or ld-2.<version>.so>) on your system you can 
probably see how it's working. It might be as simple as running ld.so 
--library-path <path to libraries> <program you want to run> <program args>  
with gem5 instead of <program you want to run> <program args> .

Good luck and please let us know if you get it working,

Ali



On May 16, 2013, at 1:06 PM, Xuhao Chen <[email protected]> wrote:

> Hi all,
> I want to support loading dynamic libraries in gem5 so that we don't need to 
> compile the benchmarks with -static option.
> Can anyone give me suggestion about how to do this? Thanks.
> 
> Xuhao Chen
> 224 Coordinated Science Laboratory
> Electrical and Computer Engineering
> University of Illinois at Urbana-Champaign
> 1308 West Main Street
> Urbana, IL 61801
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to