|
|
@@ -385,7 +385,7 @@ static void create_mapping_late(phys_addr_t phys, unsigned long virt,
|
|
|
|
|
|
static void __init __map_memblock(pgd_t *pgd, phys_addr_t start, phys_addr_t end)
|
|
|
{
|
|
|
- unsigned long kernel_start = __pa(_stext);
|
|
|
+ unsigned long kernel_start = __pa(_text);
|
|
|
unsigned long kernel_end = __pa(_etext);
|
|
|
|
|
|
/*
|
|
|
@@ -417,7 +417,7 @@ static void __init __map_memblock(pgd_t *pgd, phys_addr_t start, phys_addr_t end
|
|
|
early_pgtable_alloc);
|
|
|
|
|
|
/*
|
|
|
- * Map the linear alias of the [_stext, _etext) interval as
|
|
|
+ * Map the linear alias of the [_text, _etext) interval as
|
|
|
* read-only/non-executable. This makes the contents of the
|
|
|
* region accessible to subsystems such as hibernate, but
|
|
|
* protects it from inadvertent modification or execution.
|
|
|
@@ -449,8 +449,8 @@ void mark_rodata_ro(void)
|
|
|
{
|
|
|
unsigned long section_size;
|
|
|
|
|
|
- section_size = (unsigned long)__start_rodata - (unsigned long)_stext;
|
|
|
- create_mapping_late(__pa(_stext), (unsigned long)_stext,
|
|
|
+ section_size = (unsigned long)__start_rodata - (unsigned long)_text;
|
|
|
+ create_mapping_late(__pa(_text), (unsigned long)_text,
|
|
|
section_size, PAGE_KERNEL_ROX);
|
|
|
/*
|
|
|
* mark .rodata as read only. Use _etext rather than __end_rodata to
|
|
|
@@ -499,7 +499,7 @@ static void __init map_kernel(pgd_t *pgd)
|
|
|
{
|
|
|
static struct vm_struct vmlinux_text, vmlinux_rodata, vmlinux_init, vmlinux_data;
|
|
|
|
|
|
- map_kernel_segment(pgd, _stext, __start_rodata, PAGE_KERNEL_EXEC, &vmlinux_text);
|
|
|
+ map_kernel_segment(pgd, _text, __start_rodata, PAGE_KERNEL_EXEC, &vmlinux_text);
|
|
|
map_kernel_segment(pgd, __start_rodata, _etext, PAGE_KERNEL, &vmlinux_rodata);
|
|
|
map_kernel_segment(pgd, __init_begin, __init_end, PAGE_KERNEL_EXEC,
|
|
|
&vmlinux_init);
|