home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / gcc / help / 2082 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.3 KB

  1. Path: sparky!uunet!pipex!warwick!uknet!doc.ic.ac.uk!citycs!trs
  2. From: trs@cs.city.ac.uk (Tom Stiemerling)
  3. Newsgroups: gnu.gcc.help
  4. Subject: Compiler for relocatable data segment
  5. Message-ID: <1992Sep2.133130.4631@city.cs>
  6. Date: 2 Sep 92 13:31:30 GMT
  7. Sender: news@city.cs (News)
  8. Organization: City University, London
  9. Lines: 20
  10.  
  11. I require a compiler and linker for C (for SPARC) which will indirect
  12. all references to variables in the data segment through a base register
  13. (resulting in something similar to a segment register in an iX86). 
  14. Currently the linker assigns absolute addresses for these variables,
  15. whereas I would like them to be offset from a pointer to these base of
  16. the data segment.  This means the data segment is relocatable simply by
  17. changing the base pointer.  Using PIC does something similar but not
  18. quite, sine the global offset table is still assumed to be at a fixed
  19. address.  I need this for a single address space operating system
  20. emulator. Can anyone comment on whther it would be possible to hack gcc
  21. to do this? Has anyone tried it? etc.
  22.  
  23. Thanks.
  24.  
  25.  
  26.  
  27. --
  28. ## Tom Stiemerling, Research Assistant, Systems Architecture Research Centre, #
  29. ## Computer Science Department, City University,  Northampton Square, #########
  30. ## London EC1V 0HB, U.K. ### trs@cs.city.ac.uk ### +71 477 8551 ###############
  31.