Russ Cox
05cc83bf4e
various: appease the ubuntu gcc monster
...
Silence warnings about not checking
return values from read and write system calls.
R=r, r2
CC=golang-dev
https://golang.org/cl/2258045
2010-09-28 13:00:13 -04:00
Ken Thompson
103d756663
loader fix
...
static init redo
R=rsc
CC=golang-dev
https://golang.org/cl/2254041
2010-09-20 14:23:25 -07:00
Luuk van Dijk
eb572e0174
6l/8l: emit DWARF frame info.
...
R=rsc, ken2, r
CC=golang-dev
https://golang.org/cl/2151044
2010-09-20 18:44:19 +02:00
Russ Cox
af12feb8d5
6l, 8l: clean up ELF code, fix NaCl
...
R=r
CC=golang-dev
https://golang.org/cl/2221042
2010-09-19 22:10:34 -04:00
Russ Cox
d64a2bddf0
tabs
...
TBR=lvd
CC=golang-dev
https://golang.org/cl/2194041
2010-09-14 11:16:57 -04:00
Russ Cox
698fb4f192
6g, 6l, 8g, 8l: move read-only data to text segment
...
Changing 5g and 5l too, but it doesn't work yet.
R=ken2
CC=golang-dev
https://golang.org/cl/2136047
2010-09-12 00:17:44 -04:00
Dan Sinclair
122f3980c7
ld: handle quoted spaces in package path
...
Fixes #1087 .
R=rsc
CC=golang-dev
https://golang.org/cl/2172041
2010-09-10 13:59:20 -04:00
Luuk van Dijk
728003e340
6l/8l: emit DWARF in macho.
...
R=rsc, r, ken2
CC=golang-dev
https://golang.org/cl/2128041
2010-09-01 21:54:28 +02:00
Luuk van Dijk
b433552ebc
8l: emit DWARF in ELF.
...
R=rsc, r, ken2
CC=golang-dev
https://golang.org/cl/2004046
2010-08-30 22:20:38 +02:00
Luuk van Dijk
ca9098ee94
Dwarf output for 6l.
...
Part 1, general scaffolding and pc/lc sections.
R=rsc, r, ken2
CC=golang-dev
https://golang.org/cl/1987042
2010-08-18 16:53:22 +02:00
Russ Cox
9a442211c6
6l: more invalid input files
...
Fixes #963 .
Fixes #964 .
R=r
CC=golang-dev
https://golang.org/cl/1874045
2010-07-26 17:34:02 -07:00
Russ Cox
916f896a3b
ld: various bug fixes
...
Fixes #937 .
Fixes #938 .
Fixes #939 .
Fixes #940 .
R=r
CC=golang-dev
https://golang.org/cl/1886043
2010-07-21 13:44:49 -07:00
Russ Cox
e692977af3
5l, 6l, 8l: reject invalid input files
...
Fixes #925 .
Fixes #926 .
Fixes #927 .
Fixes #928 .
Fixes #929 .
Fixes #930 .
R=r
CC=golang-dev
https://golang.org/cl/1752044
2010-07-16 16:16:17 -07:00
Russ Cox
44eaaaaa78
ld: fix handling of "". names in #pragma dynimport/dynexport
...
Fixes #728 .
R=r
CC=golang-dev
https://golang.org/cl/1706053
2010-07-01 21:48:13 -07:00
Russ Cox
489494cac3
cgo: use slash-free relative paths for .so references
...
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 #857 .
R=iant, r
CC=golang-dev
https://golang.org/cl/1700048
2010-06-30 23:31:27 -07:00
Russ Cox
829896168c
ld: fix implementation of -u
...
R=r
CC=golang-dev
https://golang.org/cl/1678046
2010-06-29 18:59:48 -07:00
Russ Cox
6519a6ba5b
ld: add -u flag to check safe bits; discard old -u, -x flags
...
R=r, r2
CC=golang-dev
https://golang.org/cl/1707043
2010-06-21 18:03:49 -07:00
Russ Cox
74a23646bc
8l: fix absolute path detection on Windows
...
Fixes #755 .
R=ken2
CC=golang-dev
https://golang.org/cl/965047
2010-04-30 12:48:03 -07:00
Russ Cox
000ab98df6
5l, 6l, 8l, runtime: make -s binaries work
...
5l, 6l, 8l: change ELF header so that strip doesn't destroy binary
Fixes #261 .
R=iant, r
CC=golang-dev
https://golang.org/cl/994044
2010-04-27 22:40:26 -07:00
Evan Shaw
30f981d980
8l: add DOS stub to PE binaries
...
R=rsc
CC=golang-dev
https://golang.org/cl/915041
2010-04-13 16:13:53 -07:00
Ian Lance Taylor
732f3919ab
Support #pragma dynexport on OS X.
...
R=rsc
CC=golang-dev
https://golang.org/cl/733041
2010-03-25 11:45:18 -07:00
Ian Lance Taylor
9e0ae94e72
Add support for #pragma dynexport.
...
R=rsc
CC=golang-dev
https://golang.org/cl/661043
2010-03-23 06:46:30 -07:00
Ian Lance Taylor
f54d73b880
Rename dynld to dynimport throughout.
...
Cgo users will need to rerun cgo.
R=rsc
CC=golang-dev
https://golang.org/cl/692041
2010-03-22 19:58:55 -07:00
Alex Brainman
3b1a71862e
8l: pe executable building code changed to include import table for kernel32.dll functions
...
Fixes #586 .
R=rsc
CC=golang-dev
https://golang.org/cl/203060
2010-02-10 00:47:52 -08:00
Russ Cox
f9f66b97e2
ld: unused variable
...
R=adg
CC=golang-dev
https://golang.org/cl/207050
2010-02-10 00:44:22 -08:00
Andrew Gerrand
8ec9ffc742
6l: move mapped symbol table lower in memory
...
Allows binary to run on some Linux system.
Fix for issue 365.
R=rsc
CC=golang-dev
https://golang.org/cl/199096
2010-02-04 12:46:11 -08:00
Kai Backman
2f1a321d4f
search for runtime.a in the package path instead of hardcoding
...
the location. remove last remnants of broken -l flag.
R=rsc
CC=golang-dev
https://golang.org/cl/201042
2010-02-03 22:31:38 -08:00
Russ Cox
00f4c6a1b5
ld: include main and runtime in the library loop
...
Fixes #585 .
R=r
CC=golang-dev
https://golang.org/cl/195075
2010-02-03 16:30:45 -08:00
Russ Cox
1f11ece67f
nacl: fix build, finally fixed 8l convergence bug
...
R=r
CC=golang-dev
https://golang.org/cl/199042
2010-02-01 15:20:19 -08:00
Russ Cox
60a6ec1c93
ld: typo
...
R=ken2
CC=golang-dev
https://golang.org/cl/194073
2010-01-25 18:48:18 -08:00
Russ Cox
531e6b77c8
eliminate package global name space
...
R=ken2
CC=golang-dev
https://golang.org/cl/194071
2010-01-25 18:31:35 -08:00
Russ Cox
69e244a104
ld: do not load the same object file multiple times.
...
eliminates spurious multiple initialization errors.
give more information in the multiple init errors that remain.
Fixes #87 .
R=r
CC=golang-dev
https://golang.org/cl/194052
2010-01-25 08:53:27 -08:00
Russ Cox
758f2bc556
eliminate the package global name space assumption in object files
...
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
https://golang.org/cl/186263
2010-01-22 17:06:20 -08:00
Russ Cox
a6736fa4ff
cleanup toward eliminating package global name space
...
* switch to real dot (.) instead of center dot (·) everywhere in object files.
before it was half and half depending on where in the name it appeared.
* in 6c/6a/etc identifiers, · can still be used but turns into . immediately.
* in export metadata, replace package identifiers with quoted strings
(still package names, not paths).
R=ken2, r
CC=golang-dev
https://golang.org/cl/190076
2010-01-19 21:34:44 -08:00
Russ Cox
ae3e8eb2ec
ld: unused variable
...
R=r
CC=golang-dev
https://golang.org/cl/186229
2010-01-19 13:09:27 -08:00
Russ Cox
4f8117d9eb
build: move GOOS, GOARCH, GOROOT lookup into central library.
...
bake default values in during build.
R=r
CC=golang-dev
https://golang.org/cl/186173
2010-01-18 21:46:46 -08:00
Russ Cox
da9bc7ae7d
runtime: add demo running Go on raw (emulated) hw
...
8l: add GOOS=pchw, stop spelling out all the elf numbers.
R=r
CC=golang-dev
https://golang.org/cl/186144
2010-01-13 19:51:59 -08:00
Rob Pike
ccbcefe2b6
ignore $GOARCH inside the compiler and linker.
...
by definition, they know what they are building for.
makes it easier to switch architectures when testing.
% 6g x.go
% 6l x.6
% 6.out
"Wed Jan 13 10:57:46 EST 2010"
% 8g x.go
% 8l x.8
% 8.out
"Wed Jan 13 10:57:46 EST 2010"
% echo $GOARCH
%
R=rsc
CC=golang-dev
https://golang.org/cl/186116
2010-01-13 14:39:16 +11:00
Kai Backman
d85bb81878
first stub for softfloats, intercepts float instructions and skips
...
them in the stream.
R=rsc
https://golang.org/cl/174052
2009-12-17 16:08:42 -08:00
Hector Chu
977e19d69f
8l: add support for PE output.
...
R=rsc
https://golang.org/cl/166080
2009-12-13 12:39:20 -08:00
Russ Cox
91cf0af181
ld: move interpreter string into first block of ELF file
...
necessary on freebsd.
R=r, dho
CC=golang-dev
https://golang.org/cl/157069
2009-11-18 13:51:05 -08:00
Russ Cox
a338231526
gc: five bug fixes, one better error.
...
* check for struct literal assignment to private fields.
* record, fix crash involving parallel map assignment.
* avoid infinite recursion in exportassignok.
* make floating point bounds check precise.
* avoid crash on invalid receiver.
* add context to error about implicit assignment.
Fixes #86 .
Fixes #88 .
Fixes #158 .
Fixes #174 .
Fixes #201 .
Fixes #204 .
R=ken2
https://golang.org/cl/154144
2009-11-15 12:57:09 -08:00
Russ Cox
6634e3432d
cc, ld: fix more gcc 4.3 -O2 compile bugs
...
same as https://golang.org/cl/152088
in more files.
Fixes #83 .
R=r, r1
https://golang.org/cl/152091
2009-11-12 00:22:45 -08:00
Russ Cox
18ccbc69f8
tweak documentation of commands
...
so that first sentence is better for cmd page.
live at http://r45:3456/cmd/
R=gri, r
http://go/go-review/1024034
2009-11-09 11:45:15 -08:00
Rob Pike
dc62c66c73
more command documentation, including nm and prof
...
R=rsc
http://go/go-review/1017022
2009-11-03 17:46:35 -08:00
Russ Cox
96ea081c04
6l -e: emit external ELF symbol table.
...
enough to make nm and oprofile work.
R=r
http://go/go-review/1017016
2009-11-03 14:20:37 -08:00
Russ Cox
22a5c78f44
rename sys functions to runtime,
...
because they are in package runtime.
another step to enforcing package boundaries.
R=r
DELTA=732 (114 added, 93 deleted, 525 changed)
OCL=35811
CL=35824
2009-10-15 23:10:49 -07:00
Rob Pike
86cfaf66a7
reallocate library, libraryobj: 50 isn't nearly enough
...
R=rsc
DELTA=7 (2 added, 0 deleted, 5 changed)
OCL=35569
CL=35569
2009-10-10 12:29:06 -07:00
Kai Backman
98fff8ffb2
dupok, gcc compile fix, sync and syscall asm fix
...
R=rsc
APPROVED=rsc
DELTA=27 (18 added, 0 deleted, 9 changed)
OCL=35503
CL=35505
2009-10-08 22:16:08 -07:00
Russ Cox
c2874976e4
factor portable object+library bits out of 5l/6l/8l into ld
...
R=r
DELTA=3214 (904 added, 2260 deleted, 50 changed)
OCL=35425
CL=35427
2009-10-07 00:11:59 -07:00