summaryrefslogtreecommitdiff
path: root/src/cmd/8l/asm.c
AgeCommit message (Collapse)AuthorFilesLines
2011-02-18Imported Upstream version 2011.02.15Ondřej Surý1-72/+51
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-9/+12
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-718/+610
2010-06-11Pad Go symbol table out to page boundary when linking dynamically.Ian Lance Taylor1-3/+3
This avoids a crash when using cgo where glibc's malloc thinks that it can use some of the memory following the symbol table. This fails because the symbol table is mapped read-only, which affects the whole page. R=rsc CC=golang-dev http://codereview.appspot.com/1616042
2010-04-275l, 6l, 8l, runtime: make -s binaries workRuss Cox1-11/+32
5l, 6l, 8l: change ELF header so that strip doesn't destroy binary Fixes issue 261. R=iant, r CC=golang-dev http://codereview.appspot.com/994044
2010-04-22runtime: closures, defer bug fix for Native ClientRuss Cox1-11/+37
Enable package tests for Native Client build. R=r CC=golang-dev http://codereview.appspot.com/957042
2010-04-206l, 8l: include ELF header in PT_LOAD mapping for text segmentRuss Cox1-5/+5
Due to page boundary rounding, the header would have been loaded as part of the text segment already, but this change placates the "paxctl" tool on so-called hardened Linux distributions (as if normal distributions weren't already hard enough to use). R=r CC=golang-dev http://codereview.appspot.com/954041
2010-03-23Add support for #pragma dynexport.Ian Lance Taylor1-30/+45
R=rsc CC=golang-dev http://codereview.appspot.com/661043
2010-03-22Rename dynld to dynimport throughout.Ian Lance Taylor1-5/+5
Cgo users will need to rerun cgo. R=rsc CC=golang-dev http://codereview.appspot.com/692041
2010-02-26Add -r option to 6l/8l/5l.Ian Lance Taylor1-0/+2
This permits more flexibility with cgo and swig in cases where the program is run on a machine other than the one on which it is built. Rather than storing the absolute path to the shared library in the DT_NEEDED entry, we can store just the name, and let the dynamic linker find it using DT_RUNPATH or the LD_LIBRARY_PATH environment variable. R=rsc CC=golang-dev http://codereview.appspot.com/223068
2010-01-13runtime: add demo running Go on raw (emulated) hwRuss Cox1-12/+12
8l: add GOOS=pchw, stop spelling out all the elf numbers. R=r CC=golang-dev http://codereview.appspot.com/186144
2009-12-138l: add support for PE output.Hector Chu1-0/+9
R=rsc http://codereview.appspot.com/166080 Committer: Russ Cox <rsc@golang.org>
2009-11-186l, 8l: add trivial hash table for dynamic symbolsRuss Cox1-18/+21
R=r http://codereview.appspot.com/156085
2009-11-18ld: move interpreter string into first block of ELF fileRuss Cox1-12/+10
necessary on freebsd. R=r, dho CC=golang-dev http://codereview.appspot.com/157069
2009-11-17FreeBSD/i386 workDevon H. O'Dell1-3/+19
This patchset gets Go to pretty much the same state that FreeBSD/amd64 is in. R=rsc http://codereview.appspot.com/157055 Committer: Russ Cox <rsc@golang.org>
2009-11-05same speedup as 6lKen Thompson1-47/+105
R=rsc http://go/go-review/1016050
2009-11-02fix divide by zero in old glibc dynamic loaderRuss Cox1-4/+11
R=r CC=iant http://go/go-review/1018024
2009-10-09fix nacl buildRuss Cox1-1/+1
R=r DELTA=23 (5 added, 0 deleted, 18 changed) OCL=35510 CL=35518
2009-10-07factor portable object+library bits out of 5l/6l/8l into ldRuss Cox1-6/+2
R=r DELTA=3214 (904 added, 2260 deleted, 50 changed) OCL=35425 CL=35427
2009-10-038c, 8l dynamic loading support.Russ Cox1-87/+22
better mach binaries. cgo working on darwin+linux amd64+386. eliminated context switches - pi is 30x faster. add libcgo to build. on snow leopard: - non-cgo binaries work; all tests pass. - cgo binaries work on amd64 but not 386. R=r DELTA=2031 (1316 added, 626 deleted, 89 changed) OCL=35264 CL=35304
2009-09-30step toward darwin ffi: factor out macho codeRuss Cox1-204/+88
R=r DELTA=771 (374 added, 287 deleted, 110 changed) OCL=35187 CL=35187
2009-09-30cgo working on linux/386Russ Cox1-6/+5
R=r DELTA=70 (47 added, 4 deleted, 19 changed) OCL=35167 CL=35171
2009-09-24convert 8l to new ELF code.Russ Cox1-252/+517
mostly cut and paste from 6l. R=r DELTA=930 (525 added, 182 deleted, 223 changed) OCL=34976 CL=34976
2009-09-188l: step toward native client.Russ Cox1-11/+54
- ELF header bits and addresses - do not let instructions span 32-byte boundary - align CALLs so return is to 32-byte boundary - align indirect jump targets to 32-byte boundary (only possible indirect jumps are function entries) still to do: - replace indirect jump, indirect call, and ret with nacl-approved instruction sequences - switch to GS segment for m-local storage R=ken OCL=34818 CL=34818
2009-08-21linker workRuss Cox1-14/+1
* remove now-unused D_SBIG (was for typestrings) * rename elf64.[ch] to elf.[ch] * pull in elf headers from FreeBSD instead of writing our own * emit non-header ELF data in data section * stub out a few more ELF sections needed for dynamic loading R=r DELTA=1928 (1237 added, 635 deleted, 56 changed) OCL=33642 CL=33658
2009-08-20symbol bugs.Russ Cox1-0/+2
do not emit unreachable data symbols. R=austin DELTA=103 (71 added, 4 deleted, 28 changed) OCL=33325 CL=33622
2009-06-028l fixes, cut and paste from 6l.Russ Cox1-1/+15
move PtrSize value into 6l/8l files. R=r DELTA=78 (47 added, 15 deleted, 16 changed) OCL=29729 CL=29798
2009-03-20make 8l generate Darwin Mach-O and Linux ELF binariesRuss Cox1-37/+565
R=ken OCL=26584 CL=26589
2009-01-06make 8a, 8c, 8l build in go environment.Russ Cox1-9/+9
,s/int32/long/g in 8a, 8c, 8l. delete dead code. move enam.c, 8.out.h, mkenam from 8c to 8l. R=r DELTA=1850 (581 added, 983 deleted, 286 changed) OCL=22119 CL=22129
2009-01-068a, 8c, and 8l from inferno distributionRuss Cox1-0/+532
R=r DELTA=19539 (19539 added, 0 deleted, 0 changed) OCL=22109 CL=22109