diff options
author | Mark Salter <msalter@redhat.com> | 2013-08-23 11:16:42 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-08-27 12:34:09 -0400 |
commit | c80b7ee8520606f77fbc8ced870c96659053269e (patch) | |
tree | 75d31777b2da73b34ba3bdc201396bf14e86727c /arch/arm64 | |
parent | 2600e130b3c90c8d6c13229d3d3a14dcb898a87b (diff) |
arm64: move elf notes into readonly segment
The current vmlinux.lds.S places the notes sections between the
end of rw data and start of bss. This means that _edata doesn't
really point to the end of data. Since notes are read-only, this
patch moves them to the read-only segment so that _edata does
point to the end of initialized rw data.
Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/kernel/vmlinux.lds.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index f5e55747242f..f8ab9d8e2ea3 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S | |||
@@ -71,6 +71,7 @@ SECTIONS | |||
71 | 71 | ||
72 | RO_DATA(PAGE_SIZE) | 72 | RO_DATA(PAGE_SIZE) |
73 | EXCEPTION_TABLE(8) | 73 | EXCEPTION_TABLE(8) |
74 | NOTES | ||
74 | _etext = .; /* End of text and rodata section */ | 75 | _etext = .; /* End of text and rodata section */ |
75 | 76 | ||
76 | . = ALIGN(PAGE_SIZE); | 77 | . = ALIGN(PAGE_SIZE); |
@@ -122,8 +123,6 @@ SECTIONS | |||
122 | } | 123 | } |
123 | _edata_loc = __data_loc + SIZEOF(.data); | 124 | _edata_loc = __data_loc + SIZEOF(.data); |
124 | 125 | ||
125 | NOTES | ||
126 | |||
127 | BSS_SECTION(0, 0, 0) | 126 | BSS_SECTION(0, 0, 0) |
128 | _end = .; | 127 | _end = .; |
129 | 128 | ||