Skip to content

Commit e2f8184

Browse files
author
Russell King
committed
ARM: vmlinux.lds: use _text and _stext the same way as x86
x86 uses _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. Change our vmlinux.lds to conform. An audit of the places which use _stext and _text in arch/arm indicates no users of either symbol are impacted by this change. It does mean a slight change to /proc/iomem output. Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org> Tested-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 3835d69 commit e2f8184

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/arm/kernel/vmlinux.lds.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ SECTIONS
6666
. = PAGE_OFFSET + TEXT_OFFSET;
6767
#endif
6868
.head.text : {
69-
_stext = .;
69+
_text = .;
7070
HEAD_TEXT
7171
}
7272
.text : { /* Real text segment */
73-
_text = .; /* Text and read-only data */
73+
_stext = .; /* Text and read-only data */
7474
__exception_text_start = .;
7575
*(.exception.text)
7676
__exception_text_end = .;

0 commit comments

Comments
 (0)