jac@umpqua.berkeley.edu (Gordon Jacobs) (11/29/89)
Has anyone attempted to perform dynamic loading on a DECstation 3100? I have been trying to do so using the incremental loading option on ld (ld -A). I execute the ld command and then read the appropriate headers in the resulting a.out file in order to determine the size of the text and data. Even with some margin placed in the size and calling malloc() to make space for it, after reading into memory, unpredictable results occurr! I do page align the space. Executing the program several times gives success once and a core dump the next... Does the loader work right?? Any suggestions or comments welcome. Thanks, Gordon Jacobs
jg@max.crl.dec.com (Jim Gettys) (12/03/89)
Have you flushed the caches appropriately? You won't get proper results unless you flush the caches after loading the new code in....