go/src/cmd/ld
Russ Cox 196b663075 gc: implement == on structs and arrays
To allow these types as map keys, we must fill in
equal and hash functions in their algorithm tables.
Structs or arrays that are "just memory", like [2]int,
can and do continue to use the AMEM algorithm.
Structs or arrays that contain special values like
strings or interface values use generated functions
for both equal and hash.

The runtime helper func runtime.equal(t, x, y) bool handles
the general equality case for x == y and calls out to
the equal implementation in the algorithm table.

For short values (<= 4 struct fields or array elements),
the sequence of elementwise comparisons is inlined
instead of calling runtime.equal.

R=ken, mpimenov
CC=golang-dev
https://golang.org/cl/5451105
2011-12-12 22:22:09 -05:00
..
data.c ld: align ELF data sections 2011-11-30 13:24:16 -08:00
doc.go
dwarf.c gc: implement == on structs and arrays 2011-12-12 22:22:09 -05:00
dwarf.h 8l: emit DWARF in Windows PE. 2011-01-20 11:28:30 -05:00
dwarf_defs.h Use future official DWARF language code for Go. 2010-11-04 08:45:25 -07:00
elf.c runtime: make arm work on Ubuntu Natty qemu 2011-08-31 07:02:46 -04:00
elf.h nacl, tiny: remove vestiges 2011-06-21 12:02:40 -04:00
go.c ld: fix memory leaks 2011-12-07 11:50:39 -05:00
ldelf.c ld: align ELF data sections 2011-11-30 13:24:16 -08:00
ldmacho.c ld: fix build on Plan 9 2011-07-25 13:45:50 -04:00
ldpe.c ld: fix .bss for ldpe. 2011-11-11 14:40:24 -05:00
lib.c ld/6l/8l: First pass at changes to the linker to support NetBSD binaries. 2011-12-12 15:42:11 -05:00
lib.h ld: increase default stack size on Windows for cgo 2011-12-07 16:53:17 +03:00
macho.c ld: modify macho linkedit segment to enable OS X code signing 2011-10-18 16:31:03 -04:00
macho.h 6l, 8l: fix Mach-O binaries with many dynamic libraries 2011-05-24 19:50:13 -04:00
pe.c ld: increase default stack size on Windows for cgo 2011-12-07 16:53:17 +03:00
pe.h 8l: emit resources (.rsrc) in Windows PE. 2011-05-25 07:53:00 -04:00
symtab.c ld: remove duplicate bss definitions 2011-08-22 23:23:57 -04:00