s390: put _stext and _etext into .text section
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 5 Aug 2019 12:25:16 +0000 (14:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2019 06:28:41 +0000 (08:28 +0200)
commitdb106f695414144d3cc1de97c7e601eecdb48ae8
tree872c0ff9812869da1465d22d813ddef79db6c6db
parent33bdea175df0ffbb2327b6ea90012dd581eb501f
s390: put _stext and _etext into .text section

[ Upstream commit 24350fdadbdec780406a1ef988e6cd3875e374a8 ]

Perf relies on _etext and _stext symbols being one of 't', 'T', 'v' or
'V'. Put them into .text section to guarantee that.

Also moves padding to page boundary inside .text which has an effect that
.text section is now padded with nops rather than 0's, which apparently
has been the initial intention for specifying 0x0700 fill expression.

Reported-by: Thomas Richter <tmricht@linux.ibm.com>
Tested-by: Thomas Richter <tmricht@linux.ibm.com>
Suggested-by: Andreas Krebbel <krebbel@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kernel/vmlinux.lds.S