mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-08 02:15:20 +02:00
powerpc/vdso: Don't discard rela sections
[ Upstream commit6114139c3b
] After building the VDSO, there is a verification that it contains no dynamic relocation, see commitaff69273af
("vdso: Improve cmd_vdso_check to check all dynamic relocations"). This verification uses readelf -r and doesn't work if rela sections are discarded. Fixes:8ad57add77
("powerpc/build: vdso linker warning for orphan sections") Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/45c3e6fc76cad05ad2cac0f5b5dfb4fae86dc9d6.1724153239.git.christophe.leroy@csgroup.eu Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
547acc20e5
commit
af4d5630d9
|
@ -74,6 +74,8 @@ SECTIONS
|
||||||
.got : { *(.got) } :text
|
.got : { *(.got) } :text
|
||||||
.plt : { *(.plt) }
|
.plt : { *(.plt) }
|
||||||
|
|
||||||
|
.rela.dyn : { *(.rela .rela*) }
|
||||||
|
|
||||||
_end = .;
|
_end = .;
|
||||||
__end = .;
|
__end = .;
|
||||||
PROVIDE(end = .);
|
PROVIDE(end = .);
|
||||||
|
@ -87,7 +89,7 @@ SECTIONS
|
||||||
*(.branch_lt)
|
*(.branch_lt)
|
||||||
*(.data .data.* .gnu.linkonce.d.* .sdata*)
|
*(.data .data.* .gnu.linkonce.d.* .sdata*)
|
||||||
*(.bss .sbss .dynbss .dynsbss)
|
*(.bss .sbss .dynbss .dynsbss)
|
||||||
*(.got1 .glink .iplt .rela*)
|
*(.got1 .glink .iplt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ SECTIONS
|
||||||
.eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
|
.eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
|
||||||
.eh_frame : { KEEP (*(.eh_frame)) } :text
|
.eh_frame : { KEEP (*(.eh_frame)) } :text
|
||||||
.gcc_except_table : { *(.gcc_except_table) }
|
.gcc_except_table : { *(.gcc_except_table) }
|
||||||
.rela.dyn ALIGN(8) : { *(.rela.dyn) }
|
.rela.dyn ALIGN(8) : { *(.rela .rela*) }
|
||||||
|
|
||||||
.got ALIGN(8) : { *(.got .toc) }
|
.got ALIGN(8) : { *(.got .toc) }
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ SECTIONS
|
||||||
*(.data .data.* .gnu.linkonce.d.* .sdata*)
|
*(.data .data.* .gnu.linkonce.d.* .sdata*)
|
||||||
*(.bss .sbss .dynbss .dynsbss)
|
*(.bss .sbss .dynbss .dynsbss)
|
||||||
*(.opd)
|
*(.opd)
|
||||||
*(.glink .iplt .plt .rela*)
|
*(.glink .iplt .plt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user