Skip to content

Commit

Permalink
arm64: move elf notes into readonly segment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Salter authored and Catalin Marinas committed Aug 27, 2013
1 parent 2600e13 commit c80b7ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/arm64/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ SECTIONS

RO_DATA(PAGE_SIZE)
EXCEPTION_TABLE(8)
NOTES
_etext = .; /* End of text and rodata section */

. = ALIGN(PAGE_SIZE);
Expand Down Expand Up @@ -122,8 +123,6 @@ SECTIONS
}
_edata_loc = __data_loc + SIZEOF(.data);

NOTES

BSS_SECTION(0, 0, 0)
_end = .;

Expand Down

0 comments on commit c80b7ee

Please sign in to comment.