Skip to content

Commit 5f90003

Browse files
sumanthkorikkarAlexander Gordeev
authored andcommitted
s390: vmlinux.lds.S: Drop .hash and .gnu.hash for !CONFIG_PIE_BUILD
Sections .hash and .gnu.hash are only created when CONFIG_PIE_BUILD option is enabled. Drop these for the case CONFIG_PIE_BUILD is disabled. [ agordeev: Reworded the commit message ] Fixes: 778666d ("s390: compile relocatable kernel without -fPIE") Suggested-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com> Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
1 parent cae74ba commit 5f90003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/vmlinux.lds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ SECTIONS
209209
.dynstr ALIGN(8) : {
210210
*(.dynstr)
211211
}
212-
#endif
213212
.hash ALIGN(8) : {
214213
*(.hash)
215214
}
216215
.gnu.hash ALIGN(8) : {
217216
*(.gnu.hash)
218217
}
218+
#endif
219219

220220
. = ALIGN(PAGE_SIZE);
221221
__init_end = .; /* freed after init ends here */

0 commit comments

Comments
 (0)