]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: steps toward 386 host linking
authorRuss Cox <rsc@golang.org>
Fri, 8 Mar 2013 03:57:25 +0000 (19:57 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 8 Mar 2013 03:57:25 +0000 (19:57 -0800)
commit7663ffcae641dbf06b9d5321c9afbad4fc73e336
tree9c159bc3a5799d22e5a72d718f5ffef5b838f18d
parentdfc22e29ec2f687375d32c9f7662416d0c9f97d3
cmd/ld: steps toward 386 host linking

- Introduce MaxAlign constant and use in data layout
and ELF section header.

- Allow up to 16-byte alignment for large objects
(will help Keith's hash changes).

- Emit ELF symbol for .rathole (global /dev/null used by 8c).

- Invoke gcc with -m32/-m64 as appropriate.

- Don't invoke gcc if writing the .o file failed.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7563045
src/cmd/5l/l.h
src/cmd/6l/l.h
src/cmd/8l/l.h
src/cmd/8l/obj.c
src/cmd/ld/data.c
src/cmd/ld/elf.c
src/cmd/ld/lib.c
src/cmd/ld/lib.h