mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
parisc: Fix kernel memory layout regarding position of __gp
commit f8850abb7b upstream.
Architecturally we need to keep __gp below 0x1000000.
But because of ftrace and tracepoint support, the RO_DATA_SECTION now gets much
bigger than it was before. By moving the linkage tables before RO_DATA_SECTION
we can avoid that __gp gets positioned at a too high address.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
97ba83a01c
commit
59db586d09
@@ -88,8 +88,9 @@ SECTIONS
|
||||
/* Start of data section */
|
||||
_sdata = .;
|
||||
|
||||
RO_DATA_SECTION(8)
|
||||
|
||||
/* Architecturally we need to keep __gp below 0x1000000 and thus
|
||||
* in front of RO_DATA_SECTION() which stores lots of tracepoint
|
||||
* and ftrace symbols. */
|
||||
#ifdef CONFIG_64BIT
|
||||
. = ALIGN(16);
|
||||
/* Linkage tables */
|
||||
@@ -104,6 +105,8 @@ SECTIONS
|
||||
}
|
||||
#endif
|
||||
|
||||
RO_DATA_SECTION(8)
|
||||
|
||||
/* unwind info */
|
||||
.PARISC.unwind : {
|
||||
__start___unwind = .;
|
||||
|
||||
Reference in New Issue
Block a user