1. 14 Oct, 2014 3 commits
  2. 13 Oct, 2014 5 commits
  3. 12 Oct, 2014 1 commit
  4. 11 Oct, 2014 3 commits
    • Alex Brainman's avatar
      cmd/ld: do not assume that only pe section names start with '.' · d704bb0d
      Alex Brainman authored
      Our current pe object reader assumes that every symbol starting with
      '.' is section. It appeared to be true, until now gcc 4.9.1 generates
      some symbols with '.' at the front. Change that logic to check other
      symbol fields in addition to checking for '.'. I am not an expert
      here, but it seems reasonable to me.
      
      Added test, but it is only good, if tested with gcc 4.9.1. Otherwise
      the test PASSes regardless.
      
      Fixes #8811.
      Fixes #8856.
      
      LGTM=jfrederich, iant, stephen.gutekanst
      R=golang-codereviews, jfrederich, stephen.gutekanst, iant
      CC=alex.brainman, golang-codereviews
      https://golang.org/cl/152410043
      d704bb0d
    • Alex Brainman's avatar
      cmd/ld: correct pe section names if longer then 8 chars · d0ee959a
      Alex Brainman authored
      gcc 4.9.1 generates pe sections with names longer then 8 charters.
      
      From IMAGE_SECTION_HEADER definition:
      
      Name
      An 8-byte, null-padded UTF-8 string. There is no terminating null character
      if the string is exactly eight characters long. For longer names, this
      member contains a forward slash (/) followed by an ASCII representation
      of a decimal number that is an offset into the string table.
      
      Our current pe object file reader does not read string table when section
      names starts with /. Do that, so (issue 8811 example)
      
      c:\go\path\src\isssue8811>go build
      # isssue8811
      isssue8811/glfw(.text): isssue8811/glfw(/76): not defined
      isssue8811/glfw(.text): undefined: isssue8811/glfw(/76)
      
      becomes
      
      c:\go\path\src\isssue8811>go build
      # isssue8811
      isssue8811/glfw(.text): isssue8811/glfw(.rdata$.refptr._glfwInitialized): not defined
      isssue8811/glfw(.text): undefined: isssue8811/glfw(.rdata$.refptr._glfwInitialized)
      
      Small progress to
      
      Update #8811
      
      LGTM=iant, jfrederich
      R=golang-codereviews, iant, jfrederich
      CC=golang-codereviews
      https://golang.org/cl/154210044
      d0ee959a
    • Shenghou Ma's avatar
      cmd/ld: fix off-by-one error when emitting symbol names · 8fe5ef40
      Shenghou Ma authored
      I diffed the output of `nm -n gofmt' before and after this change,
      and verified that all changes are correct and all corrupted symbol
      names are fixed.
      
      Fixes #8906.
      
      LGTM=iant, cookieo9
      R=golang-codereviews, iant, cookieo9
      CC=golang-codereviews
      https://golang.org/cl/159750043
      8fe5ef40
  5. 10 Oct, 2014 2 commits
  6. 09 Oct, 2014 11 commits
  7. 08 Oct, 2014 13 commits
  8. 07 Oct, 2014 2 commits
    • Keith Randall's avatar
      runtime: zero pointer-looking scalararg values · dcc4a674
      Keith Randall authored
      I have a CL which at every gc looks through data and bss
      sections for nonpointer data (according to gc maps) that
      looks like a pointer.  These are potential missing roots.
      
      The only thing it finds are begnign, storing stack pointers
      into m0.scalararg[1] and never cleaning them up.  Let's
      clean them up now so the test CL passes all.bash cleanly.
      
      The test CL can't be checked in because we might store
      pointer-looking things in nonpointer data by accident.
      
      LGTM=iant
      R=golang-codereviews, iant, khr
      CC=golang-codereviews
      https://golang.org/cl/153210043
      dcc4a674
    • Keith Randall's avatar
      runtime: update heap dump format for 1.4 · 6ea3746a
      Keith Randall authored
      We no longer have full type information in the heap, so
      we can't dump that any more.  Instead we dump ptr/noptr
      maps so at least we can compute graph connectivity.
      
      In addition, we still dump Iface/Eface types so together
      with dwarf type info we might be able to reconstruct
      types of most things in the heap.
      
      LGTM=dvyukov
      R=golang-codereviews, dvyukov, rsc, khr
      CC=golang-codereviews
      https://golang.org/cl/155940043
      6ea3746a