diff options
author | Mark Rutland <[email protected]> | 2015-12-09 12:44:38 +0000 |
---|---|---|
committer | Will Deacon <[email protected]> | 2015-12-10 17:36:08 +0000 |
commit | 9aa4ec1571da62366cfddc20f3b923609604fe63 (patch) | |
tree | d7986d4eb6e16aa235215a83b5a95544c3288884 /scripts/gdb/linux/config.py | |
parent | 5b28cd9d084eca8ddc46270d2720305bfd40e348 (diff) |
arm64: mm: fold alternatives into .init
Currently we treat the alternatives separately from other data that's
only used during initialisation, using separate .altinstructions and
.altinstr_replacement linker sections. These are freed for general
allocation separately from .init*. This is problematic as:
* We do not remove execute permissions, as we do for .init, leaving the
memory executable.
* We pad between them, making the kernel Image bianry up to PAGE_SIZE
bytes larger than necessary.
This patch moves the two sections into the contiguous region used for
.init*. This saves some memory, ensures that we remove execute
permissions, and allows us to remove some code made redundant by this
reorganisation.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Jeremy Linton <[email protected]>
Cc: Laura Abbott <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions