starovic@cs.tcd.ie (Gradimir Starovic) (04/09/91)
I have problem with dynamic loading of object modules. My program allocates space (with malloc), reads in an object file, and does the editing of the relocatable locations (the program runs on the DECstation 2100, with Ultrix). The problem is with the R_JMPADDR type external entries. I can update the 26 bit target offset of the jal instruction, but the 4 high-order bits of destination address are taken from the current PC, and there is nothing I can do about it (these bits are = 1, and I want to jump to the text region, where they should be 0). Is there any way around this?