function addresses and ld.so

David Mosberger davidm@napali.hpl.hp.com
Thu Aug 14 01:56:00 GMT 2003


>>>>> On Tue, 12 Aug 2003 18:24:47 -0400, Camm Maguire <camm@enhanced.com> said:

  Camm> GCL stores addresses of its functions in data structures
  Camm> allocated in the normal way in its .data section.  It then
  Camm> runs an unexec routine which saves the memory image including
  Camm> these addresses to a file.

Isn't this a dangerous thing to do even on non-function-descriptor
architectures?  If I understand you right, GCL depends on the loader
mapping the shared objects on subsequent executions at the exact same
location as during the original execution.  Wouldn't, e.g.,
LD_PRELOADing something break this assumption?

	--david



More information about the Gcc mailing list