Git Product home page Git Product logo

Comments (3)

haberman avatar haberman commented on May 5, 2024

Its value is an offset into the TLS block, not an absolute address, so it should probably be ignored by bloaty.

If it's an offset into the TLS block, could we just interpret it relative to the PT_TLS segment? Seems better than dropping it altogether, no?

from bloaty.

heschi avatar heschi commented on May 5, 2024

Oh. Sure, that makes some sense if you're interested in subdividing the TLS segment.

from bloaty.

haberman avatar haberman commented on May 5, 2024

I tried reproducing this just now and was not able to:

$ cat hello.go 
package main
import "fmt"
func main() {
      fmt.Println("hello world")
}
$ go build -ldflags=-linkmode=external -ldflags=-compressdwarf=false hello.go
$ ../bloaty -d compileunits hello
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  53.7%  1.64Mi  44.7%   703Ki    runtime
  12.4%   388Ki  24.7%   388Ki    [section .gopclntab]
   8.2%   257Ki   6.2%  97.2Ki    reflect
   3.5%   110Ki   5.9%  93.0Ki    internal/poll
   3.3%   102Ki   2.7%  41.9Ki    fmt
   2.4%  75.1Ki   0.0%       0    [section .debug_frame]
   2.3%  72.8Ki   1.8%  27.9Ki    strconv
   2.3%  72.7Ki   0.5%  7.72Ki    syscall
   1.6%  51.2Ki   1.6%  25.0Ki    sync
   1.5%  48.1Ki   1.6%  25.0Ki    unicode
   1.5%  46.4Ki   2.9%  46.4Ki    [section .noptrdata]
   1.4%  44.5Ki   1.1%  16.9Ki    [26 Others]
   1.3%  40.9Ki   0.7%  10.5Ki    internal/reflectlite
   0.8%  25.3Ki   1.6%  25.3Ki    [section .rodata]
   0.8%  25.3Ki   0.7%  10.6Ki    os
   0.7%  23.4Ki   0.6%  8.96Ki    internal/fmtsort
   0.6%  17.8Ki   1.1%  17.8Ki    [section .data]
   0.5%  16.1Ki   1.0%  16.1Ki    [section .text]
   0.5%  15.3Ki   0.5%  8.27Ki    internal/cpu
   0.3%  8.91Ki   0.1%  2.29Ki    unicode/utf8
   0.2%  7.34Ki   0.1%  2.11Ki    sort
 100.0%  3.06Mi 100.0%  1.54Mi    TOTAL

Is this bug obsolete? Does Go with -linkmode=external no longer produce these TLS symbols?

Please re-open if there is a repro. Also sorry for the slow reply on this.

from bloaty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.