]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 6 Aug 2019 11:58:35 +0000 (13:58 +0200)
commitc5310bee47462ae7a6aab29669a4b0d16d751403
tree75fc24d0714d6bd3d3bb30f1d6849d35764d66c4
parent483f94ce4ab0b0ac83ff9dff599400fe6c08cae4
s390: put _stext and _etext into .text section

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>
arch/s390/kernel/vmlinux.lds.S