summaryrefslogtreecommitdiff
path: root/src/cmd/8l/obj.c
AgeCommit message (Collapse)AuthorFilesLines
2011-04-28Imported Upstream version 2011.04.27Ondřej Surý1-3/+2
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-50/+44
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-0/+1
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-1/+4
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-401/+104
2010-06-30cgo: use slash-free relative paths for .so referencesRuss Cox1-0/+2
The Makefile and cgo now rewrite / to _ when creating the path. The .so for gosqlite.googlecode.com/hg/sqlite is named cgo_gosqlite.googlecode.com_hg_sqlite.so, and then 6l and 8l both include a default rpath of $GOROOT/pkg/$GOOS_$GOARCH. This should make it easier to move binaries from one system to another. Fixes issue 857. R=iant, r CC=golang-dev http://codereview.appspot.com/1700048
2010-06-21ld: add -u flag to check safe bits; discard old -u, -x flagsRuss Cox1-10/+0
R=r, r2 CC=golang-dev http://codereview.appspot.com/1707043
2010-06-07runtime: finish pchw -> tiny, added gettime for tinyDaniel Theophanes1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1514041 Committer: Russ Cox <rsc@golang.org>
2010-04-29rename GOOS=mingw to GOOS=windowsAlex Brainman1-1/+1
R=rsc, Joe Poirier CC=golang-dev http://codereview.appspot.com/1015043 Committer: Russ Cox <rsc@golang.org>
2010-04-22runtime: closures, defer bug fix for Native ClientRuss Cox1-1/+6
Enable package tests for Native Client build. R=r CC=golang-dev http://codereview.appspot.com/957042
2010-02-26Add -r option to 6l/8l/5l.Ian Lance Taylor1-1/+3
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-02-08*l/*c: add -V flag to display version numberAndrew Gerrand1-0/+3
R=rsc CC=golang-dev http://codereview.appspot.com/204044
2010-02-03search for runtime.a in the package path instead of hardcodingKai Backman1-5/+4
the location. remove last remnants of broken -l flag. R=rsc CC=golang-dev http://codereview.appspot.com/201042
2010-02-03ld: include main and runtime in the library loopRuss Cox1-1/+1
Fixes issue 585. R=r CC=golang-dev http://codereview.appspot.com/195075
2010-01-255l, 6l, 8l: accept only one object fileRuss Cox1-5/+4
(package main; others are pulled in automatically) R=ken2 CC=golang-dev http://codereview.appspot.com/194069
2010-01-25ld: do not load the same object file multiple times.Russ Cox1-0/+6
eliminates spurious multiple initialization errors. give more information in the multiple init errors that remain. Fixes issue 87. R=r CC=golang-dev http://codereview.appspot.com/194052
2010-01-22eliminate the package global name space assumption in object filesRuss Cox1-4/+8
5g/6g/8g: add import statements to export metadata, mapping package path to package name. recognize "" as the path of the package in export metadata. use "" as the path of the package in object symbol names. 5c/6c/8c, 5a/6a/8a: rewrite leading . to "". so that ·Sin means Sin in this package. 5l/6l/8l: rewrite "" in symbol names as object files are read. gotest: handle new symbol names. gopack: handle new import lines in export metadata. Collectively, these changes eliminate the assumption of a global name space in the object file formats. Higher level pieces such as reflect and the computation of type hashes still depend on the assumption; we're not done yet. R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/186263 Committer: Russ Cox <rsc@golang.org>
2010-01-13runtime: add demo running Go on raw (emulated) hwRuss Cox1-0/+14
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-3/+28
R=rsc http://codereview.appspot.com/166080 Committer: Russ Cox <rsc@golang.org>
2009-11-18More FreeBSD-touchups. Thundercats are GOOOOO!Devon H. O'Dell1-7/+3
R=rsc CC=golang-dev http://codereview.appspot.com/157074 Committer: Russ Cox <rsc@golang.org>
2009-11-17FreeBSD/i386 workDevon H. O'Dell1-1/+13
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-11/+14
R=rsc http://go/go-review/1016050
2009-10-07factor portable object+library bits out of 5l/6l/8l into ldRuss Cox1-637/+12
R=r DELTA=3214 (904 added, 2260 deleted, 50 changed) OCL=35425 CL=35427
2009-10-06fix buildRob Pike1-0/+5
R=rsc DELTA=5 (5 added, 0 deleted, 0 changed) OCL=35387 CL=35401
2009-10-05allow multiple -L optionsRob Pike1-6/+12
R=rsc DELTA=31 (15 added, 3 deleted, 13 changed) OCL=35364 CL=35364
2009-10-038c, 8l dynamic loading support.Russ Cox1-2/+19
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-1/+3
R=r DELTA=771 (374 added, 287 deleted, 110 changed) OCL=35187 CL=35187
2009-09-24convert 8l to new ELF code.Russ Cox1-1/+5
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-0/+12
- 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-20symbol bugs.Russ Cox1-7/+7
do not emit unreachable data symbols. R=austin DELTA=103 (71 added, 4 deleted, 28 changed) OCL=33325 CL=33622
2009-08-13debugging symbols for 8g.Russ Cox1-1/+9
backtraces don't work, but they didn't work when i started either. R=ken OCL=33230 CL=33230
2009-08-12delete heuristic left over from incremental compilationRuss Cox1-15/+2
R=r DELTA=31 (2 added, 28 deleted, 1 changed) OCL=33064 CL=33112
2009-08-07remove 8.out before creating it.Russ Cox1-0/+1
hope this will work around Mac NFS bug where writing to an 8.out that has crashed recently sometimes wedges NFS. R=r DELTA=3 (3 added, 0 deleted, 0 changed) OCL=32906 CL=32908
2009-07-07the ld-supplied typestrings are now obsoleteRuss Cox1-2/+0
R=r DELTA=167 (0 added, 167 deleted, 0 changed) OCL=31304 CL=31316
2009-06-17update 386 to new runtime (CL 30381)Russ Cox1-1/+1
R=r DELTA=298 (119 added, 81 deleted, 98 changed) OCL=30427 CL=30443
2009-06-06move src/runtime -> src/lib/runtime;Russ Cox1-1/+1
hand-edited files. R=r DELTA=125 (77 added, 16 deleted, 32 changed) OCL=30001 CL=30008
2009-06-05more build refinements:Russ Cox1-1/+1
* use new Make.$GOARCH files in gobuild. * rename 6ar to arch-generic gopack. * place objects in $GOROOT/pkg/$GOOS_$GOARCH (makes cross-compiling easier, and no one ever types these paths by hand anyway). R=r DELTA=29 (6 added, 8 deleted, 15 changed) OCL=29923 CL=29967
2009-06-028l fixes, cut and paste from 6l.Russ Cox1-26/+36
move PtrSize value into 6l/8l files. R=r DELTA=78 (47 added, 15 deleted, 16 changed) OCL=29729 CL=29798
2009-03-31* move go-specific loader codeRuss Cox1-14/+20
into gc directory, where it gets included as ../gc/ldbody this is similar to the assemblers including ../cc/lexbody and ../cc/macbody. * hook go-specific loader code into 8l. * make current 8.out.h and 6.out.h backward compatible with plan 9's versions. i had added some constants in the middle of enums and have now moved them to the end. this keeps us from invalidating old .8 and .6 files. not sure how much it really matters, but easy to do. R=r DELTA=1314 (667 added, 623 deleted, 24 changed) OCL=26938 CL=26941
2009-03-24drop rt0 object from 8l (already dropped from 6l).Russ Cox1-8/+0
remove debugging print. R=r DELTA=8 (0 added, 8 deleted, 0 changed) OCL=26695 CL=26710
2009-03-20update 8a, 8c, 8l to use new object format.Russ Cox1-122/+184
add "extern register" support to 8c. extern register means allocate in the FS-relative segment. make 8l generate segmented stack checks. R=ken OCL=26600 CL=26606
2009-03-20make 8l generate Darwin Mach-O and Linux ELF binariesRuss Cox1-17/+49
R=ken OCL=26584 CL=26589
2009-01-06make 8a, 8c, 8l build in go environment.Russ Cox1-59/+17
,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/+1522
R=r DELTA=19539 (19539 added, 0 deleted, 0 changed) OCL=22109 CL=22109