• Lucio De Re's avatar
    8l, ld: Initial adjustments for Plan 9 native compilation of 8l · 9baaa6f7
    Lucio De Re authored
    These changes are not particularly invasive and have been tested
    as broadly as possible.
    
    8l/l.h:
      -	#pragma varargck: added some, removed duplicates.
    
    ld/dwarf.c:
      -	As Plan 9 has no NULL, changed all occurrences to nil.
      -	Added USED(size); where necessary.
      -	Added (void) argument in definition of finddebugruntimepath().
      -	Plan 9 compiler was complaining about multiple
            assignments, repeaired by breaking up the commands.
      -	Correction: havedynamic = 1; restored.
    
    ld/go.c:
      -	Needed USED(file); in two functions.
      -	Removed unused assignments flagged by the Plan 9 compiler.
    
    ld/lib.c:
      -	Replaced unlink() with remove() which seems available everywhere.
      -	Removed USED(c4); and USED(magic) no longer required.
      -	Removed code flagged as unused by the Plan 9 compiler.
      -	Added attributes to a number of format strings.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/4435047
    9baaa6f7
Name
Last commit
Last update
..
data.c Loading commit data...
doc.go Loading commit data...
dwarf.c Loading commit data...
dwarf.h Loading commit data...
dwarf_defs.h Loading commit data...
elf.c Loading commit data...
elf.h Loading commit data...
go.c Loading commit data...
ldelf.c Loading commit data...
ldmacho.c Loading commit data...
ldpe.c Loading commit data...
lib.c Loading commit data...
lib.h Loading commit data...
macho.c Loading commit data...
macho.h Loading commit data...
pe.c Loading commit data...
pe.h Loading commit data...
symtab.c Loading commit data...