]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: Put the textflag constants in a separate file.
authorKeith Randall <khr@golang.org>
Wed, 7 Aug 2013 17:23:24 +0000 (10:23 -0700)
committerKeith Randall <khr@golang.org>
Wed, 7 Aug 2013 17:23:24 +0000 (10:23 -0700)
commit5a54696d78003a1e5c17ea9d818dc00e85624c2c
treeb649ea2160073402906ee01dcefc3e686d2ff046
parent60aa48c12783f84ba150eac47ad2a5de23b8fc74
cmd/ld: Put the textflag constants in a separate file.
We can then include this file in assembly to replace
cryptic constants like "7" with meaningful constants
like "(NOPROF|DUPOK|NOSPLIT)".

Converting just pkg/runtime/asm*.s for now.  Dropping NOPROF
and DUPOK from lots of places where they aren't needed.
More .s files to come in a subsequent changelist.

A nonzero number in the textflag field now means
"has not been converted yet".

R=golang-dev, daniel.morsing, rsc, khr
CC=golang-dev
https://golang.org/cl/12568043
src/cmd/5l/5.out.h
src/cmd/6l/6.out.h
src/cmd/8l/8.out.h
src/cmd/ld/textflag.h [new file with mode: 0644]
src/pkg/runtime/asm_386.s
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/asm_arm.s