go/src/cmd/internal/obj
Keith Randall 5701174c52 cmd/link: put padding between functions, not at the end of a function
Functions should be declared to end after the last real instruction, not
after the last padding byte. We achieve this by adding the padding while
assembling the text section in the linker instead of adding the padding
to the function symbol in the compiler. This change makes dtrace happy.

TODO: check that this works with external linking

Fixes #15969

Change-Id: I973e478d0cd34b61be1ddc55410552cbd645ad62
Reviewed-on: https://go-review.googlesource.com/24040
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-06-13 14:05:52 +00:00
..
arm all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
arm64 cmd/compile: enable const division for arm64 2016-04-27 17:47:49 +00:00
mips all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
ppc64 sync/atomic, runtime/internal/atomic: improve ppc64x atomics 2016-05-05 18:52:28 +00:00
s390x all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
x86 cmd/link: put padding between functions, not at the end of a function 2016-06-13 14:05:52 +00:00
data.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
flag.go cmd/internal/obj: remove dead code 2016-03-15 06:02:13 +00:00
funcdata.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
go.go build: enable framepointer mode by default 2016-05-26 19:02:00 +00:00
ld.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
line_test.go cmd/internal/obj: change linkgetline from C to Go func style 2016-03-21 18:45:20 +00:00
link.go build: enable framepointer mode by default 2016-05-26 19:02:00 +00:00
obj.go cmd/internal/obj: change linkgetline from C to Go func style 2016-03-21 18:45:20 +00:00
objfile.go cmd/link: bump object file version number 2016-05-02 22:45:29 +00:00
pass.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
pcln.go cmd/internal/obj, cmd/link: random style cleanups 2016-04-15 06:54:36 +00:00
plist.go cmd/internal/obj: split plist flushing from object writing 2016-04-12 21:07:16 +00:00
sizeof_test.go cmd/compile: move LSym.RefIdx for better packing 2016-03-16 20:52:33 +00:00
stack.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
stringer.go
sym.go build: enable framepointer mode by default 2016-05-26 19:02:00 +00:00
textflag.go cmd/compile: track reflect.Type.Method in deadcode 2016-03-11 21:19:20 +00:00
typekind.go
util.go cmd/internal/obj/x86: add AVX2 instrutions needed for sha1/sha512/sha256 acceleration 2016-05-06 13:48:29 +00:00