• Russ Cox's avatar
    5l, 6l, 8l: accumulate data image during import · be2c2120
    Russ Cox authored
    Using explicit relocations internally, we can
    represent the data for a particular symbol as
    an initialized block of memory instead of a
    linked list of ADATA instructions.  The real
    goal here is to be able to hand off some of the
    relocations to the dynamic linker when interacting
    with system libraries, but a pleasant side effect is
    that the memory image is much more compact
    than the ADATA list, so the linkers use less memory.
    
    R=ken2
    CC=golang-dev
    https://golang.org/cl/2512041
    be2c2120
obj.c 14.1 KB