1. 25 Aug, 2009 1 commit
    • Russ Cox's avatar
      ffi -> dynld. · 165a9903
      Russ Cox authored
      move out of export data into its own section
      
      R=r
      DELTA=222  (71 added, 99 deleted, 52 changed)
      OCL=33801
      CL=33808
      165a9903
  2. 24 Aug, 2009 2 commits
    • Russ Cox's avatar
      linker work · 1f177cd8
      Russ Cox authored
        * use //ffi comments in package import data
          to generate relocation entries and library loads.
        * call initffi in rt0.s if present
      
      R=r
      DELTA=117  (91 added, 3 deleted, 23 changed)
      OCL=33739
      CL=33750
      1f177cd8
    • Russ Cox's avatar
      linker work · fd6cdbd8
      Russ Cox authored
        * more elf constants from FreeBSD
        * simple relocation demo
      
      R=r
      DELTA=410  (354 added, 49 deleted, 7 changed)
      OCL=33689
      CL=33729
      fd6cdbd8
  3. 21 Aug, 2009 2 commits
    • Russ Cox's avatar
      linker work · 0e25c1dc
      Russ Cox authored
       * remove now-unused D_SBIG (was for typestrings)
       * rename elf64.[ch] to elf.[ch]
       * pull in elf headers from FreeBSD instead of writing our own
       * emit non-header ELF data in data section
       * stub out a few more ELF sections needed for dynamic loading
      
      R=r
      DELTA=1928  (1237 added, 635 deleted, 56 changed)
      OCL=33642
      CL=33658
      0e25c1dc
    • Russ Cox's avatar
      symbol bugs. · 7b29dbb8
      Russ Cox authored
      do not emit unreachable data symbols.
      
      R=austin
      DELTA=103  (71 added, 4 deleted, 28 changed)
      OCL=33325
      CL=33622
      7b29dbb8
  4. 20 Aug, 2009 1 commit
    • Russ Cox's avatar
      FFI step 2: can ask for libc.so.6. · bd4161fc
      Russ Cox authored
      introduced explicit "data" symbol instead of etext
      to mark beginning of data, so that using larger
      alignment (i.e. 4MB like GNU loader) doesn't
      confuse garbage collector.
      
      split dodata into dodata and dobss in preparation
      for putting the dynamic data + headers in the data
      segment instead of stuffed at the beginning of the binary.
      
      R=r
      DELTA=52  (37 added, 3 deleted, 12 changed)
      OCL=33610
      CL=33618
      bd4161fc
  5. 22 Jul, 2009 1 commit
  6. 21 Jul, 2009 2 commits
  7. 20 Jul, 2009 2 commits
  8. 18 Jul, 2009 1 commit
  9. 17 Jul, 2009 3 commits
  10. 24 Mar, 2009 1 commit
  11. 20 Mar, 2009 1 commit
  12. 27 Jan, 2009 1 commit
  13. 21 Jan, 2009 1 commit
  14. 15 Jan, 2009 1 commit
  15. 04 Dec, 2008 1 commit
    • Russ Cox's avatar
      emit dynamically linked 6.out on darwin instead of static, · cfb94254
      Russ Cox authored
      unless given -d flag.
      
      the resulting binary doesn't *use* any dynamic libraries,
      it just has a reference to the dynamic linker and an
      empty list of needed symbols and libraries.
      
      this is enough to make 6.out binaries that can be run
      under dtrace / dtruss.
      
      R=r
      DELTA=39  (34 added, 0 deleted, 5 changed)
      OCL=20476
      CL=20482
      cfb94254
  16. 22 Nov, 2008 1 commit
  17. 21 Nov, 2008 1 commit
    • Russ Cox's avatar
      symbol table changes · 67addd4e
      Russ Cox authored
      	* add gotype string to symbol table
      	* fill in gotype in 6l for known funcs/vars
      	* print gotype with nm -t
      
      	* load symbol and pc/ln tables into memory at magic address 0x99<<32.
      	* add sys.symdat() to retrieve raw bytes of symbol table
      	  and pc/ln table.
      
      most of this should be considered experimental
      and subject to change.
      
      R=r
      DELTA=157  (128 added, 0 deleted, 29 changed)
      OCL=19746
      CL=19750
      67addd4e
  18. 21 Oct, 2008 1 commit
  19. 20 Oct, 2008 1 commit
  20. 26 Sep, 2008 1 commit
    • Russ Cox's avatar
      fix ELF bugs found by iant · 2c52881a
      Russ Cox authored
      	- .text begins at INITTEXT, not 0
      	   and does not include HEADR
      	- .shstrtab, .gosymtab, .gopclntab have alignment 1
      	- .gosymtab, .gopclntab have type SHT_PROGBITS
      
      R=r
      DELTA=9  (0 added, 0 deleted, 9 changed)
      OCL=15953
      CL=15956
      2c52881a
  21. 08 Sep, 2008 1 commit
    • Russ Cox's avatar
      go linux x86-64 kernel fixes: · c3ca0561
      Russ Cox authored
      	* change .gosymtab and .gopclntab to section 7 (note)
      	* start INITTEXT at 4MB, not 4KB
      
      R=r
      OCL=14953
      CL=14959
      c3ca0561
  22. 04 Aug, 2008 1 commit
    • Russ Cox's avatar
      make 6a, 6c, 6g, 6l, libmach_amd64 build on 64-bit gcc. · 9aad9fef
      Russ Cox authored
      these guys really really want long to be 32-bits,
      so ,s/long/int32/ (and then manual fixup).
      still passes all tests.
      
      (i started out looking for just those longs that
      needed to be int32 instead, and it was just too hard
      to track them down one by one.)
      
      the longs were rare enough that i don't think
      it will cause integration problems.
      
      R=ken
      OCL=13787
      CL=13789
      9aad9fef
  23. 19 Jun, 2008 2 commits
  24. 16 Jun, 2008 1 commit
  25. 13 Jun, 2008 2 commits
  26. 10 Jun, 2008 1 commit
  27. 09 Jun, 2008 1 commit
  28. 05 Jun, 2008 1 commit
  29. 04 Jun, 2008 1 commit