1
0
mirror of https://github.com/golang/go synced 2024-10-04 10:31:22 -06:00
go/src/cmd/ld
Shenghou Ma dac4c3eee9 cmd/cgo, cmd/cc, cmd/ld: detect dynamic linker automatically
Some newer Linux distributions (Ubuntu ARM at least) use a new multiarch
directory organization, where dynamic linker is no longer in the hardcoded
path in our linker.
For example, Ubuntu 12.04 ARM hardfloat places its dynamic linker at
/lib/arm-linux-gnueabihf/ld-linux.so.3

Ref: http://lackof.org/taggart/hacking/multiarch/

Also, to support Debian GNU/kFreeBSD as a FreeBSD variant, we need this capability, so it's part of issue 3533.

This CL add a new pragma (#pragma dynlinker "path") to cc.

R=iant, rsc
CC=golang-dev
https://golang.org/cl/6086043
2012-05-05 01:54:16 +08:00
..
data.c cmd/5l, cmd/ld: dynamic linking library support 2012-05-04 18:14:26 +08:00
doc.go doc: various update to command documents 2012-03-09 01:31:09 +08:00
dwarf_defs.h Use future official DWARF language code for Go. 2010-11-04 08:45:25 -07:00
dwarf.c runtime: delete Type and implementations (use reflect instead) 2012-02-12 23:26:20 -05:00
dwarf.h 8l: emit DWARF in Windows PE. 2011-01-20 11:28:30 -05:00
elf.c 5l/6l/8l: add support for netbsd signature note section 2011-12-20 12:25:06 +11:00
elf.h cmd/5l, cmd/ld: dynamic linking library support 2012-05-04 18:14:26 +08:00
go.c cmd/cgo, cmd/cc, cmd/ld: detect dynamic linker automatically 2012-05-05 01:54:16 +08:00
ldelf.c cmd/5l, cmd/ld: dynamic linking library support 2012-05-04 18:14:26 +08:00
ldmacho.c ld: fix build on Plan 9 2011-07-25 13:45:50 -04:00
ldpe.c ld: allow for IMAGE_REL_AMD64_ADDR32NB relocation type 2011-12-16 10:32:14 +11:00
lib.c fix build for FreeBSD/amd64 2012-03-03 04:47:42 +08:00
lib.h ld: allow more -L options 2012-03-03 04:14:31 +08:00
macho.c ld: fix Mach-O code signing for non-cgo binaries 2012-01-23 09:42:09 -05: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: get symbol table letters right 2012-02-22 01:30:04 -05:00